Android: Fixed assets/game.love fusing not being recognized.

Fixes love2d/love-android#267.
This commit is contained in:
Miku AuahDark
2024-03-19 22:24:45 +08:00
parent 4d1865fe1a
commit 9eacd483c6
2 changed files with 17 additions and 7 deletions
+9 -1
View File
@@ -245,8 +245,14 @@ bool Filesystem::setSource(const char *source)
if (hasFusedGame)
{
if (gameLoveIO)
// Actually we should just be able to mount gameLoveIO, but that's experimental.
{
if (PHYSFS_mountIo(gameLoveIO, ".zip", nullptr, 0)) {
gameSource = new_search_path;
return true;
}
gameLoveIO->destroy(gameLoveIO);
}
else
{
if (!love::android::initializeVirtualArchive())
@@ -274,6 +280,8 @@ bool Filesystem::setSource(const char *source)
gameSource = new_search_path;
return true;
}
io->destroy(io);
}
}
#endif