From 163135dd21e5360749c6b5ce00010f7b46d3abc3 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 4 Dec 2020 10:39:36 +0100 Subject: [PATCH] Minor improvements and cleanups --- source/ApplicationState.cpp | 8 +++----- source/Input.cpp | 5 ----- source/InstallerService.h | 2 +- source/main.cpp | 2 -- 4 files changed, 4 insertions(+), 13 deletions(-) delete mode 100644 source/Input.cpp diff --git a/source/ApplicationState.cpp b/source/ApplicationState.cpp index 10ea816..a2a8717 100644 --- a/source/ApplicationState.cpp +++ b/source/ApplicationState.cpp @@ -41,11 +41,11 @@ void ApplicationState::changeState(eGameState newState) { menu.addText("Additional informations:"); auto showCheckResult = [&] (const std::string &name, bool canPatch, bool patched) { if (patched) { - menu.addText("[ X ] " + name + "is already patched!"); + menu.addText("[ X ] " + name + " is already patched!"); } else if (canPatch) { - menu.addText("[ X ] " + name + "can be patched!"); + menu.addText("[ X ] " + name + " can be patched!"); } else { - menu.addText("[ ] " + name + "can NOT be patched!"); + menu.addText("[ ] " + name + " can NOT be patched!"); } }; if (this->tmdValid) { @@ -268,8 +268,6 @@ ApplicationState::ApplicationState() { void ApplicationState::checkPatchPossible() { DEBUG_FUNCTION_LINE("Check patch possible"); - DEBUG_FUNCTION_LINE("CHECK FST"); - InstallerService::eResults result; this->fstAlreadyPatched = ((result = InstallerService::checkFSTAlreadyValid(this->appInfo->path, this->appInfo->fstHash)) == InstallerService::SUCCESS); diff --git a/source/Input.cpp b/source/Input.cpp deleted file mode 100644 index e0b715d..0000000 --- a/source/Input.cpp +++ /dev/null @@ -1,5 +0,0 @@ -// -// Created by Maschell on 15.10.2020. -// - -#include "Input.h" diff --git a/source/InstallerService.h b/source/InstallerService.h index 68a9f4c..612c572 100644 --- a/source/InstallerService.h +++ b/source/InstallerService.h @@ -33,7 +33,7 @@ public: if (OSIsAddressValid(0x00FFFFF8)) { uint64_t bootedFrom = *((uint64_t *) 0x00FFFFF8); if ( - bootedFrom == 0x000500101004E000L || // H&S JAP + bootedFrom == 0x000500101004E000L || // H&S JPN bootedFrom == 0x000500101004E100L || // H&S USA bootedFrom == 0x000500101004E200L // H&S EUR ) { diff --git a/source/main.cpp b/source/main.cpp index 4bf055e..fe7b3e7 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -7,12 +7,10 @@ #include #include #include -#include #include "WiiUScreen.h" #include "InstallerService.h" #include "ApplicationState.h" -#include "VPADInput.h" #include "WPADInput.h" #include "../build/safe_payload.h"