[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
+6
View File
@@ -205,6 +205,12 @@ ox::Error loadSpritePalette(Context *ctx, int section, ox::FileAddress paletteAd
}
// Do NOT use Context in the GBA version of this function.
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])]));
}
}
void setTile(Context*, int layer, int column, int row, uint8_t tile) {
MEM_BG_MAP[layer][row * GbaTileColumns + column] = tile;
}