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