Skip to content

Commit

Permalink
Bugfix for Cheats
Browse files Browse the repository at this point in the history
Fixed root level cheats not loading in menu if not under submenu.
  • Loading branch information
proferabg committed Nov 29, 2021
1 parent 692be0d commit 7b8d70f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ endif

APP_TITLE := EdiZon
APP_AUTHOR := WerWolv & proferabg
APP_VERSION := v1.0.2
APP_VERSION := v1.0.2b

TARGET := EdiZon
OUTDIR := out
Expand Down
4 changes: 2 additions & 2 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class GuiCheats : public tsl::Gui {
skipUntil = "";
}
// items to add to section
else if(!skip && inSection) {
else if(!skip && (inSection || this->m_section.length() < 1)) {
auto cheatToggleItem = new tsl::elm::ToggleListItem(cheat->getName(), cheat->isEnabled());
cheatToggleItem->setStateChangedListener([&cheat](bool state) { cheat->setState(state); });

Expand Down Expand Up @@ -258,7 +258,7 @@ class GuiMain : public tsl::Gui {
auto *rootFrame = new tsl::elm::HeaderOverlayFrame();
rootFrame->setHeader(new tsl::elm::CustomDrawer([this](tsl::gfx::Renderer *renderer, s32 x, s32 y, s32 w, s32 h) {
renderer->drawString("EdiZon", false, 20, 50, 30, renderer->a(tsl::style::color::ColorText));
renderer->drawString("v1.0.2", false, 20, 70, 15, renderer->a(tsl::style::color::ColorDescription));
renderer->drawString("v1.0.2b", false, 20, 70, 15, renderer->a(tsl::style::color::ColorDescription));

if (edz::cheat::CheatManager::getProcessID() != 0) {
renderer->drawString("Program ID:", false, 150, 40, 15, renderer->a(tsl::style::color::ColorText));
Expand Down

0 comments on commit 7b8d70f

Please sign in to comment.