Added decl_early_init() which is called when PLAYAGAIN is supported.

decl_early_init() is called when we are starting a game.  On first
start, it validates that global state is in the expected state.
When called on subsequent starts, it initializes global state to
expected state.
This commit is contained in:
Bart House
2018-11-23 15:22:51 -08:00
parent 31dc1c9233
commit acbe4d9242
6 changed files with 279 additions and 4 deletions
+3
View File
@@ -97,6 +97,9 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
win10_init();
#ifdef PLAYAGAIN
decl_early_init();
#endif
sys_early_init();
/* init applicatio structure */