Ticket #8585: diff
File diff, 1.2 KB (added by , 17 years ago) |
---|
-
common/system.h
73 73 */ 74 74 virtual void initBackend() { } 75 75 76 /** 77 * Allows the backend to perform engine specific init. 78 * Called just before the engine is run. 79 */ 80 virtual void engineInit() { } 81 82 /** 83 * Allows the backend to perform engine specific de-init. 84 * Called after the engine finishes. 85 */ 86 virtual void engineDone() { } 87 76 88 /** @name Feature flags */ 77 89 //@{ 78 90 -
base/main.cpp
215 215 // As a last resort add current directory 216 216 Common::File::addDefaultDirectory("."); 217 217 218 // Inform backend that the engine is about to be run 219 system.engineInit(); 220 218 221 int result; 219 222 220 223 // Init the engine (this might change the screen parameters … … 228 231 result = engine->go(); 229 232 } 230 233 234 // Inform backend that the engine finished 235 system.engineDone(); 236 231 237 // We clear all debug levels again even though the engine should do it 232 238 Common::clearAllSpecialDebugLevels(); 233 239