Commit 84e622df authored by Evan Ramos's avatar Evan Ramos

Add detection of ZOOM Platform paths for Duke3D (Win/Mac) and SW (Win)

parent cbc1bd44
......@@ -638,6 +638,10 @@ void G_AddSearchPaths(void)
// Duke Nukem 3D: Atomic Edition - GOG.com
Bsnprintf(buf, sizeof(buf), "%s/Duke Nukem 3D.app/Contents/Resources/Duke Nukem 3D.boxer/C.harddisk", applications[i]);
addsearchpath_user(buf, SEARCHPATH_REMOVE);
// Duke Nukem 3D: Atomic Edition - ZOOM Platform
Bsnprintf(buf, sizeof(buf), "%s/Duke Nukem 3D - Atomic Edition.app/Contents/MacOS/Duke3D - Atomic Edition", applications[i]);
addsearchpath_user(buf, SEARCHPATH_REMOVE);
}
for (i = 0; i < 2; i++)
......@@ -699,6 +703,19 @@ void G_AddSearchPaths(void)
addsearchpath_user(buf, SEARCHPATH_REMOVE);
}
// Duke Nukem 3D: Atomic Edition - ZOOM Platform
bufsize = sizeof(buf);
if (Paths_ReadRegistryValue(R"(SOFTWARE\ZOOM PLATFORM\Duke Nukem 3D - Atomic Edition)", "InstallPath", buf, &bufsize))
{
char * const suffix = buf + bufsize - 1;
DWORD const remaining = sizeof(buf) - bufsize;
addsearchpath_user(buf, SEARCHPATH_REMOVE);
Bstrncpy(suffix, "/AddOns", remaining);
addsearchpath_user(buf, SEARCHPATH_REMOVE);
}
// Duke Nukem 3D - 3D Realms Anthology
bufsize = sizeof(buf);
if (Paths_ReadRegistryValue("SOFTWARE\\3DRealms\\Duke Nukem 3D", NULL, buf, &bufsize))
......
......@@ -266,6 +266,14 @@ static void SW_AddSearchPaths()
return;
}
// Shadow Warrior Classic Complete - ZOOM Platform
bufsize = sizeof(buf);
if (Paths_ReadRegistryValue(R"(SOFTWARE\ZOOM PLATFORM\Shadow Warrior Classic Complete)", "InstallPath", buf, &bufsize))
{
if (SW_Add_GOG_SWCC(buf) == 0)
return;
}
// Shadow Warrior (Classic) - 3D Realms Anthology - Steam
bufsize = sizeof(buf);
if (Paths_ReadRegistryValue(R"(SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 358400)", "InstallLocation", buf, &bufsize))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment