Skip to content

Commit 45ac9aa

Browse files
committed
Removed dedicated patch as this wont work at all because plugin has to be loaded later
1 parent 565e187 commit 45ac9aa

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

p2mm.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,8 @@ bool CP2MMServerPlugin::Load(CreateInterfaceFn interfaceFactory, const CreateInt
376376
try
377377
{
378378
// Byte patches
379-
380-
// "Steam not running." error fix for dedicated servers. This only works for dedicated servrs when the plugin file is named "ghostinj" and server is run with -usegh.
381-
if (engineServer->IsDedicatedServer())
382-
Memory::ReplacePattern("engine", "75 ?? 68 ?? ?? ?? ?? FF 15 ?? ?? ?? ?? 83 C4 ?? 5F C3 56", "EB ?? 68 ?? ?? ?? ?? FF 15 ?? ?? ?? ?? 83 C4 ?? 5F C3 56");
383379
Log(INFO, true, "Patching Portal 2...");
384-
380+
385381
// Linked portal doors event crash patch.
386382
if (!this->m_bP2SMPluginLoaded)
387383
{
@@ -543,12 +539,8 @@ void CP2MMServerPlugin::Unload(void)
543539
try
544540
{
545541
// Undo byte patches
546-
547-
// "Steam not running." error fix for dedicated servers. This only works for dedicated servrs when the plugin file is named "ghostinj" and server is run with -usegh.
548-
if (engineServer->IsDedicatedServer())
549-
Memory::ReplacePattern("engine", "EB ?? 68 ?? ?? ?? ?? FF 15 ?? ?? ?? ?? 83 C4 ?? 5F C3 56", "75 ?? 68 ?? ?? ?? ?? FF 15 ?? ?? ?? ?? 83 C4 ?? 5F C3 56");
550542
Log(INFO, true, "Un-patching Portal 2...");
551-
543+
552544
// Linked portal doors event crash patch
553545
if (!this->m_bP2SMPluginLoaded)
554546
{

0 commit comments

Comments
 (0)