From 0c31245cd225aa38575dd92bb3308d4f26558a19 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sun, 9 Apr 2017 13:09:01 +0000 Subject: [PATCH] Add registry detection of the Steam path for World Tour installs. git-svn-id: https://svn.eduke32.com/eduke32@6113 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/common.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/duke3d/src/common.cpp b/source/duke3d/src/common.cpp index c9f662f60..0045364ac 100644 --- a/source/duke3d/src/common.cpp +++ b/source/duke3d/src/common.cpp @@ -824,6 +824,13 @@ void G_AddSearchPaths(void) char buf[BMAX_PATH] = {0}; DWORD bufsize; + // Duke Nukem 3D: 20th Anniversary World Tour (Steam) + bufsize = sizeof(buf); + if (G_ReadRegistryValue("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Steam App 434050", "InstallLocation", buf, &bufsize)) + { + addsearchpath_user(buf, SEARCHPATH_REMOVE); + } + // Duke Nukem 3D: Megaton Edition (Steam) bufsize = sizeof(buf); if (G_ReadRegistryValue("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Steam App 225140", "InstallLocation", buf, &bufsize))