@@ -159,22 +159,12 @@ public :
159
159
};
160
160
161
161
162
- SDL_AppResult SDL_AppEvent (void *, SDL_Event* event) {
163
- SDL_LogInfo (0 , " %s:%i:event" , __FILE__, __LINE__);
164
- return engine.onEvent (*event); }
162
+ SDL_AppResult SDL_AppEvent (void *, SDL_Event* event) { return engine.onEvent (*event); }
165
163
166
- SDL_AppResult SDL_AppIterate (void *) {
167
- auto i = engine.onFrame ();
168
- SDL_LogInfo (0 , " %s:%i:iterate:%i" , __FILE__, __LINE__, i);
169
- tcod::draw_rect (*TCODConsole::root->get_data (), {0 ,0 ,10 ,10 }, ' x' , tcod::ColorRGB{255 ,255 ,255 }, {});
170
- TCODConsole::root->flush ();
171
- return i;
172
- }
173
- // return engine.onFrame(); }
164
+ SDL_AppResult SDL_AppIterate (void *) { return engine.onFrame (); }
174
165
175
166
SDL_AppResult SDL_AppInit (void **, int argc, char ** argv) {
176
167
SDL_SetLogPriorities (SDL_LOG_PRIORITY_VERBOSE);
177
- SDL_LogInfo (0 , " %s:%i:setup" , __FILE__, __LINE__);
178
168
// read main configuration file
179
169
config.run (" data/cfg/config.txt" ,NULL );
180
170
ConditionType::init ();
@@ -206,12 +196,10 @@ SDL_AppResult SDL_AppInit(void**, int argc, char** argv) {
206
196
sound.initialize ();
207
197
engine.setKeyboardMode (UMBRA_KEYBOARD_SDL);
208
198
if (!engine.initialise (TCOD_RENDERER_SDL2)) return SDL_APP_FAILURE;
209
- SDL_LogInfo (0 , " %s:%i:setup-done" , __FILE__, __LINE__);
210
199
return SDL_APP_CONTINUE;
211
200
}
212
201
213
202
void SDL_AppQuit (void *, SDL_AppResult) {
214
- SDL_LogInfo (0 , " %s:%i:quit" , __FILE__, __LINE__);
215
203
saveGame.save ();
216
204
userPref.save ();
217
205
engine.onQuit ();
0 commit comments