mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Android: Fixed invalid JNIEnv* pointer when starting up love.filesystem for 2nd time.
This commit is contained in:
@@ -806,10 +806,9 @@ const char *getCRequirePath()
|
||||
|
||||
const char *getArg0()
|
||||
{
|
||||
static PHYSFS_AndroidInit androidInit = {
|
||||
SDL_AndroidGetJNIEnv(),
|
||||
SDL_AndroidGetActivity()
|
||||
};
|
||||
static PHYSFS_AndroidInit androidInit = {nullptr, nullptr};
|
||||
androidInit.jnienv = SDL_AndroidGetJNIEnv();
|
||||
androidInit.context = SDL_AndroidGetActivity();
|
||||
return (const char *) &androidInit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user