romfs_factory: Extract packed update setter to new function

This commit is contained in:
Zach Hilman
2018-10-05 08:53:45 -04:00
parent 5acaeb04c4
commit 38c2ac95af
10 changed files with 38 additions and 9 deletions

View File

@ -72,11 +72,10 @@ QString FormatPatchNameVersions(const FileSys::PatchManager& patch_manager,
auto ver = kv.second;
// Display container name for packed updates
if (ver == "PACKED" && kv.first == FileSys::PatchType::Update)
if (ver == "PACKED" && kv.first == "Update")
ver = Loader::GetFileTypeString(loader.GetFileType());
out.append(
fmt::format("{} ({})\n", FileSys::FormatPatchTypeName(kv.first), ver).c_str());
out.append(fmt::format("{} ({})\n", kv.first, ver).c_str());
}
}