From 5adf8515ac1de78f09f60ae44cb06c62c0383e08 Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Mon, 14 Oct 2024 10:08:30 -0700 Subject: [PATCH] mainwnd: remove broken custom dirShowName for the file system This is a pain to support due to multiple types of mount points. The current mount points (`sd` and `fat`) are just fine and understandable. --- arm9/source/mainwnd.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arm9/source/mainwnd.cpp b/arm9/source/mainwnd.cpp index a44c293..642d5f7 100644 --- a/arm9/source/mainwnd.cpp +++ b/arm9/source/mainwnd.cpp @@ -642,9 +642,7 @@ void cMainWnd::showFileInfo() { void cMainWnd::onFolderChanged() { resetInputIdle(); std::string dirShowName = _mainList->getCurrentDir(); - if (dirShowName.substr(0, 5) == SD_ROOT_0) - dirShowName.replace(0, 4, "SD"); - else if ("favorites:/" != dirShowName && "slot2:/" == _mainList->getSelectedFullPath()) { + if ("favorites:/" != dirShowName && "slot2:/" == _mainList->getSelectedFullPath()) { u8 chk = 0; for (u32 i = 0xA0; i < 0xBD; ++i) { chk = chk - *(u8*)(0x8000000 + i);