[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user