mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-11 11:16:58 +08:00
尝试一下保留完整信息到lastdir.txt
This commit is contained in:
parent
9fbe09b4ac
commit
0163c1291a
@ -813,7 +813,7 @@ static Result showFileBrowser(char romAndSavePath[512])
|
|||||||
if(cmpLen < strlen(lastDir) || strncmp(lastDir, romAndSavePath, cmpLen) != 0)
|
if(cmpLen < strlen(lastDir) || strncmp(lastDir, romAndSavePath, cmpLen) != 0)
|
||||||
{
|
{
|
||||||
strncpy(lastDir, romAndSavePath, cmpLen);
|
strncpy(lastDir, romAndSavePath, cmpLen);
|
||||||
lastDir[cmpLen] = '\0';
|
lastDir[cmpLen] = '\n';
|
||||||
res = fsQuickWrite("lastdir.txt", lastDir, cmpLen + 1);
|
res = fsQuickWrite("lastdir.txt", lastDir, cmpLen + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user