commit cca3a11c67bb612c5e07d97474c333d9467db91c
Author: Jon Bell <jondbell@protonmail.com>
AuthorDate: Wed Apr 29 18:20:43 2020 -0600
Commit: Jon Bell <jondbell@protonmail.com>
CommitDate: Wed Apr 29 18:20:43 2020 -0600
Store sfx and music sections on cart
---
source/cart.cpp | 8 +++-----
source/cart.h | 2 ++
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/source/cart.cpp b/source/cart.cpp
index 88edca5..69d47a8 100644
--- a/source/cart.cpp
+++ b/source/cart.cpp
@@ -18,8 +18,6 @@
#endif
-
-
std::map<char32_t, uint8_t> emoji = {
{0x025ae, 0x10}, {0x025a0, 0x11}, {0x025a1, 0x12}, {0x02059, 0x13}, {0x02058, 0x14},
{0x02016, 0x15}, {0x025c0, 0x16}, {0x025b6, 0x17}, {0x0300c, 0x18}, {0x0300d, 0x19},
@@ -119,10 +117,10 @@ Cart::Cart(std::string filename){
MapString += line + "\n";
}
else if (currSec == "__sfx__"){
- //no sound support yet
+ SfxString += line + "\n";
}
- else if (currSec == "__sfx__"){
- //no sound support yet
+ else if (currSec == "__music__"){
+ MusicString += line + "\n";
}
}
diff --git a/source/cart.h b/source/cart.h
index e5042b1..57a1938 100644
--- a/source/cart.h
+++ b/source/cart.h
@@ -16,5 +16,7 @@ class Cart {
std::string SpriteSheetString;
std::string SpriteFlagsString;
std::string MapString;
+ std::string SfxString;
+ std::string MusicString;
};