Added a few changes.

Added missing includes to the list of standard headers.
Added an assertion to the asmjit assemble function to get an early warning if asmjit fails silently.
This commit is contained in:
Caball 2024-12-31 00:17:24 +01:00
parent 7954966c60
commit d26a5fe43f
3 changed files with 7 additions and 1 deletions

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;
}