Skip to content

Commit a2883e1

Browse files
authored
Code cleanup
1 parent 396b0c0 commit a2883e1

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ int main(int argc, char *argv[])
1515
if (!QFile("config.ini").exists()) {
1616
QSettings settings("config.ini", QSettings::IniFormat);
1717
settings.setValue("multipleWindows", 0);
18-
settings.setValue("fontColor", "red");
18+
settings.setValue("fontColor", "white");
1919
settings.setValue("fontSize", 20);
2020
settings.setValue("flyMode", 0);
2121
}

workers.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ void Workers::get_hp()
6262
{
6363
HANDLE hProcess = find_window();
6464

65-
//ui->main_label->setText("Listo");
6665
QString style = "background-color: rgba(140, 140, 140, 0.6);";
6766
emit uiSignal("Listo", style);
6867

@@ -80,8 +79,6 @@ void Workers::get_hp()
8079
memcpy(&monsterHPval, &buffer, 4);
8180
memcpy(&maxHP, &buffer[4], 4);
8281

83-
//qDebug() << monsterHPval << " - " << maxHP;
84-
8582
QString text = QString("%1 / %2").arg(int(monsterHPval + 0.5)).arg(int(maxHP + 0.5));
8683

8784
float percent = monsterHPval / maxHP;
@@ -107,10 +104,6 @@ void fly_mode()
107104
float val = 0;
108105
while (true)
109106
{
110-
//Read monster HP at start to block execution if not in a hunt, because otherwise this function can read a pointer mid change in the menu and softlock itself, heh.
111-
//Not really needed if using the non safe version.
112-
//ReadMultiLevelPointerSafe<float>(hProcess, (void*)0x14BEF7738, { 0x80, 0x40, 0x290, 0x48, 0x40, 0x40, 0x10 });
113-
114107
float* wirebug = ReadMultiLevelPointer<float>(hProcess, (void*)0x14BEF63E8, { 0x60, 0x20, 0x3B0, 0x28, 0x10 });
115108
ReadProcessMemory(hProcess, (void*)wirebug, &val, sizeof(val), 0);
116109

0 commit comments

Comments
 (0)