Skip to content

Commit

Permalink
fixed undefined behavior when finding HL2 installation
Browse files Browse the repository at this point in the history
hopefully will take care of #65
  • Loading branch information
Pinsplash committed Apr 14, 2024
1 parent d101007 commit 20b2454
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sp/src/game/client/cdll_client_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1173,9 +1173,10 @@ void CHLClient::PostInit()
Msg("szPath %s\n", szPath);
if (ccFolder > 0)
{
Q_snprintf(szPath, sizeof(szPath), "%s\\%s", szPath, "hl2");
Msg("%s\n", szPath);
g_pFullFileSystem->AddSearchPath(szPath, "GAME");
char szFullPath[MAX_PATH * 2];
Q_snprintf(szFullPath, sizeof(szFullPath), "%s\\%s", szPath, "hl2");
Msg("szFullPath %s\n", szFullPath);
g_pFullFileSystem->AddSearchPath(szFullPath, "GAME");
}
}
#ifdef HL1MP_CLIENT_DLL
Expand Down

0 comments on commit 20b2454

Please sign in to comment.