mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-04-02 21:42:35 +00:00
fix error when no -game was provided
This commit is contained in:
parent
84745a2085
commit
a66efd6102
@ -324,15 +324,14 @@ static bool FileSystem_GetBaseDir( char *baseDir, int baseDirLen )
|
|||||||
{
|
{
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
Q_strncpy(baseDir, getenv("VALVE_GAME_PATH"), baseDirLen);
|
Q_strncpy(baseDir, getenv("VALVE_GAME_PATH"), baseDirLen);
|
||||||
return true;
|
|
||||||
#else
|
#else
|
||||||
// get relative base dir which appends to other paths
|
// get relative base dir which appends to other paths
|
||||||
// allows to run from everywhere
|
// allows to run from everywhere
|
||||||
// "hl2/portal" -> "hl2"; "hl2" -> ""
|
// "hl2/portal" -> "hl2"; "hl2" -> ""
|
||||||
Q_strncpy( baseDir, CommandLine()->ParmValue("-game"), baseDirLen );
|
Q_strncpy( baseDir, CommandLine()->ParmValue("-game", ""), baseDirLen );
|
||||||
Q_StripFilename( baseDir );
|
Q_StripFilename( baseDir );
|
||||||
return true;
|
|
||||||
#endif
|
#endif
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LaunchVConfig()
|
void LaunchVConfig()
|
||||||
|
Loading…
Reference in New Issue
Block a user