commit 70b41acf9052d5c1c09d08d6b21ba4fe3c843173
Author: jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Fri Jun 18 08:19:30 2021 -0600
Commit: jtothebell <j.to.the.bell@gmail.com>
CommitDate: Fri Jun 18 08:19:30 2021 -0600
handle emoji in #include
---
source/cart.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/cart.cpp b/source/cart.cpp
index b7f9dee..83998d6 100644
--- a/source/cart.cpp
+++ b/source/cart.cpp
@@ -353,7 +353,7 @@ Cart::Cart(std::string filename, std::string cartDirectory){
auto includeContents = get_file_contents(fullPath);
if (includeContents.length() > 0){
- //todo: handle emojis
+ includeContents = charset::utf8_to_pico8(includeContents);
LuaString += includeContents + "\n";
}
else{