Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
EDuke32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
92
Issues
92
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Richard Gobeille
EDuke32
Commits
84e622df
Commit
84e622df
authored
Dec 12, 2020
by
Evan Ramos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add detection of ZOOM Platform paths for Duke3D (Win/Mac) and SW (Win)
parent
cbc1bd44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
source/duke3d/src/common.cpp
source/duke3d/src/common.cpp
+17
-0
source/sw/src/common.cpp
source/sw/src/common.cpp
+8
-0
No files found.
source/duke3d/src/common.cpp
View file @
84e622df
...
...
@@ -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
))
...
...
source/sw/src/common.cpp
View file @
84e622df
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment