feat: admen abooze
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include "structs.hpp"
|
||||
#include "launcher/launcher.hpp"
|
||||
|
||||
#define SELECT_VALUE(sp, mp) (game::environment::is_sp() ? (sp) : (mp))
|
||||
namespace launcher
|
||||
{
|
||||
enum class mode
|
||||
{
|
||||
none,
|
||||
multiplayer,
|
||||
server,
|
||||
};
|
||||
}
|
||||
|
||||
#define SERVER_CD_KEY "iw6-mod-CD-Key"
|
||||
|
||||
@@ -14,7 +21,6 @@ namespace game
|
||||
launcher::mode get_mode();
|
||||
|
||||
bool is_mp();
|
||||
bool is_sp();
|
||||
bool is_dedi();
|
||||
|
||||
void set_mode(launcher::mode mode);
|
||||
@@ -34,11 +40,6 @@ namespace game
|
||||
|
||||
T* get() const
|
||||
{
|
||||
if (environment::is_sp())
|
||||
{
|
||||
return sp_object_;
|
||||
}
|
||||
|
||||
return mp_object_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user