mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-07 06:41:38 +00:00
Update Aquaria/BBGE/External sources to comply with the new ttvfs API
This commit is contained in:
parent
8026cdd905
commit
6203bc7ce4
17 changed files with 179 additions and 390 deletions
|
@ -5136,34 +5136,22 @@ void Core::setupFileAccess()
|
|||
if(!ttvfs::checkCompat())
|
||||
exit_error("ttvfs not compatible");
|
||||
|
||||
ttvfs_setroot(&vfs);
|
||||
|
||||
vfs.AddLoader(new ttvfs::DiskLoader);
|
||||
vfs.AddArchiveLoader(new ttvfs::VFSZipArchiveLoader);
|
||||
|
||||
if(!vfs.LoadFileSysRoot(false))
|
||||
{
|
||||
exit_error("Failed to setup file access");
|
||||
}
|
||||
|
||||
vfs.Prepare();
|
||||
|
||||
|
||||
ttvfs::VFSDir *override = vfs.GetDir("override");
|
||||
if(override)
|
||||
{
|
||||
debugLog("Mounting override dir...");
|
||||
override->load(true);
|
||||
vfs.Mount("override", "", true);
|
||||
}
|
||||
vfs.Mount("override", "");
|
||||
|
||||
// If we ever want to read from a container...
|
||||
//vfs.AddArchive("aqfiles.zip", false, "");
|
||||
//vfs.AddArchive("aqfiles.zip");
|
||||
|
||||
if(_extraDataDir.length())
|
||||
{
|
||||
debugLog("Mounting extra data dir: " + _extraDataDir);
|
||||
vfs.MountExternalPath(_extraDataDir.c_str(), "", true, true);
|
||||
vfs.Mount(_extraDataDir.c_str(), "");
|
||||
}
|
||||
|
||||
|
||||
debugLog("Done");
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue