[nostalgia] Remove dynamic library usage

Will make dynamically loaded Modules impossible, but they add complexity
and really aren't that useful...
This commit is contained in:
2020-12-17 20:08:02 -06:00
parent 7a837502a1
commit d09dc5cc01
8 changed files with 28 additions and 11 deletions
+1 -7
View File
@@ -11,7 +11,7 @@
namespace nostalgia::core {
// map ASCII values to the nostalgia charset
static char charMap[128] = {
char charMap[128] = {
0,
0,
0,
@@ -175,12 +175,6 @@ uint8_t blue32(Color16 c) noexcept {
return blue16(c) * 8;
}
void puts(Context *ctx, int column, int row, const char *str) {
for (int i = 0; str[i]; i++) {
setTile(ctx, 0, column + i, row, static_cast<uint8_t>(charMap[static_cast<int>(str[i])]));
}
}
static_assert(color16(0, 31, 0, 0) == 992);
static_assert(color16(16, 31, 0, 0) == 1008);
static_assert(color16(16, 31, 8, 0) == 9200);