Skip to content

Commit

Permalink
disable auto perform patches on load
Browse files Browse the repository at this point in the history
  • Loading branch information
KillStr3aK committed Dec 12, 2023
1 parent 13c897d commit 6138806
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/core/managers/memory_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,26 @@ MemoryManager::~MemoryManager() = default;

void MemoryManager::OnAllInitialized()
{
/* TODO?
* I've currently disabled performing patches on load as the current implementation would just
* remove the control from the plugins.
*
* uncommenting this will automatically perform every patch that is available in the gamedata file(s).
*
* required changes:
* - create patches at runtime (maybe with dropping the gameconfig dependency)
* - (if not dropping the dependency) load other gamedata files aswell
*
* currently patches in the gamedata file(s) are unused as long as a plugin explicitly performs it.
* for further information, check: https://github.com/roflmuffin/CounterStrikeSharp/pull/160
const auto& gameConfigPatches = globals::gameConfig->GetPatches();
for (const auto& gameConfigPatch : gameConfigPatches)
{
CreatePatch(gameConfigPatch.first.c_str(), gameConfigPatch.first.c_str());
}
*/
}

void MemoryManager::OnShutdown()
Expand Down

0 comments on commit 6138806

Please sign in to comment.