Add config entry "allowSymlinks"

This commit is contained in:
Jonas Kulla 2013-10-20 22:38:46 +02:00
parent dcdfea55f1
commit 10b3e04dee
6 changed files with 13 additions and 4 deletions

View file

@ -679,12 +679,16 @@ struct FileSystemPrivate
}
};
FileSystem::FileSystem(const char *argv0)
FileSystem::FileSystem(const char *argv0,
bool allowSymlinks)
{
p = new FileSystemPrivate;
PHYSFS_init(argv0);
PHYSFS_registerArchiver(&RGSS_Archiver);
if (allowSymlinks)
PHYSFS_permitSymbolicLinks(1);
}
FileSystem::~FileSystem()