Skip to content

Commit 7ea2c37

Browse files
committed
fix(core): Precacher not being called
1 parent 49ae977 commit 7ea2c37

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

plugin_files/gamedata/cs2/core/signatures.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@
121121
},
122122
"CCSPlayer_MovementServices_ProcessUserCmd": {
123123
"lib": "server",
124-
"windows": "48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC ? 48 8B FA 48 8B F1 E8 ? ? ? ? 48 8B D8",
125-
"linux": "55 48 89 E5 41 55 49 89 F5 41 54 49 89 FC E8 ? ? ? ? 48 85 C0 74 30"
124+
"windows": "48 8B C4 44 88 48 20 44 89 40 18 48 89 50 10 53",
125+
"linux": "55 48 89 E5 41 57 41 56 41 89 D6 41 55 41 54 49 89 FC 53 48 83 EC 38"
126126
},
127127
"CSoundOpGameSystem_SetSoundEventParam": {
128128
"lib": "server",

src/core/entrypoint.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <engine/vgui/vgui.h>
1818
#include <engine/gameevents/gameevents.h>
1919
#include <engine/precacher/precacher.h>
20+
#include <engine/precacher/game_system.h>
2021

2122
#include <entities/system.h>
2223

@@ -197,6 +198,9 @@ bool SwiftlyS2::Load(PluginId id, ISmmAPI* ismm, char* error, size_t maxlen, boo
197198
g_pluginManager.LoadPlugins("");
198199
g_pluginManager.StartPlugins();
199200

201+
if (!InitGameSystem())
202+
PRINTRET("Failed to setup Game System (Precacher).\n", false);
203+
200204
if (late)
201205
{
202206
g_eventManager.RegisterGameEvents();

0 commit comments

Comments
 (0)