mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
GetProgressのResultをチェックするように
変数名変更 git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@314 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
2e62667703
commit
ccc676edae
@ -484,13 +484,9 @@ void ShopOperationSingleThreadFunc(ShopThreadParam param)
|
||||
while (true)
|
||||
{
|
||||
result = nn::nim::Shop::GetProgress(&latest);
|
||||
// 既にインポート済み
|
||||
if (result == nn::am::ResultAlreadyExists())
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
NIM_SHOP_RESULT_CHECK(result);
|
||||
NIM_SHOP_RESULT_CHECK(latest.lastResult);
|
||||
|
||||
// Print progress
|
||||
if (latest != before)
|
||||
|
||||
@ -52,7 +52,7 @@ void CommonLogger::Finalize()
|
||||
|
||||
void CommonLogger::Print(const char* fmt, ...)
|
||||
{
|
||||
nn::os::CriticalSection::ScopedLock lock(m_CriticalSection);
|
||||
nn::os::CriticalSection::ScopedLock sdLock(m_CriticalSection);
|
||||
va_list vlist;
|
||||
|
||||
va_start(vlist, fmt);
|
||||
@ -66,7 +66,7 @@ void CommonLogger::Print(const char* fmt, ...)
|
||||
|
||||
void CommonLogger::PrintResultSdLog(const char* fmt, ...)
|
||||
{
|
||||
nn::os::CriticalSection::ScopedLock lock(m_CriticalSection);
|
||||
nn::os::CriticalSection::ScopedLock sdLock(m_CriticalSection);
|
||||
va_list vlist;
|
||||
|
||||
va_start(vlist, fmt);
|
||||
@ -78,7 +78,7 @@ void CommonLogger::PrintResultSdLog(const char* fmt, ...)
|
||||
|
||||
void CommonLogger::ClearSdLog()
|
||||
{
|
||||
nn::os::CriticalSection::ScopedLock lock(m_CriticalSection);
|
||||
nn::os::CriticalSection::ScopedLock sdLock(m_CriticalSection);
|
||||
GetSdInstance()->Clear();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user