DeleteTrashでログを削除しないように

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@37 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
N2614 2011-02-08 06:40:17 +00:00
parent 33e82b57b7
commit 0ccfc904fd
2 changed files with 4 additions and 3 deletions

View File

@ -30,7 +30,8 @@ const wchar_t* const LOG_ROOT_DIRECTORY_PATH = L"sdmc:/CTR_Console_Repair";
const wchar_t* const SD_SAVEDATA_ROOT_NAME = L"CTR_Console_Repair/CTRBackup/";
const wchar_t* const SD_SAVEDATA_TWL_PHOTO_ROOT_NAME = L"CTR_Console_Repair/TWLPhotoBackup/";
const wchar_t* const SD_SAVEDATA_TWL_SOUND_ROOT_NAME = L"CTR_Console_Repair/TWLSoundBackup/";
const wchar_t* const LOG_FILENAME = L"CTR_Console_Repair/Migration_Log.txt";
const wchar_t* const LOG_PATHNAME = L"CTR_Console_Repair/Migration_Log.txt";
const wchar_t* const LOG_FILENAME = L"Migration_Log.txt";
const wchar_t* const COUNTRY_SETTING_PATHNAME = L"sdmc:/CTR_Console_Repair/CountrySetting.bin";
const wchar_t* const AP_SETTING_FILENAME = L"CTR_Repair_Accsess_Point_Setting.txt";
const wchar_t* const AP_SETTING_PATHNAME = L"sdmc:/CTR_Repair_Accsess_Point_Setting.txt";

View File

@ -136,7 +136,7 @@ void SdLogger::Print(const char* fmt, ::std::va_list arg)
stringSize = nn::nstd::TVSNPrintf(str, sizeof(str), fmt, arg);
::std::wstring log(common::SDMC_ROOT_DIRECTORY_PATH);
log += common::LOG_FILENAME;
log += common::LOG_PATHNAME;
// ディレクトリが無ければ作る
nn::fs::Directory dir;
@ -205,7 +205,7 @@ void SdLogger::Clear()
SdMountManager::Mount();
::std::wstring log(common::SDMC_ROOT_DIRECTORY_PATH);
log += common::LOG_FILENAME;
log += common::LOG_PATHNAME;
result = nn::fs::TryDeleteFile(log.c_str());
if(result.IsFailure())