Minor improvements and cleanups

This commit is contained in:
Maschell 2020-12-04 10:39:36 +01:00
parent cc2d20533f
commit 163135dd21
4 changed files with 4 additions and 13 deletions

View File

@ -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);

View File

@ -1,5 +0,0 @@
//
// Created by Maschell on 15.10.2020.
//
#include "Input.h"

View File

@ -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
) {

View File

@ -7,12 +7,10 @@
#include <iosuhax.h>
#include <iosuhax_devoptab.h>
#include <string_view>
#include <vector>
#include "WiiUScreen.h"
#include "InstallerService.h"
#include "ApplicationState.h"
#include "VPADInput.h"
#include "WPADInput.h"
#include "../build/safe_payload.h"