mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
成果物の出力先を変更
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@545 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
fb0a5fe00d
commit
3fabe54cd6
@ -98,6 +98,7 @@ bool AddCmac(const wchar_t * from_path, void* buf, const size_t bufSize)
|
||||
s32 numread = 0;
|
||||
std::wostringstream target_from;
|
||||
std::wostringstream target_to;
|
||||
std::wostringstream targetDirectory;
|
||||
bool ret_value = true;
|
||||
|
||||
nn::Result result = from_dir.TryInitialize(from_path);
|
||||
@ -108,6 +109,16 @@ bool AddCmac(const wchar_t * from_path, void* buf, const size_t bufSize)
|
||||
return false;
|
||||
}
|
||||
|
||||
// 出力先ディレクトリの作成
|
||||
const wchar_t* CMAC_DIR = L"CmacAdded/";
|
||||
targetDirectory << from_path << CMAC_DIR;
|
||||
result = nn::fs::TryCreateDirectory(targetDirectory.str().c_str());
|
||||
if (result.IsFailure())
|
||||
{
|
||||
COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(result);
|
||||
return false;
|
||||
}
|
||||
|
||||
while (1)
|
||||
{
|
||||
result = from_dir.TryRead(&numread, &entry, 1);
|
||||
@ -127,7 +138,7 @@ bool AddCmac(const wchar_t * from_path, void* buf, const size_t bufSize)
|
||||
|
||||
target_to.str(L"");
|
||||
target_to.clear(std::stringstream::goodbit);
|
||||
target_to << from_path << entry.entryName << L".cmac";
|
||||
target_to << from_path << CMAC_DIR << entry.entryName << L".cmac";
|
||||
|
||||
// ディレクトリの場合
|
||||
if (entry.attributes.isDirectory)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user