Removes console from Windows release builds. (#1536)

This commit is contained in:
Kenix3 2022-09-20 23:23:47 -04:00 committed by GitHub
parent d83c6f1753
commit d628bafe29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 42 additions and 10 deletions

View file

@ -38,7 +38,11 @@ void Main_LogSystemHeap(void) {
osSyncPrintf(VT_RST);
}
#ifdef _WIN32
int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, PSTR cmdline, int cmdshow)
#else
int main(int argc, char** argv)
#endif
{
#ifdef __linux__
SetupHandlerLinux();
@ -49,6 +53,7 @@ int main(int argc, char** argv)
GameConsole_Init();
InitOTR();
BootCommands_Init();
Main(0);
DeinitOTR();
return 0;