|
|
@ -128,15 +128,6 @@ VirtualDir PatchManager::PatchExeFS(VirtualDir exefs) const { |
|
|
if (exefs == nullptr) |
|
|
if (exefs == nullptr) |
|
|
return exefs; |
|
|
return exefs; |
|
|
|
|
|
|
|
|
if (Settings::values.dump_exefs) { |
|
|
|
|
|
LOG_INFO(Loader, "Dumping ExeFS for title_id={:016X}", title_id); |
|
|
|
|
|
const auto dump_dir = fs_controller.GetModificationDumpRoot(title_id); |
|
|
|
|
|
if (dump_dir != nullptr) { |
|
|
|
|
|
const auto exefs_dir = GetOrCreateDirectoryRelative(dump_dir, "/exefs"); |
|
|
|
|
|
VfsRawCopyD(exefs, exefs_dir); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const auto& disabled = Settings::values.disabled_addons[title_id]; |
|
|
const auto& disabled = Settings::values.disabled_addons[title_id]; |
|
|
const auto update_disabled = |
|
|
const auto update_disabled = |
|
|
std::find(disabled.cbegin(), disabled.cend(), "Update") != disabled.cend(); |
|
|
std::find(disabled.cbegin(), disabled.cend(), "Update") != disabled.cend(); |
|
|
@ -179,6 +170,15 @@ VirtualDir PatchManager::PatchExeFS(VirtualDir exefs) const { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (Settings::values.dump_exefs) { |
|
|
|
|
|
LOG_INFO(Loader, "Dumping ExeFS for title_id={:016X}", title_id); |
|
|
|
|
|
const auto dump_dir = fs_controller.GetModificationDumpRoot(title_id); |
|
|
|
|
|
if (dump_dir != nullptr) { |
|
|
|
|
|
const auto exefs_dir = GetOrCreateDirectoryRelative(dump_dir, "/exefs"); |
|
|
|
|
|
VfsRawCopyD(exefs, exefs_dir); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return exefs; |
|
|
return exefs; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|