尝试一下保留完整信息到lastdir.txt

This commit is contained in:
anod 2023-05-09 17:06:06 +08:00
parent 9fbe09b4ac
commit 0163c1291a

View File

@ -813,7 +813,7 @@ static Result showFileBrowser(char romAndSavePath[512])
if(cmpLen < strlen(lastDir) || strncmp(lastDir, romAndSavePath, cmpLen) != 0)
{
strncpy(lastDir, romAndSavePath, cmpLen);
lastDir[cmpLen] = '\0';
lastDir[cmpLen] = '\n';
res = fsQuickWrite("lastdir.txt", lastDir, cmpLen + 1);
}
}