mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-06 22:04:10 +08:00
修正切换文件夹还显示原来的文件夹名字的bug
This commit is contained in:
parent
aec759cd01
commit
f108c9ef06
@ -156,7 +156,7 @@ Result browseFiles(const char *const basePath, char selected[512])
|
||||
s32 oldCursorPos = 0;
|
||||
while(1)
|
||||
{
|
||||
ee_printf(*dList->ptrs[cursorPos] == ENT_TYPE_FILE ? "\x1b[%lu;H\x1b[37m %.51s" : "\x1b[%lu;H\x1b[36m %.51s", oldCursorPos - windowPos, &dList->ptrs[oldCursorPos][1]); // Clear old cursor.
|
||||
ee_printf(*dList->ptrs[oldCursorPos] == ENT_TYPE_FILE ? "\x1b[%lu;H\x1b[37m %.51s" : "\x1b[%lu;H\x1b[36m %.51s", oldCursorPos - windowPos, &dList->ptrs[oldCursorPos][1]); // Clear old cursor.
|
||||
ee_printf("\x1b[%lu;H\x1b[33m>%.51s", cursorPos - windowPos, &dList->ptrs[cursorPos][1]); // Draw cursor.
|
||||
|
||||
u32 kDown;
|
||||
@ -226,8 +226,7 @@ Result browseFiles(const char *const basePath, char selected[512])
|
||||
}
|
||||
|
||||
if((res = scanDir(curDir, dList, ".gba")) != RES_OK) break;
|
||||
cursorPos = 0;
|
||||
windowPos = 0;
|
||||
cursorPos = oldCursorPos = windowPos = 0;
|
||||
showDirList(dList, 0);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user