Remove usage of PathUtil from IniProcess.cpp

This commit is contained in:
jakcron 2022-03-26 18:19:34 +08:00
parent aea73605d4
commit f0329f5da1

View file

@ -126,18 +126,14 @@ void nstool::IniProcess::extractKipList()
// out path for extracted KIP
tc::io::Path out_path;
std::string out_path_str;
// extract KIPs
for (auto itr = mKipList.begin(); itr != mKipList.end(); itr++)
{
out_path = mKipExtractPath.get();
out_path += fmt::format("{:s}.kip", itr->hdr.getName());
tc::io::PathUtil::pathToUnixUTF8(out_path, out_path_str);
if (mCliOutputMode.show_basic_info)
fmt::print("Saving {:s}...\n", out_path_str);
fmt::print("Saving {:s}...\n", out_path.to_string());
writeStreamToFile(itr->stream, out_path, cache);
}