Better fix for initializing Android environment variables

This commit is contained in:
Sam Lantinga
2024-09-20 11:09:48 -07:00
parent 095fb5f522
commit ea2e2e451d
2 changed files with 3 additions and 7 deletions

View File

@@ -122,12 +122,7 @@ SDL_Environment *SDL_CreateEnvironment(bool populated)
#else
#ifdef SDL_PLATFORM_ANDROID
// Make sure variables from the application manifest are available
static bool initializing;
if (!initializing) {
initializing = true;
Android_JNI_GetManifestEnvironmentVariables();
initializing = false;
}
Android_JNI_GetManifestEnvironmentVariables();
#endif
char **strings = environ;
if (strings) {