Skip to content

Commit

Permalink
[sdk] quick fix for game update
Browse files Browse the repository at this point in the history
idk if there is something left
  • Loading branch information
maecry committed Apr 3, 2024
1 parent 2231fd6 commit 89265dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cstrike/sdk/interfaces/ischemasystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "../../utilities/memory.h"

#define SCHEMASYSTEM_TYPE_SCOPES_OFFSET 0x190
#define SCHEMASYSTEMTYPESCOPE_OFF1 0x4B0
#define SCHEMASYSTEMTYPESCOPE_OFF1 0x4B8
#define SCHEMASYSTEMTYPESCOPE_OFF2 0x2808

using SchemaString_t = const char*;
Expand Down
2 changes: 1 addition & 1 deletion cstrike/utilities/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ bool MEM::Setup()
fnLoadKV3 = reinterpret_cast<decltype(fnLoadKV3)>(GetExportAddress(hTier0, CS_XOR("?LoadKV3@@YA_NPEAVKeyValues3@@PEAVCUtlString@@PEBDAEBUKV3ID_t@@2@Z")));
bSuccess &= (fnLoadKV3 != nullptr);

fnCreateMaterial = reinterpret_cast<decltype(fnCreateMaterial)>(FindPattern(MATERIAL_SYSTEM2_DLL, CS_XOR("48 89 5C 24 ? 48 89 6C 24 ? 56 57 41 56 48 81 EC ? ? ? ? 48 8D 0D")));
fnCreateMaterial = reinterpret_cast<decltype(fnCreateMaterial)>(FindPattern(MATERIAL_SYSTEM2_DLL, CS_XOR("48 89 5C 24 ? 48 89 6C 24 ? 56 57 41 56 48 81 EC ? ? ? ? 48 8B 05")));
bSuccess &= (fnCreateMaterial != nullptr);

return bSuccess;
Expand Down

0 comments on commit 89265dc

Please sign in to comment.