mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Add '-novpk' command lien option
When '-novpk' is passed, the engine won't use the filesystem cache, and won't mount any VPK's (all files could be loaded from the disk essentially, the VPK files will be ignored).
This commit is contained in:
parent
6266549cd7
commit
39ee5ddd6d
@ -113,7 +113,7 @@ void CEngineAPI::VSetStartupInfo(CEngineAPI* pEngineAPI, StartupInfo_t* pStartup
|
||||
{
|
||||
V_FixSlashes(szCacheEnableFilePath, '/');
|
||||
}
|
||||
if (FileSystem()->FileExists(szCacheEnableFilePath, nullptr))
|
||||
if (!CommandLine()->CheckParm("-novpk") && FileSystem()->FileExists(szCacheEnableFilePath, nullptr))
|
||||
{
|
||||
FileSystem()->SetVPKCacheModeClient();
|
||||
FileSystem()->AddSearchPath(".", "MAIN", SearchPathAdd_t::PATH_ADD_TO_TAIL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user