[nostalgia/core] Move puts function out of core implementations to core

This commit is contained in:
2019-11-03 23:20:13 -06:00
parent 758907ab5a
commit 628b4d656b
4 changed files with 159 additions and 149 deletions
+4 -5
View File
@@ -55,8 +55,10 @@ ox::Error shutdownGfx() {
return OxError(0);
}
ox::Error initConsole(Context*) {
return OxError(1);
ox::Error initConsole(Context *ctx) {
constexpr auto TilesheetAddr = "/TileSheets/Charset.ng";
constexpr auto PaletteAddr = "/Palettes/Charset.npal";
return loadTileSheet(ctx, TileSheetSpace::Background, 0, TilesheetAddr, PaletteAddr);
}
SDL_Color createSDL_Color(Color nc) {
@@ -154,9 +156,6 @@ void draw() {
SDL_RenderPresent(renderer);
}
void puts(Context*, int, const char*) {
}
void setTile(Context*, int, int, int, uint8_t) {
}