diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index be4547c6..6f14e5d9 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -46,13 +46,6 @@ entityclass obj; int main(int argc, char *argv[]) { - SDL_Init( - SDL_INIT_VIDEO | - SDL_INIT_AUDIO | - SDL_INIT_JOYSTICK | - SDL_INIT_GAMECONTROLLER - ); - char* baseDir = NULL; char* assetsPath = NULL; @@ -74,6 +67,13 @@ int main(int argc, char *argv[]) return 1; } + SDL_Init( + SDL_INIT_VIDEO | + SDL_INIT_AUDIO | + SDL_INIT_JOYSTICK | + SDL_INIT_GAMECONTROLLER + ); + NETWORK_init(); Screen gameScreen;