mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 14:52:08 +00:00
added back -basedir in a different place (win32 only)
This commit is contained in:
parent
06ead88d9d
commit
2231b97572
2 changed files with 10 additions and 0 deletions
|
@ -495,6 +495,11 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
|
|||
SetForegroundWindow (hwnd_dialog);
|
||||
}
|
||||
|
||||
// LordHavoc: check for -basedir
|
||||
t = Com_CheckParm ("-basedir");
|
||||
if (t && (t + 1) < com_argc)
|
||||
parms.basedir = com_argv[t];
|
||||
|
||||
// take the greater of all the available memory or half the total memory,
|
||||
// but at least 8 Mb and no more than 16 Mb, unless they explicitly
|
||||
// request otherwise
|
||||
|
|
|
@ -225,6 +225,11 @@ int main (int argc, char **argv)
|
|||
|
||||
parms.basedir = ".";
|
||||
|
||||
// LordHavoc: check for -basedir
|
||||
t = Com_CheckParm ("-basedir");
|
||||
if (t && (t + 1) < com_argc)
|
||||
parms.basedir = com_argv[t];
|
||||
|
||||
SV_Init (&parms);
|
||||
|
||||
if (COM_CheckParm ("-nopriority"))
|
||||
|
|
Loading…
Reference in a new issue