only init the necessary with SDL, speeding up the startup

This commit is contained in:
veclavtalica 2025-01-15 05:00:45 +03:00
parent 8c165974c7
commit 0da1e413aa

View File

@ -341,7 +341,7 @@ ERR_PACK_MANIFEST_PATH_ALLOC_FAIL:
static bool initialize(void) {
if (SDL_Init(SDL_INIT_EVERYTHING & ~SDL_INIT_HAPTIC) == -1) {
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_EVENTS) == -1) {
CRY_SDL("SDL initialization failed.");
return false;
}