[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
@@ -194,6 +194,12 @@ void draw(Context *ctx) {
SDL_RenderPresent(id->renderer);
}
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 *ctx, int layer, int column, int row, uint8_t tile) {
auto id = ctx->implData<SdlImplData>();
auto z = static_cast<unsigned>(layer);