mirror of
https://github.com/jakcron/nstool
synced 2024-12-25 14:11:14 +00:00
Remove PathUtil from AssetProcess.cpp
This commit is contained in:
parent
f0329f5da1
commit
30f95252af
1 changed files with 2 additions and 4 deletions
|
@ -90,10 +90,7 @@ void nstool::AssetProcess::processSections()
|
|||
if ((mHdr.getIconInfo().size + mHdr.getIconInfo().offset) > file_size)
|
||||
throw tc::Exception(mModuleName, "ASET geometry for icon beyond file size");
|
||||
|
||||
std::string icon_extract_path_str;
|
||||
tc::io::PathUtil::pathToUnixUTF8(mIconExtractPath.get(), icon_extract_path_str);
|
||||
|
||||
fmt::print("Saving {:s}...", icon_extract_path_str);
|
||||
fmt::print("Saving {:s}...", mIconExtractPath.get().to_string());
|
||||
writeSubStreamToFile(mFile, mHdr.getIconInfo().offset, mHdr.getIconInfo().size, mIconExtractPath.get());
|
||||
}
|
||||
|
||||
|
@ -104,6 +101,7 @@ void nstool::AssetProcess::processSections()
|
|||
|
||||
if (mNacpExtractPath.isSet())
|
||||
{
|
||||
fmt::print("Saving {:s}...", mNacpExtractPath.get().to_string());
|
||||
writeSubStreamToFile(mFile, mHdr.getNacpInfo().offset, mHdr.getNacpInfo().size, mNacpExtractPath.get());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue