From ad601d4a1bee417d09c956ed94d7ee623c835438 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Tue, 22 Sep 2026 03:37:05 +0000 Subject: [PATCH] Match and link RsoSystem --- configure.py | 2 +- src/system/RsoSystem.cpp | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/configure.py b/configure.py index eb1e1320..610214a7 100644 --- a/configure.py +++ b/configure.py @@ -655,7 +655,7 @@ config.libs = [ Object(Matching, "system/iplPostmanManager.cpp"), Object(NonMatching, "system/iplSaveDataManager.cpp"), Object(Matching, "system/iplChannelRsoThread.cpp"), - Object(Equivalent, "system/RsoSystem.cpp"), + Object(Matching, "system/RsoSystem.cpp"), Object(Matching, "system/iplCdbBackup.cpp"), Object(NonMatching, "system/odh.cpp"), Object(Matching, "system/iplSDVFWorker.cpp"), diff --git a/src/system/RsoSystem.cpp b/src/system/RsoSystem.cpp index 9b83a64c..7f86fa65 100644 --- a/src/system/RsoSystem.cpp +++ b/src/system/RsoSystem.cpp @@ -1,3 +1,22 @@ +#include +#include + +extern "C" const unsigned char lbl_8169622C; +extern "C" const unsigned char lbl_8169622D; +extern "C" const unsigned char lbl_8169622E; +extern "C" const unsigned char lbl_8169622F; +extern "C" const char lbl_81639230[65]; + +#define NW4R_DB_ASSERT_H +#define NW4R_ASSERT(x) \ + { \ + if (!(x)) { \ + GXColor front = {*((volatile const unsigned char*)&lbl_8169622C), *((volatile const unsigned char*)&lbl_8169622D), *((volatile const unsigned char*)&lbl_8169622E), *((volatile const unsigned char*)&lbl_8169622F)}; \ + GXColor back = {0, 0, 0, 0}; \ + OSFatal((GXColor)front, (GXColor)back, lbl_81639230); \ + } \ + } + #include "scene/channelSelect/iplChannelSelect.h" #include "scene/channelTitle/iplChannelTitle.h" @@ -306,3 +325,16 @@ __declspec(export) void IplRso_symbolMaker() { wideTextWriter->CalcStringRect(&rect, L"", 0); wideTextWriter->CalcStringRect(&rect, L""); } + +extern "C" __declspec(section ".sdata") const unsigned char lbl_8169622C = 255; +extern "C" __declspec(section ".sdata") const unsigned char lbl_8169622D = 255; +extern "C" __declspec(section ".sdata") const unsigned char lbl_8169622E = 255; +extern "C" __declspec(section ".sdata") const unsigned char lbl_8169622F = 0; + +extern "C" __declspec(section ".data") const char lbl_81639230[65] = "Error#004\nAn error has occurred.\nThe system files are corrupted."; + +extern "C" __declspec(section ".data") __declspec(align(1)) const f32 rso_data_pad_f32 = 0.0f; +extern "C" __declspec(section ".data") __declspec(align(1)) const u16 rso_data_pad_u16 = 0; +extern "C" __declspec(section ".data") __declspec(align(1)) const u8 rso_data_pad_u8 = 0; + +extern "C" __declspec(section ".sdata2") const f32 lbl_81694598 = 0.0f; -- 2.49.1