Create two executables - one for the game and one for the baking tool
This commit is contained in:
parent
1845de1428
commit
a466fbd35a
7 changed files with 145 additions and 27 deletions
23
src/toolmain.cpp
Normal file
23
src/toolmain.cpp
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue