1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
diff --git a/platform/libretro/libretrohosthelpers.h b/platform/libretro/libretrohosthelpers.h
index e898bf3..4f0d1b2 100644
--- a/platform/libretro/libretrohosthelpers.h
+++ b/platform/libretro/libretrohosthelpers.h
@@ -1,4 +1,5 @@
#include <string.h>
+#include <stdint.h>
void setInputState(
uint8_t kDown,
@@ -7,4 +8,4 @@ void setInputState(
int16_t mouseY,
uint8_t mouseBtnState);
-void setCartDirectory(std::string dir);
\ No newline at end of file
+void setCartDirectory(std::string dir);
diff --git a/source/PicoRam.h b/source/PicoRam.h
index ff4c4e9..424ffa8 100644
--- a/source/PicoRam.h
+++ b/source/PicoRam.h
@@ -1,5 +1,6 @@
#pragma once
+#include <cstdint>
#include <cstring>
#include <string>
diff --git a/source/emojiconversion.cpp b/source/emojiconversion.cpp
index 2db1635..38b5534 100644
--- a/source/emojiconversion.cpp
+++ b/source/emojiconversion.cpp
@@ -16,11 +16,11 @@
// replacement before they actually remove the feature.
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING 1
-
#include <locale>
#include <string>
#include <codecvt>
#include <cstring>
+#include <cstdint>
#include <regex>
#include <string_view>
#include <map>
@@ -164,4 +164,4 @@ std::string charset::upper_to_emoji(std::string str)
}
return charset::utf8_to_pico8(newstring);
-}
\ No newline at end of file
+}
diff --git a/source/fontdata.cpp b/source/fontdata.cpp
index 1fdda14..cef9b3f 100644
--- a/source/fontdata.cpp
+++ b/source/fontdata.cpp
@@ -1,6 +1,7 @@
//taken from tac08: https://github.com/0xcafed00d/tac08
#include <string>
+#include <cstdint>
const char* font_ss_str = R"(77700000000000000000000000000000000000000000000000700000700000007770000000000000707000000000000000000000000000007070000007000000
77700000777000007770000070700000707000007070000007700000770000007000000000700000777000000000000000000000000000007070000070700000
@@ -406,4 +407,4 @@ uint8_t defaultFontBinaryData[2048] = {
0, 14, 30, 8, 14, 0, 0, 0, // char 253
8, 4, 99, 16, 8, 0, 0, 0, // char 254
8, 16, 99, 4, 8, 0, 0, 0, // char 255
-};
\ No newline at end of file
+};
diff --git a/source/stringToDataHelpers.h b/source/stringToDataHelpers.h
index dfa8336..3766d29 100644
--- a/source/stringToDataHelpers.h
+++ b/source/stringToDataHelpers.h
@@ -1,9 +1,10 @@
#pragma once
#include <string>
+#include <cstdint>
void copy_string_to_sprite_memory(uint8_t sprite_data[128 * 64], std::string data);
void copy_mini_label_to_sprite_memory(uint8_t sprite_data[128 * 64], std::string data, int labeloffset);
-void copy_string_to_memory(uint8_t* sprite_flag_data, std::string data);
\ No newline at end of file
+void copy_string_to_memory(uint8_t* sprite_flag_data, std::string data);
|