feat: admen abooze

This commit is contained in:
2026-09-09 21:14:45 +02:00
parent 043f8f07c0
commit 02ba3b3663
68 changed files with 228 additions and 2039 deletions
+9 -8
View File
@@ -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_;
}