diff --git a/CMakeSettings.json b/CMakeSettings.json new file mode 100644 index 00000000..330798fd --- /dev/null +++ b/CMakeSettings.json @@ -0,0 +1,15 @@ +{ + "configurations": [ + { + "name": "x64-Release", + "generator": "Ninja", + "configurationType": "RelWithDebInfo", + "inheritEnvironments": [ "msvc_x64_x64" ], + "buildRoot": "${projectDir}\\out\\build\\${name}", + "installRoot": "${projectDir}\\out\\install\\${name}", + "cmakeCommandArgs": "", + "buildCommandArgs": "", + "ctestCommandArgs": "" + } + ] +} \ No newline at end of file diff --git a/src/backend/backend.cpp b/src/backend/backend.cpp index d701ab81..039e4448 100644 --- a/src/backend/backend.cpp +++ b/src/backend/backend.cpp @@ -3,12 +3,16 @@ #include "thread_pool.hpp" #include "looped/looped.hpp" #include "services/context_menu/context_menu_service.hpp" +#include "script_patches.hpp" namespace big { void backend::loop() { - while (true) { + register_script_patches(); + + while (true) + { g->attempt_save(); looped::system_self_globals(); looped::system_update_pointers(); diff --git a/src/backend/script_patches.hpp b/src/backend/script_patches.hpp new file mode 100644 index 00000000..b635e190 --- /dev/null +++ b/src/backend/script_patches.hpp @@ -0,0 +1,18 @@ +#include "services/script_patcher/script_patcher_service.hpp" +#include