Fix running Editor or Game target with console on Windows

This commit is contained in:
Wojtek Figat
2026-03-06 11:11:45 +01:00
parent b8fcb51aa3
commit c0056f3d9d
3 changed files with 7 additions and 3 deletions

View File

@@ -25,13 +25,13 @@ extern "C" {
__declspec(dllexport) int32 AmdPowerXpressRequestHighPerformance = 1;
}
#if FLAX_TESTS
#if PLAIN_MAIN
int main(int argc, char* argv[])
#else
int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
#endif
{
#if FLAX_TESTS
#if PLAIN_MAIN
HINSTANCE hInstance = GetModuleHandle(NULL);
LPTSTR lpCmdLine = GetCommandLineW();
#endif