mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-17 20:09:35 +00:00
Fix ttvfs bugs, sync with dev repo
This commit is contained in:
parent
6203bc7ce4
commit
b437a7cb2c
13 changed files with 84 additions and 108 deletions
|
@ -2804,19 +2804,13 @@ bool DSQ::mountModPackage(const std::string& pkg)
|
|||
{
|
||||
// Load archive only if no such directory exists already (prevent loading multiple times)
|
||||
vd = vfs.AddArchive(pkg.c_str());
|
||||
if(vd)
|
||||
debugLog("Package: Loaded file " + pkg);
|
||||
else
|
||||
if(!vd)
|
||||
{
|
||||
debugLog("Package: Unable to load " + pkg);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if(!vfs.Mount(pkg.c_str(), mod.getBaseModPath().c_str()))
|
||||
{
|
||||
debugLog("Package: Failed to mount: " + pkg);
|
||||
return false;
|
||||
}
|
||||
vfs.Mount(pkg.c_str(), mod.getBaseModPath().c_str());
|
||||
debugLog("Package: Mounted " + pkg + " as archive in _mods");
|
||||
return true;
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue