From 1902b6e65903d82ad91424e825dfc2e576d5e410 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 26 Sep 2015 19:26:21 -0500 Subject: [PATCH] Fix compiling on Windows without Steam path/appid --- code/sys/sys_win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/sys/sys_win32.c b/code/sys/sys_win32.c index 4771e390..24fe1cf5 100644 --- a/code/sys/sys_win32.c +++ b/code/sys/sys_win32.c @@ -140,7 +140,6 @@ char *Sys_SteamPath( void ) HKEY steamRegKey; DWORD pathLen = MAX_OSPATH; qboolean finishPath = qfalse; -#endif #ifdef STEAMPATH_APPID if (!steamPath[0] && !RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Steam App " STEAMPATH_APPID, 0, KEY_QUERY_VALUE, &steamRegKey)) @@ -181,6 +180,7 @@ char *Sys_SteamPath( void ) if (finishPath) Q_strcat(steamPath, MAX_OSPATH, "\\SteamApps\\common\\" STEAMPATH_NAME ); } +#endif return steamPath; }