iw5-mod/src/main.cpp

24 lines
537 B
C++
Raw Normal View History

2018-12-01 09:42:29 -05:00
#include <std_include.hpp>
2018-12-23 07:17:08 -05:00
#include "launcher/launcher.hpp"
2018-12-01 09:42:29 -05:00
2018-12-23 07:17:08 -05:00
int CALLBACK WinMain(HINSTANCE /*hInstance*/, HINSTANCE /*hPrevInstance*/, LPSTR /*lpCmdLine*/, int /*nCmdShow*/)
2018-12-01 09:42:29 -05:00
{
2018-12-23 07:17:08 -05:00
launcher launcher;
2018-12-23 12:25:22 -05:00
const auto mode = launcher.run();
if(mode == launcher::mode::NONE)
{
return 0;
}
else if(mode == launcher::mode::SINGLEPLAYER)
{
OutputDebugStringA("\n\nSINGLEPLAYER\n\n");
}
else if(mode == launcher::mode::MULTIPLAYER)
{
2018-12-23 13:19:37 -05:00
MessageBoxA(nullptr, "Multiplayer not supported yet!", "ERROR", MB_ICONEXCLAMATION);
2018-12-23 12:25:22 -05:00
}
return 0;
2018-12-01 09:42:29 -05:00
}