feat(menu): add invoker and some basic commands

This commit is contained in:
maybegreat48
2025-03-14 23:42:21 -04:00
parent aa3746462b
commit c3604ca819
50 changed files with 24853 additions and 6753 deletions
+8 -8
View File
@@ -9,6 +9,7 @@
#include "core/hooking/Hooking.hpp"
#include "core/memory/ModuleMgr.hpp"
#include "core/renderer/Renderer.hpp"
#include "game/backend/Self.hpp"
#include "game/frontend/GUI.hpp"
#include "game/pointers/Pointers.hpp"
@@ -38,25 +39,24 @@ namespace YimMenu
ScriptMgr::Init();
LOG(INFO) << "ScriptMgr initialized";
FiberPool::Init(5);
LOG(INFO) << "FiberPool initialized";
GUI::Init();
ScriptMgr::AddScript(std::make_unique<Script>(&Self::RunScript));
FiberPool::Init(5);
ScriptMgr::AddScript(std::make_unique<Script>(&Commands::RunScript));
Notifications::Show("YimMenuV2", "Loaded succesfully", NotificationType::Success);
while (g_Running)
{
Settings::Tick();
std::this_thread::yield();
}
ScriptMgr::AddScript(std::make_unique<Script>(&Commands::RunScript));
Notifications::Show("YimMenuV2", "Loaded succesfully", NotificationType::Success);
unload:
LOG(INFO) << "Unloading";
ScriptMgr::Destroy();
FiberPool::Destroy();
ScriptMgr::Destroy();
Hooking::Destroy();
Renderer::Destroy();
LogHelper::Destroy();