update asyncify imports to include the new hamsterNet start/end pause functions

Moros Smith 3 months ago
parent 3758227a15
commit 2d4036669d
  1. 4
      CMakeLists.txt

@ -247,7 +247,7 @@ if (EMSCRIPTEN)
-sUSE_LIBPNG=1
-sLLD_REPORT_UNDEFINED
-s ASYNCIFY
-sASYNCIFY_IMPORTS=hamsterNet__initSession,hamsterNet__setRacerName,hamsterNet__startRace,hamsterNet__finishRace,hamsterNet__getLeaderboard
-sASYNCIFY_IMPORTS=hamsterNet__initSession,hamsterNet__setRacerName,hamsterNet__startRace,hamsterNet__finishRace,hamsterNet__getLeaderboard,hamsterNet__startPause,hamsterNet__endPause
--preload-file ${SOURCE_DATA_DIR}@assets)
else()
target_link_options(
@ -259,7 +259,7 @@ if (EMSCRIPTEN)
-sUSE_LIBPNG=1
-sLLD_REPORT_UNDEFINED
-s ASYNCIFY
-sASYNCIFY_IMPORTS=hamsterNet__initSession,hamsterNet__setRacerName,hamsterNet__startRace,hamsterNet__finishRace,hamsterNet__getLeaderboard
-sASYNCIFY_IMPORTS=hamsterNet__initSession,hamsterNet__setRacerName,hamsterNet__startRace,hamsterNet__finishRace,hamsterNet__getLeaderboard,hamsterNet__startPause,hamsterNet__endPause
)
endif()

Loading…
Cancel
Save