Skip to content

Commit

Permalink
Adds a command line option to disable class extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
CCHyper committed Apr 3, 2022
1 parent d37a372 commit f6ed11e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/extensions/ext_hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@ void Extension_Hooks()
*/
SaveLoad_Hooks();

/**
* Command line option to disable class extensions.
*/
const char *cmdline = GetCommandLineA();
bool no_class_extensions = (std::strstr(cmdline, "-NO_EXT") != nullptr);
if (no_class_extensions) {
return;
}

/**
* Various functions.
*/
Expand Down

0 comments on commit f6ed11e

Please sign in to comment.