summaryrefslogtreecommitdiffhomepage
path: root/src/gameinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gameinfo.c')
-rw-r--r--src/gameinfo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gameinfo.c b/src/gameinfo.c
index b371e76..f8b5311 100644
--- a/src/gameinfo.c
+++ b/src/gameinfo.c
@@ -14,7 +14,6 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-#include <stdbool.h>
#ifdef _WIN32
#include <shlwapi.h>
#endif
@@ -260,7 +259,7 @@ bool gameinfo_init(void) {
// to respect the system code page setting, otherwise some users using e.g.
// Cyrillic folder names and successfully loading their speedgames won't be
// able to load SST. Thanks Windows!
- const char *lcpgamedir = VCALL(engclient, GetGameDirectory);
+ const char *lcpgamedir = GetGameDirectory(engclient);
int gamedirlen = MultiByteToWideChar(CP_ACP, 0, lcpgamedir,
strlen(lcpgamedir), gamedir, sizeof(gamedir) / sizeof(*gamedir));
if (!gamedirlen) {