Pass pointer of PHYSFS_AndroidInit struct in Android when initializing PhysFS.

This commit is contained in:
Miku AuahDark
2023-06-01 15:33:04 +08:00
parent e9c564e989
commit e559fd5e68
3 changed files with 16 additions and 4 deletions
+9
View File
@@ -804,6 +804,15 @@ const char *getCRequirePath()
return path;
}
const char *getArg0()
{
static PHYSFS_AndroidInit androidInit = {
SDL_AndroidGetJNIEnv(),
SDL_AndroidGetActivity()
};
return (const char *) &androidInit;
}
} // android
} // love