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/gamemain.cpp Normal file
View file

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