TWLユーザ領域を初期化するように

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@340 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
N2614 2011-06-20 05:03:05 +00:00
parent c5d2ba4169
commit 0a3ec6a87e
2 changed files with 6 additions and 4 deletions

View File

@ -616,6 +616,8 @@ void InitializeFileSystem()
nn::fs::Unmount(common::TWL_ARCHIVE_NAME_TABLE[i]);
}
result = nn::am::DeleteAllTwlUserPrograms();
COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(result);
nn::fs::InitializeCtrFileSystem();
}

View File

@ -380,10 +380,10 @@ void ShopOperationUnregisterCore(bool force)
ECAccountInfo* pAccountInfo;
result = ShopOperationConnect(&pAccountInfo);
NIM_SHOP_RESULT_CHECK(result);
if(force)
if (force)
{
if (pAccountInfo->accountStatus && (pAccountInfo->accountStatus[0] == 'R' ||
pAccountInfo->accountStatus[0] == 'T'))
if (pAccountInfo->accountStatus && (pAccountInfo->accountStatus[0] == 'R' || pAccountInfo->accountStatus[0]
== 'T'))
{
COMMON_LOGGER_DETAIL("nim::Shop::Unregister\n");
result = nn::nim::Shop::Unregister();
@ -392,7 +392,7 @@ void ShopOperationUnregisterCore(bool force)
}
else
{
if (pAccountInfo->accountStatus && (pAccountInfo->accountStatus[0] == 'R'))
if (pAccountInfo->accountStatus && (pAccountInfo->accountStatus[0] == 'R'))
{
COMMON_LOGGER_DETAIL("nim::Shop::Unregister\n");
result = nn::nim::Shop::Unregister();