mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
(佐々木@PSEG1)正常に削除が働かないバグを修正
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2236 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
40202b02e5
commit
f1caea90e6
@ -72,6 +72,8 @@ BOOL TestWriting(const char* code, BOOL out_results[2])
|
||||
FSResult res = NA_LoadOtherTitleArchive(code, arc[i]);
|
||||
#else
|
||||
FSResult res = FSi_MountSpecialArchive(TitleID, arc[i], &archiveWork);
|
||||
OS_TPrintf("%llu \n", TitleID);
|
||||
OS_TPrintf("%lu lu\n", TitleID >> 32, TitleID);
|
||||
#endif
|
||||
out_results[i] = (res != FS_RESULT_SUCCESS) ? FALSE : TRUE;
|
||||
if(res != FS_RESULT_SUCCESS)
|
||||
@ -251,18 +253,36 @@ void PrintResult(int x, int y, char* text)
|
||||
|
||||
void DeleteSaveDatas(void)
|
||||
{
|
||||
int i = 0, j = 0, k = 0;
|
||||
#ifndef USE_SPECIAL
|
||||
const NATitleArchive arc[2] = {
|
||||
NA_TITLE_ARCHIVE_DATAPUB,
|
||||
NA_TITLE_ARCHIVE_DATAPRV,
|
||||
};
|
||||
int i = 0, j = 0, k = 0;
|
||||
#else
|
||||
const char* arc[2] = {
|
||||
"otherPub",
|
||||
"otherPrv",
|
||||
};
|
||||
u32 lo = 0;
|
||||
OSTitleId TitleID;
|
||||
#endif
|
||||
|
||||
|
||||
ClearSubScreen();
|
||||
for(i = 0; i < TITLE_COUNT; ++i)
|
||||
{
|
||||
for(j = 0; j < 2; ++j)
|
||||
{
|
||||
char path[256];
|
||||
FSResult res = NA_LoadOtherTitleArchive(GAMECODE_LIST[i], arc[j]);
|
||||
FSResult res;
|
||||
#ifndef USE_SPECIAL
|
||||
res = NA_LoadOtherTitleArchive(GAMECODE_LIST[i], arc[j]);
|
||||
#else
|
||||
lo = MI_LoadBE32(GAMECODE_LIST[i]);
|
||||
TitleID = (TITLE_ID_HIGH[i] << 32) | lo;
|
||||
res = FSi_MountSpecialArchive(TitleID, arc[j], &archiveWork);
|
||||
#endif
|
||||
if(res != FS_RESULT_SUCCESS)
|
||||
{
|
||||
OS_TPrintf("Mount Failed:%s\n", GAMECODE_LIST[i]);
|
||||
@ -281,7 +301,12 @@ void DeleteSaveDatas(void)
|
||||
PrintString(0,(short) (24 + k++), 15, "Deleted:%s %s", GAMECODE_LIST[i], path);
|
||||
}
|
||||
FS_CreateFile(path, FS_PERMIT_W | FS_PERMIT_R);
|
||||
|
||||
#ifndef USE_SPECIAL
|
||||
NA_UnloadOtherTitleArchive();
|
||||
#else
|
||||
FSi_MountSpecialArchive(TitleID, NULL, &archiveWork);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user