mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-07 10:28:30 +00:00
Allow workflow to be manually dispatched + Fix windows compilation
This commit is contained in:
parent
37e0273cc5
commit
c31229be95
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -1,5 +1,6 @@
|
||||
name: Continuous Integration
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
@ -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
|
||||
{
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user