mirror of
https://github.com/JezuzLizard/T4SP-Server-Plugin.git
synced 2025-11-29 23:37:47 +00:00
Use t6-gsc-utils as a base.
This commit is contained in:
32
src/game/game.cpp
Normal file
32
src/game/game.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#include <stdinc.hpp>
|
||||
#include "game.hpp"
|
||||
|
||||
#include <utils/hook.hpp>
|
||||
|
||||
namespace game
|
||||
{
|
||||
gamemode current = reinterpret_cast<const char*>(0x88A5DC) != "CoDWaW.exe"s
|
||||
? gamemode::multiplayer
|
||||
: gamemode::singleplayer;
|
||||
|
||||
namespace environment
|
||||
{
|
||||
bool t4mp()
|
||||
{
|
||||
return current == gamemode::multiplayer;
|
||||
}
|
||||
|
||||
bool t4sp()
|
||||
{
|
||||
return current == gamemode::singleplayer;
|
||||
}
|
||||
}
|
||||
|
||||
namespace plutonium
|
||||
{
|
||||
bool is_up_to_date()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user