mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
@@ -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()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user