| ... | ... |
@@ -111,17 +111,14 @@ template<typename T> inline std::string NumToHexString(const T &num) |
| 111 | 111 |
* List of types taken from the Nitro Composer Specification |
| 112 | 112 |
* http://www.feshrine.net/hacking/doc/nds-sdat.html |
| 113 | 113 |
*/ |
| 114 |
-enum RecordName |
|
| 115 |
-{
|
|
| 116 |
- REC_SEQ, |
|
| 117 |
- REC_SEQARC, |
|
| 118 |
- REC_BANK, |
|
| 119 |
- REC_WAVEARC, |
|
| 120 |
- REC_PLAYER, |
|
| 121 |
- REC_GROUP, |
|
| 122 |
- REC_PLAYER2, |
|
| 123 |
- REC_STRM |
|
| 124 |
-}; |
|
| 114 |
+inline constexpr int REC_SEQ = 0; |
|
| 115 |
+inline constexpr int REC_SEQARC = 1; |
|
| 116 |
+inline constexpr int REC_BANK = 2; |
|
| 117 |
+inline constexpr int REC_WAVEARC = 3; |
|
| 118 |
+inline constexpr int REC_PLAYER = 4; |
|
| 119 |
+inline constexpr int REC_GROUP = 5; |
|
| 120 |
+inline constexpr int REC_PLAYER2 = 6; |
|
| 121 |
+inline constexpr int REC_STRM = 7; |
|
| 125 | 122 |
|
| 126 | 123 |
template<size_t N> inline bool VerifyHeader(int8_t (&arr)[N], const std::string &header) |
| 127 | 124 |
{
|