Add config entry "allowSymlinks"
This commit is contained in:
parent
dcdfea55f1
commit
10b3e04dee
6 changed files with 13 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue