forked from alterware/iw6-mod
Various minor tweaks (not user-facing).
This commit is contained in:
@@ -25,8 +25,8 @@ namespace // demo class
|
|||||||
[[nodiscard]] bool rewind_demo(std::optional<std::uint32_t> msec);
|
[[nodiscard]] bool rewind_demo(std::optional<std::uint32_t> msec);
|
||||||
[[nodiscard]] bool start(std::filesystem::path& path, bool repeat);
|
[[nodiscard]] bool start(std::filesystem::path& path, bool repeat);
|
||||||
[[nodiscard]] std::optional<std::reference_wrapper<std::filesystem::path>> restart();
|
[[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> [[nodiscard]] 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 handle_fast_forward(Func func, Args&&... args);
|
||||||
|
|
||||||
void parse_demo_wrapper();
|
void parse_demo_wrapper();
|
||||||
void stop();
|
void stop();
|
||||||
|
|||||||
@@ -83,15 +83,18 @@ namespace // checked client num class
|
|||||||
return std::isdigit(c);
|
return std::isdigit(c);
|
||||||
});
|
});
|
||||||
|
|
||||||
auto value = std::numeric_limits<std::size_t>::max();
|
if (all_digits)
|
||||||
const auto ec = std::from_chars(pid.data(), pid.data() + pid.size(), value).ec;
|
|
||||||
|
|
||||||
if (all_digits && ec == std::errc{})
|
|
||||||
{
|
{
|
||||||
const auto client_num = check_client_num(value);
|
auto value = std::numeric_limits<std::size_t>::max();
|
||||||
if (client_num)
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ namespace game
|
|||||||
|
|
||||||
WEAK symbol<bool(int localClientNum, void* luaVM)> LUI_IntermissionBegan{0, 0x1401CEB40};
|
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* 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
|
// Made up name, replaced by ScopedCriticalSection on Black Ops 3
|
||||||
WEAK symbol<void()> LUI_EnterCriticalSection{0x1401AE940, 0x1401CD040};
|
WEAK symbol<void()> LUI_EnterCriticalSection{0x1401AE940, 0x1401CD040};
|
||||||
WEAK symbol<void()> LUI_LeaveCriticalSection{0x1401B0AA0, 0x1401CF1A0};
|
WEAK symbol<void()> LUI_LeaveCriticalSection{0x1401B0AA0, 0x1401CF1A0};
|
||||||
|
|||||||
Reference in New Issue
Block a user