mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-07 01:54:19 +01:00
Fix linux build.
This commit is contained in:
parent
fdcbe71317
commit
2bd02e10e7
@ -235,9 +235,8 @@ mm_GetGameName(char *buffer, size_t size)
|
||||
|
||||
#elif defined __linux__
|
||||
FILE *pFile = fopen("/proc/self/cmdline", "rb");
|
||||
if (!pFile)
|
||||
return false;
|
||||
|
||||
if (pFile)
|
||||
{
|
||||
char *arg = NULL;
|
||||
size_t argsize = 0;
|
||||
bool bNextIsGame = false;
|
||||
@ -259,7 +258,7 @@ mm_GetGameName(char *buffer, size_t size)
|
||||
|
||||
free(arg);
|
||||
fclose(pFile);
|
||||
|
||||
}
|
||||
#else
|
||||
#error unsupported platform
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user