Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
NY00123
EDuke32-CSRefactor
Commits
9a137030
Commit
9a137030
authored
May 21, 2020
by
Evan Ramos
Browse files
SW: Add -j<dir> command line parameter
parent
e7a5a297
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/sw/src/game.cpp
View file @
9a137030
...
...
@@ -3606,6 +3606,26 @@ int32_t app_main(int32_t argc, char const * const * argv)
SW_ExtInit
();
for
(
cnt
=
1
;
cnt
<
argc
;
++
cnt
)
{
char
const
*
arg
=
argv
[
cnt
];
if
(
*
arg
!=
'/'
&&
*
arg
!=
'-'
)
continue
;
++
arg
;
if
(
Bstrncasecmp
(
arg
,
"j"
,
1
)
==
0
&&
!
SW_SHAREWARE
)
{
if
(
strlen
(
arg
)
>
1
)
{
const
char
*
dir
=
arg
+
1
;
int
err
=
addsearchpath
(
dir
);
if
(
err
<
0
)
buildprintf
(
"Failed adding %s for game data: %s
\n
"
,
dir
,
err
==-
1
?
"not a directory"
:
"no such directory"
);
}
}
}
// hackish since SW's init order is a bit different right now
if
(
G_CheckCmdSwitch
(
argc
,
argv
,
"-addon0"
))
{
...
...
Write
Preview
Supports
Markdown
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