update PhysFS to 3.2.0.

Fixes #1880.
This commit is contained in:
Sasha Szpakowski
2023-05-28 12:30:32 -03:00
parent 4cd0bc0de4
commit a161207f02
25 changed files with 522 additions and 126 deletions
@@ -123,6 +123,13 @@ const char *Filesystem::getName() const
void Filesystem::init(const char *arg0)
{
#ifdef LOVE_ANDROID
// TODO: This should be a pointer to an initializeed PHYSFS_AndroidInit
// struct on android. But it's only used for PHYSFS_getBaseDir and
// PHYSFS_getPrefDir, which we don't use right now...
arg0 = nullptr;
#endif
if (!PHYSFS_init(arg0))
throw love::Exception("Failed to initialize filesystem: %s", PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));