iw5-mod/src/game/game.cpp
2018-12-26 16:28:16 +01:00

36 lines
535 B
C++

#include <std_include.hpp>
#include "game.hpp"
namespace game
{
namespace native
{
Sys_ShowConsole_t Sys_ShowConsole;
}
launcher::mode mode = launcher::mode::none;
bool is_mp()
{
return mode == launcher::mode::multiplayer;
}
bool is_sp()
{
return mode == launcher::mode::singleplayer;
}
bool is_dedi()
{
return mode == launcher::mode::server;
}
void initialize(const launcher::mode _mode)
{
mode = _mode;
native::Sys_ShowConsole = native::Sys_ShowConsole_t(SELECT_VALUE(0x470AF0, 0x5CF590, 0));
}
}