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:
N2614 2011-06-01 05:00:06 +00:00
parent 31b0d90fdc
commit 0b608d15d3

View File

@ -186,10 +186,8 @@ void WaitShopOperationAndFinalize()
void TitleDownloader::Start()
{
nn::Result result;
result = ListUp();
if(result.IsFailure())
m_Result = ListUp();
if(m_Result.IsFailure())
{
return;
}
@ -201,9 +199,9 @@ void TitleDownloader::Start()
WaitShopOperationAndFinalize();
nn::nim::TitleConfig config;
result = GetTitleConfig(m_ProgramIdList[i], &config);
COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(result);
if (result.IsSuccess())
m_Result = GetTitleConfig(m_ProgramIdList[i], &config);
COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(m_Result);
if (m_Result.IsSuccess())
{
StartShopOperationSingle(SHOP_OPERATION_DOWNLOAD_TITLE, config);
WaitShopOperationAndFinalize();