mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-19 18:11:21 +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);
|
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,
|
// 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
|
// but at least 8 Mb and no more than 16 Mb, unless they explicitly
|
||||||
// request otherwise
|
// request otherwise
|
||||||
|
|
|
@ -225,6 +225,11 @@ int main (int argc, char **argv)
|
||||||
|
|
||||||
parms.basedir = ".";
|
parms.basedir = ".";
|
||||||
|
|
||||||
|
// LordHavoc: check for -basedir
|
||||||
|
t = Com_CheckParm ("-basedir");
|
||||||
|
if (t && (t + 1) < com_argc)
|
||||||
|
parms.basedir = com_argv[t];
|
||||||
|
|
||||||
SV_Init (&parms);
|
SV_Init (&parms);
|
||||||
|
|
||||||
if (COM_CheckParm ("-nopriority"))
|
if (COM_CheckParm ("-nopriority"))
|
||||||
|
|
Loading…
Reference in a new issue