Various minor tweaks (not user-facing).

This commit is contained in:
Caball009
2026-07-23 14:06:33 +02:00
parent bf125f5671
commit 365def1513
3 changed files with 13 additions and 10 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ namespace // demo class
[[nodiscard]] bool rewind_demo(std::optional<std::uint32_t> msec);
[[nodiscard]] bool start(std::filesystem::path& path, bool repeat);
[[nodiscard]] std::optional<std::reference_wrapper<std::filesystem::path>> restart();
template <typename Func, typename... Args> auto use_predicted_data(Func func, Args&&... args);
template <typename Func, typename... Args> auto handle_fast_forward(Func func, Args&&... args);
template <typename Func, typename... Args> [[nodiscard]] auto use_predicted_data(Func func, Args&&... args);
template <typename Func, typename... Args> [[nodiscard]] auto handle_fast_forward(Func func, Args&&... args);
void parse_demo_wrapper();
void stop();
+10 -7
View File
@@ -83,15 +83,18 @@ namespace // checked client num class
return std::isdigit(c);
});
auto value = std::numeric_limits<std::size_t>::max();
const auto ec = std::from_chars(pid.data(), pid.data() + pid.size(), value).ec;
if (all_digits && ec == std::errc{})
if (all_digits)
{
const auto client_num = check_client_num(value);
if (client_num)
auto value = std::numeric_limits<std::size_t>::max();
const auto ec = std::from_chars(pid.data(), pid.data() + pid.size(), value).ec;
if (ec == std::errc{})
{
return client_num;
const auto client_num = check_client_num(value);
if (client_num)
{
return client_num;
}
}
}
}
+1 -1
View File
@@ -158,7 +158,7 @@ namespace game
WEAK symbol<bool(int localClientNum, void* luaVM)> LUI_IntermissionBegan{0, 0x1401CEB40};
WEAK symbol<void(int localClientNum, const char* menuName, int isPopup, int isModal, unsigned int isExclusive)> LUI_OpenMenu{0x1403FD460, 0x1404B3610};
WEAK symbol<void(int localClientNum, const char* rootName, int deltaTime, void* luaVM)> LUI_Layout{ 0, 0x1401CF060 };
WEAK symbol<void(int localClientNum, const char* rootName, int deltaTime, void* luaVM)> LUI_Layout{0, 0x1401CF060};
// Made up name, replaced by ScopedCriticalSection on Black Ops 3
WEAK symbol<void()> LUI_EnterCriticalSection{0x1401AE940, 0x1401CD040};
WEAK symbol<void()> LUI_LeaveCriticalSection{0x1401B0AA0, 0x1401CF1A0};