mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
TWLタイトルダウンロード時のResultを正しく返すように
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@299 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
31b0d90fdc
commit
0b608d15d3
@ -186,10 +186,8 @@ void WaitShopOperationAndFinalize()
|
|||||||
|
|
||||||
void TitleDownloader::Start()
|
void TitleDownloader::Start()
|
||||||
{
|
{
|
||||||
nn::Result result;
|
m_Result = ListUp();
|
||||||
|
if(m_Result.IsFailure())
|
||||||
result = ListUp();
|
|
||||||
if(result.IsFailure())
|
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -201,9 +199,9 @@ void TitleDownloader::Start()
|
|||||||
WaitShopOperationAndFinalize();
|
WaitShopOperationAndFinalize();
|
||||||
|
|
||||||
nn::nim::TitleConfig config;
|
nn::nim::TitleConfig config;
|
||||||
result = GetTitleConfig(m_ProgramIdList[i], &config);
|
m_Result = GetTitleConfig(m_ProgramIdList[i], &config);
|
||||||
COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(result);
|
COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(m_Result);
|
||||||
if (result.IsSuccess())
|
if (m_Result.IsSuccess())
|
||||||
{
|
{
|
||||||
StartShopOperationSingle(SHOP_OPERATION_DOWNLOAD_TITLE, config);
|
StartShopOperationSingle(SHOP_OPERATION_DOWNLOAD_TITLE, config);
|
||||||
WaitShopOperationAndFinalize();
|
WaitShopOperationAndFinalize();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user