mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-22 10:45:28 +00:00
Remove PathUtil from AssetProcess.cpp
This commit is contained in:
parent
f0329f5da1
commit
30f95252af
|
@ -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