mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-19 17:58:13 +00:00
Fixed infinite recursion at startup on Android
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user