Skip to content

Commit

Permalink
Show console serialId in TitleTask menu
Browse files Browse the repository at this point in the history
  • Loading branch information
w3irDv committed Aug 24, 2024
1 parent e6b7f68 commit 8f14332
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/metadata.cpp → src/Metadata.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <metadata.h>
#include <Metadata.h>
#include <utils/LanguageUtils.h>

#define FS_ALIGN(x) ((x + 0x3F) & ~(0x3F))
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <menu/MainMenuState.h>
#include <padscore/kpad.h>
#include <savemng.h>
#include <metadata.h>
#include <Metadata.h>
#include <sndcore2/core.h>
#include <BackupSetList.h>
#include <utils/DrawUtils.h>
Expand Down
2 changes: 1 addition & 1 deletion src/menu/TitleOptionsState.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <coreinit/debug.h>
#include <metadata.h>
#include <Metadata.h>
#include <menu/TitleOptionsState.h>
#include <menu/BackupSetListState.h>
#include <BackupSetList.h>
Expand Down
5 changes: 5 additions & 0 deletions src/menu/TitleTaskState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
#include <menu/TitleOptionsState.h>
#include <menu/TitleTaskState.h>
#include <BackupSetList.h>
#include <Metadata.h>
#include <savemng.h>
#include <utils/InputUtils.h>
#include <utils/LanguageUtils.h>
#include <utils/Colors.h>

static int cursorPos = 0;
static int entrycount;
Expand All @@ -22,6 +24,9 @@ void TitleTaskState::render() {
return;
}
if (this->state == STATE_TITLE_TASKS) {
DrawUtils::setFontColor(COLOR_INFO);
consolePrintPosAligned(0, 4, 2,LanguageUtils::gettext("WiiU Serial Id: %s"),Metadata::serialId.c_str());
DrawUtils::setFontColor(COLOR_TEXT);
this->isWiiUTitle = (this->title.highID == 0x00050000) || (this->title.highID == 0x00050002);
entrycount = 3 + 2 * static_cast<int>(this->isWiiUTitle) + 1 * static_cast<int>(this->isWiiUTitle && (this->title.isTitleDupe));
consolePrintPos(M_OFF, 2, " [%08X-%08X] [%s]", this->title.highID, this->title.lowID,
Expand Down
2 changes: 1 addition & 1 deletion src/savemng.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <savemng.h>
#include <metadata.h>
#include <Metadata.h>
#include <LockingQueue.h>
#include <utils/LanguageUtils.h>
#include <utils/StringUtils.h>
Expand Down

0 comments on commit 8f14332

Please sign in to comment.