Added code for demo system. #16

Open
anomaly wants to merge 14 commits from anomaly/iw6-mod:demo_system into master
3 changed files with 7 additions and 1 deletions
Showing only changes of commit d26a5fe43f - Show all commits

View File

@ -59,7 +59,7 @@ namespace dedicated_info
utils::string::strip(sv_hostname->current.string, cleaned_hostname.data(),
cleaned_hostname.size() + 1);
console::set_title(utils::string::va("%s on %s [%d/%d] (%d)", cleaned_hostname.data(),
console::set_title(utils::string::va("%s on %s [%d/%d] (%d)", cleaned_hostname.c_str(),
mapname->current.string, client_count,
sv_maxclients->current.integer, bot_count));
}, scheduler::pipeline::main, 1s);

View File

@ -46,7 +46,10 @@
#undef min
#endif
#include <algorithm>
#include <array>
#include <atomic>
#include <cassert>
#include <chrono>
#include <filesystem>
#include <format>
@ -54,6 +57,7 @@
#include <functional>
#include <map>
#include <mutex>
#include <numeric>
#include <optional>
#include <queue>
#include <random>

View File

@ -2,6 +2,7 @@
#include "string.hpp"
#include <MinHook.h>
#include <cassert>
namespace utils::hook
{
@ -279,6 +280,7 @@ namespace utils::hook
void* result = nullptr;
runtime.add(&result, &code);
assert(result);
return result;
}