Allow workflow to be manually dispatched + Fix windows compilation

This commit is contained in:
Kenzzer 2025-04-29 10:17:33 +00:00
parent 37e0273cc5
commit c31229be95
No known key found for this signature in database
GPG Key ID: 64C3FD4332686DC1
3 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
name: Continuous Integration
on:
workflow_dispatch:
push:
branches:
- master

View File

@ -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
{
}

View File

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