From f1caea90e69409c20fcb2101a67c42cfe653739a Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@b08762b0-b915-fc4b-9d8c-17b2551a87ff> Date: Fri, 22 Aug 2008 07:15:00 +0000 Subject: [PATCH] =?UTF-8?q?(=E4=BD=90=E3=80=85=E6=9C=A8@PSEG1)=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E3=81=AB=E5=89=8A=E9=99=A4=E3=81=8C=E5=83=8D=E3=81=8B?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=83=90=E3=82=B0=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2236 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- .../MakerTitle/TitleList/src/appmain.c | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/build/debugsoft/MakerTitle/TitleList/src/appmain.c b/build/debugsoft/MakerTitle/TitleList/src/appmain.c index ab626ba4..85bf2d27 100644 --- a/build/debugsoft/MakerTitle/TitleList/src/appmain.c +++ b/build/debugsoft/MakerTitle/TitleList/src/appmain.c @@ -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 } } }