diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18bbf4e..3aeb865 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,6 @@ name: Continuous Integration on: + workflow_dispatch: push: branches: - master diff --git a/core/provider/source2/provider_source2.cpp b/core/provider/source2/provider_source2.cpp index 08fb73f..2df4e61 100644 --- a/core/provider/source2/provider_source2.cpp +++ b/core/provider/source2/provider_source2.cpp @@ -53,7 +53,7 @@ Source2Provider::Source2Provider() : m_LoopShutdown(&ILoopMode::LoopShutdown, this, nullptr, &Source2Provider::Hook_LoopShutdownPost), m_ClientCommand(&IServerGameClients::ClientCommand, this, &Source2Provider::Hook_ClientCommand, nullptr) #ifdef SHOULD_OVERRIDE_ALLOWDEDICATED_SERVER - ,m_AllowDedicatedServers(this, &Source2Provider::Hook_AllowDedicatedServers, nullptr) + ,m_AllowDedicatedServers(&ISource2ServerConfig::AllowDedicatedServers, this, &Source2Provider::Hook_AllowDedicatedServers, nullptr) #endif { } diff --git a/loader/gamedll.cpp b/loader/gamedll.cpp index fc3bd33..bba4aa4 100644 --- a/loader/gamedll.cpp +++ b/loader/gamedll.cpp @@ -689,7 +689,7 @@ mm_PatchAllowDedicated(bool patch) void **vtable_src; void **vtable_dest; - auto mfp = KHook::__GetMFPVtableIndex__(&ISource2ServerConfig::AllowDedicatedServers); + std::int32_t mfp = KHook::__GetMFPVtableIndex__(&ISource2ServerConfig::AllowDedicatedServers); assert(mfp != -1); @@ -721,7 +721,7 @@ mm_PatchConnect(bool patch) void **vtable_src; void **vtable_dest; - auto mfp = KHook::__GetMFPVtableIndex__(&ISource2ServerConfig::Connect); + std::int32_t mfp = KHook::__GetMFPVtableIndex__(&ISource2ServerConfig::Connect); vtable_src = (void **) *(void **) &is2sc_thunk; vtable_dest = (void **) *(void **) config_iface;