Fix dedicated server crash for Linux (Lutris and Wine)

The issue was caused by checking if a file with '//*/' in its path exist on the disk. This causes crashes on Lutris and Wine.
This commit is contained in:
Amos
2022-01-27 03:55:47 +01:00
parent edac787bf7
commit 3eec52e79b
3 changed files with 14 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
//=============================================================================//
//
// Purpose: IApplication methods
//
//=============================================================================//
#include "core/stdafx.h"
#include "tier0/cvar.h"
#include "launcher/IApplication.h"
@@ -56,6 +62,8 @@ bool HIApplication_Create(void* a1)
{
g_vsvAllConVars.push_back(map.first.c_str());
}
g_bAppSystemInit = true;
return IAppSystem_Create(a1);
}