mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Android: Fixed assets/game.love fusing not being recognized.
Fixes love2d/love-android#267.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user