mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 05:41:52 +00:00
Should fix the insanely slow loading mingw builds.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3569 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
6f1369ce9e
commit
449e38c590
1 changed files with 19 additions and 2 deletions
|
@ -1374,7 +1374,7 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
|
||||||
|
|
||||||
if (COM_CheckParm("--version") || COM_CheckParm("-v"))
|
if (COM_CheckParm("--version") || COM_CheckParm("-v"))
|
||||||
{
|
{
|
||||||
printf("version " DISTRIBUTION " " __TIME__ __DATE__ "\n");
|
printf("version " DISTRIBUTION " " __TIME__ " " __DATE__ "\n");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1553,8 +1553,25 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
|
||||||
|
|
||||||
int __cdecl main(void)
|
int __cdecl main(void)
|
||||||
{
|
{
|
||||||
|
char *cmdline;
|
||||||
FreeConsole();
|
FreeConsole();
|
||||||
return WinMain(GetModuleHandle(NULL), NULL, GetCommandLine(), SW_NORMAL);
|
cmdline = GetCommandLine();
|
||||||
|
while (*cmdline && cmdline == ' ')
|
||||||
|
cmdline++;
|
||||||
|
if (*cmdline == '\"')
|
||||||
|
{
|
||||||
|
cmdline++;
|
||||||
|
while (*cmdline && cmdline != '\"')
|
||||||
|
cmdline++;
|
||||||
|
if (*cmdline == '\"')
|
||||||
|
cmdline++;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
while (*cmdline && cmdline != ' ')
|
||||||
|
cmdline++;
|
||||||
|
}
|
||||||
|
return WinMain(GetModuleHandle(NULL), NULL, cmdline, SW_NORMAL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue