mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Speed up GetAvailableMods for archives.
Refs64bfa089afand44ec2e324eWhen a .zip file is encountered by the VFS population, it reads the info for all files in the archives. This is quite slow for the public archive (400-500ms on my computer), which means calling GetEngineInfo() repeatedly is impossible. By only opening the external mod.json, we skip most of the work. The archive can still be opened if needed as fallback. Differential Revision: https://code.wildfiregames.com/D3216 This was SVN commit r25446.
This commit is contained in:
@@ -44,7 +44,7 @@ const u8 minimumReplayDuration = 3;
|
||||
|
||||
OsPath VisualReplay::GetDirectoryPath()
|
||||
{
|
||||
return Paths(g_args).UserData() / "replays" / engine_version;
|
||||
return Paths(g_CmdLineArgs).UserData() / "replays" / engine_version;
|
||||
}
|
||||
|
||||
OsPath VisualReplay::GetCacheFilePath()
|
||||
|
||||
Reference in New Issue
Block a user