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.
This commit is contained in:
lifehackerhansol 2024-10-14 10:08:30 -07:00
parent 3c9b9088ef
commit 5adf8515ac
No known key found for this signature in database
GPG Key ID: 80FB184AFC0B3B0E

View File

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