File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ class CleanCheat final
4848 // SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_RED | FOREGROUND_INTENSITY);
4949 }
5050
51+ return _init = true ;
52+ }
53+
54+ static bool RegisterRunners ()
55+ {
5156 // Runner
5257 _runners.clear ();
5358 std::vector<uintptr_t > runners = CleanCheatUtils::CollectPointersAddress<RunnersCollection>(Runners);
@@ -63,15 +68,21 @@ class CleanCheat final
6368 _runners.push_back (runner);
6469 }
6570
66- return _init = true ;
71+ return true ;
6772 }
68-
73+
6974 template <typename TSharedTickParamType>
7075 static void Tick (TSharedTickParamType* sharedDataTickParam)
7176 {
7277 if (!_init)
7378 return ;
7479
80+ if (_runners.empty ())
81+ {
82+ LOG (" There is no runners, Are you forget to call 'RegisterRunners' function" );
83+ return ;
84+ }
85+
7586 _busy = true ;
7687
7788 try
You can’t perform that action at this time.
0 commit comments