Create two executables - one for the game and one for the baking tool

This commit is contained in:
Magnus Norddahl 2025-01-04 03:32:40 +01:00
commit a466fbd35a
7 changed files with 145 additions and 27 deletions

23
src/toolmain.cpp Normal file
View file

@ -0,0 +1,23 @@
#if defined(WIN32)
#define WIN32_MEAN_AND_LEAN
#include <Windows.h>
int I_ToolMain(HINSTANCE hInstance, HINSTANCE nothing, LPWSTR cmdline, int nCmdShow);
int wmain()
{
return I_ToolMain(GetModuleHandle(0), 0, GetCommandLineW(), SW_SHOW);
}
#else
int I_ToolMain(int argc, char** argv);
int main(int argc, char** argv)
{
return I_ToolMain(argc, argv);
}
#endif