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:
Spoike 2010-08-01 22:54:14 +00:00
parent 6f1369ce9e
commit 449e38c590

View file

@ -1374,7 +1374,7 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
if (COM_CheckParm("--version") || COM_CheckParm("-v"))
{
printf("version " DISTRIBUTION " " __TIME__ __DATE__ "\n");
printf("version " DISTRIBUTION " " __TIME__ " " __DATE__ "\n");
return true;
}
@ -1553,8 +1553,25 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
int __cdecl main(void)
{
char *cmdline;
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