diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index 088e9c390..cc95040c5 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -8100,7 +8100,6 @@ int32_t enginePreInit(void) { baselayer_init(); initdivtables(); - if (initsystem()) Bexit(9); #if !defined DEBUG_MAIN_ARRAYS sector = sector_s; @@ -8114,12 +8113,6 @@ int32_t enginePreInit(void) spritesmooth = spritesmooth_s; #endif -#if !defined ENGINE_USING_A_C - mmxoverlay(); -#endif - - validmodecnt = 0; - videoGetModes(); initcrc32table(); diff --git a/source/build/src/sdlayer.cpp b/source/build/src/sdlayer.cpp index f805b498e..312dad131 100644 --- a/source/build/src/sdlayer.cpp +++ b/source/build/src/sdlayer.cpp @@ -449,6 +449,7 @@ int main(int argc, char *argv[]) gtkbuild_init(&argc, &argv); #endif + if (initsystem()) Bexit(9); try {