[nostalgia/core/userland] Cleanup

This commit is contained in:
2021-03-17 21:45:34 -05:00
parent be3caf1818
commit dc1ead2af4
3 changed files with 11 additions and 7 deletions
+6
View File
@@ -70,4 +70,10 @@ ox::Error loadBgTileSheet(Context *ctx,
return renderer::loadBgTexture(ctx, section, pixels.data(), width, height);
}
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])]));
}
}
}