diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ad4807..a0739b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,7 @@ if(SWITCH_LIBNX) add_definitions(-D__SWITCH__) add_custom_target(${CMAKE_PROJECT_NAME}.nro DEPENDS ${CMAKE_PROJECT_NAME} - COMMAND nacptool --create "Heart of Darkness" "cyx, usineur" "0.2.7" ${CMAKE_PROJECT_NAME}.nacp + COMMAND nacptool --create "Heart of Darkness" "cyx, usineur" "0.2.8" ${CMAKE_PROJECT_NAME}.nacp COMMAND elf2nro ${CMAKE_PROJECT_NAME} ${CMAKE_PROJECT_NAME}.nro --icon=${CMAKE_SOURCE_DIR}/3p/res/icon.jpg --nacp=${CMAKE_PROJECT_NAME}.nacp ) add_custom_target(nxlink diff --git a/game.cpp b/game.cpp index 23a77cc..99d32e0 100644 --- a/game.cpp +++ b/game.cpp @@ -2090,7 +2090,7 @@ void Game::drawScreen() { } } -void Game::mainLoop(int level, int checkpoint, bool levelChanged) { +void Game::mainLoop(int &level, int &checkpoint, bool levelChanged) { if (_loadingScreenEnabled) { displayLoadingScreen(); } diff --git a/game.h b/game.h index d1a3121..5ce2b64 100644 --- a/game.h +++ b/game.h @@ -243,7 +243,7 @@ struct Game { uint32_t benchmarkCpu(); // game.cpp - void mainLoop(int level, int checkpoint, bool levelChanged); + void mainLoop(int &level, int &checkpoint, bool levelChanged); void mixAudio(int16_t *buf, int len); void resetShootLvlObjectDataTable(); void clearShootLvlObjectData(LvlObject *ptr);