[nostalgia/core] Get building with GLFW (it has a better Conan package than SDL)

This commit is contained in:
2021-04-28 22:27:33 -05:00
parent a17bc04ee7
commit 307684348e
10 changed files with 220 additions and 13 deletions

View File

@@ -22,7 +22,7 @@ target_link_libraries(
nostalgia
NostalgiaWorld
$<$<STREQUAL:${NOSTALGIA_BUILD_TYPE},GBA>:NostalgiaCore-GBA>
$<$<STREQUAL:${NOSTALGIA_BUILD_TYPE},Native>:NostalgiaCore-SDL>
$<$<STREQUAL:${NOSTALGIA_BUILD_TYPE},Native>:NostalgiaCore-GLFW>
)
install(

View File

@@ -41,7 +41,7 @@ ox::Error run(ox::FileSystem *fs) noexcept {
oxReturnError(core::loadSpriteTileSheet(&ctx, 0, TileSheetAddr, PaletteAddr));
oxReturnError(core::initConsole(&ctx));
core::puts(&ctx, 10, 9, "DOPENESS!!!");
core::setEventHandler(eventHandler);
core::setEventHandler(&ctx, eventHandler);
oxReturnError(core::run(&ctx));
oxReturnError(core::shutdownGfx(&ctx));
return OxError(0);