Skip to content

Commit e156877

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! Add Emscripten builds
1 parent f6075b3 commit e156877

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/main.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,13 @@ public :
159159
};
160160

161161

162-
SDL_AppResult SDL_AppEvent(void*, SDL_Event* event) { return engine.onEvent(*event); }
162+
SDL_AppResult SDL_AppEvent(void*, SDL_Event* event) {
163+
SDL_LogInfo(0, "%s:%i", __FILE__, __LINE__);
164+
return engine.onEvent(*event); }
163165

164-
SDL_AppResult SDL_AppIterate(void*) { return engine.onFrame(); }
166+
SDL_AppResult SDL_AppIterate(void*) {
167+
SDL_LogInfo(0, "%s:%i", __FILE__, __LINE__);
168+
return engine.onFrame(); }
165169

166170
SDL_AppResult SDL_AppInit(void**, int argc, char** argv) {
167171
SDL_SetLogPriorities(SDL_LOG_PRIORITY_VERBOSE);
@@ -175,6 +179,7 @@ SDL_AppResult SDL_AppInit(void**, int argc, char** argv) {
175179
Powerup::init();
176180

177181
threadPool = new ThreadPool();
182+
SDL_LogInfo(0, "%s:%i", __FILE__, __LINE__);
178183

179184
// initialise random number generator
180185
//if ( ! saveGame.load(PHASE_INIT) ) {
@@ -198,12 +203,14 @@ SDL_AppResult SDL_AppInit(void**, int argc, char** argv) {
198203
if (engine.initialise(TCOD_RENDERER_SDL2)) {
199204
//engine.run();
200205
//return SDL_APP_SUCCESS;
206+
SDL_LogInfo(0, "%s:%i", __FILE__, __LINE__);
201207
return SDL_APP_CONTINUE;
202208
}
203209
return SDL_APP_FAILURE;
204210
}
205211

206212
void SDL_AppQuit(void*, SDL_AppResult) {
213+
SDL_LogInfo(0, "%s:%i", __FILE__, __LINE__);
207214
saveGame.save();
208215
userPref.save();
209216
engine.onQuit();

0 commit comments

Comments
 (0)