mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-04 02:24:00 +00:00
Add support for "override" data directory (as suggested by smls).
Now it loads in this order: AQUARIA_DEFAULT_DATA_DIR AQUARIA_DEFAULT_DATA_DIR/override AQUARIA_EXTRA_DATA_DIR
This commit is contained in:
parent
98399f6bc3
commit
4e1c2746ef
1 changed files with 9 additions and 1 deletions
|
@ -4863,8 +4863,16 @@ void Core::setupFileAccess()
|
|||
|
||||
vfs.Prepare();
|
||||
|
||||
// TODO: mount and other stuff
|
||||
|
||||
ttvfs::VFSDir *override = vfs.GetDir("override");
|
||||
if(override)
|
||||
{
|
||||
debugLog("Mounting override dir...");
|
||||
override->load(true);
|
||||
vfs.Mount("override", "", true);
|
||||
}
|
||||
|
||||
// If we ever want to read from a container...
|
||||
//vfs.AddArchive("aqfiles.zip", false, "");
|
||||
|
||||
if(_extraDataDir.length())
|
||||
|
|
Loading…
Add table
Reference in a new issue