From 657911d5a9cf64da58d18a2a9439c93bf33b0d7a Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:45:48 -0500 Subject: [PATCH] cleanup(iplCSSavedata): rename sMountPath MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit unk_0x00 → sMountPath: optional NAND archive path used to VF-mount @CS. Empty → load from NAND via sPath; set (two-arg ctor) → load_vf_ mounts that path and opens sPath inside the volume. --- src/channelScript/systemmenu/iplCSSavedata.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/channelScript/systemmenu/iplCSSavedata.cpp b/src/channelScript/systemmenu/iplCSSavedata.cpp index b52f2266..30220561 100644 --- a/src/channelScript/systemmenu/iplCSSavedata.cpp +++ b/src/channelScript/systemmenu/iplCSSavedata.cpp @@ -16,7 +16,7 @@ namespace ipl { namespace cs { namespace savedata { struct data { - char unk_0x00[MAX_PATH_LENGTH + sizeof(wchar_t)]; // 0x00 + char sMountPath[MAX_PATH_LENGTH + sizeof(wchar_t)]; // 0x00 char sPath[MAX_PATH_LENGTH + sizeof(wchar_t)]; // 0x42 u8 flag; // 0x84 u8* pData; // 0x88 @@ -67,7 +67,7 @@ namespace ipl { data* data = static_cast(*hdr->value.ptr_v); if (data->pData == NULL && data->size == 0) { - if (data->unk_0x00[0] == 0) { + if (data->sMountPath[0] == 0) { error = load_nand_(vm, data, heap, offset, size, 0x20); } else { error = load_vf_(vm, data, heap, offset, size, 0x20); @@ -127,7 +127,7 @@ namespace ipl { } } - if (data->unk_0x00[0] == '\0') { + if (data->sMountPath[0] == '\0') { error = load_nand_(vm, data, csHeap, 0, size, -0x20); } else { error = load_vf_(vm, data, csHeap, 0, size, -0x20); @@ -591,7 +591,7 @@ namespace ipl { memset(data, 0, sizeof(savedata::data)); memset(temp, 0, sizeof(temp)); if (arg1 != NULL) { - util::utf16_to_ascii(data->unk_0x00, temp, MAX_PATH_LENGTH, arg0); + util::utf16_to_ascii(data->sMountPath, temp, MAX_PATH_LENGTH, arg0); memset(temp, 0, sizeof(temp)); util::utf16_to_ascii(data->sPath, temp, MAX_PATH_LENGTH, arg1); } else { -- 2.49.1