Skip to content

Commit 9249c49

Browse files
committed
- Add CleanCheat::RegisterRunners
1 parent f330e78 commit 9249c49

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

src/CleanCheat/CleanCheatManager.h

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)