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