diff -r b5511a1fa380 -r 3e58428d988f core/sourcemod.cpp --- a/core/sourcemod.cpp Sat Aug 31 19:50:36 2013 -0700 +++ b/core/sourcemod.cpp Sun Sep 01 00:23:44 2013 -0700 @@ -61,6 +61,7 @@ IGameConfig *g_pGameConf = NULL; bool g_Loaded = false; bool sm_show_debug_spew = false; +bool sm_disable_jit = false; typedef ISourcePawnEngine *(*GET_SP_V1)(); typedef ISourcePawnEngine2 *(*GET_SP_V2)(); @@ -125,6 +126,14 @@ return ConfigResult_Accept; } + else if (strcasecmp(key, "DisableJIT") == 0) + { + sm_disable_jit = (strcasecmp(value, "yes") == 0) ? true : false; + if (g_pSourcePawn2) + g_pSourcePawn2->SetJitEnabled(!sm_disable_jit); + + return ConfigResult_Accept; + } return ConfigResult_Ignore; } @@ -242,6 +251,9 @@ g_pSourcePawn2->SetDebugListener(logicore.debugger); + if (sm_disable_jit) + g_pSourcePawn2->SetJitEnabled(!sm_disable_jit); + sSourceModInitialized = true; /* Hook this now so we can detect startup without calling StartSourceMod() */