fix native dump, fix xci dumps going to nsp folder.

native dump broke with prev commit due to not using the sd card, instead using an empty fs.
This commit is contained in:
ITotalJustice
2025-05-23 13:07:00 +01:00
parent 6475f4316a
commit d8b2896bed
3 changed files with 14 additions and 11 deletions

View File

@@ -130,15 +130,19 @@ auto BuildFilePath(DumpFileType type, std::span<const ApplicationEntry> entries)
// builds path suiteable for file dumps.
auto BuildFullDumpPath(DumpFileType type, std::span<const ApplicationEntry> entries) -> fs::FsPath {
const auto base_path = BuildXciBasePath(entries);
fs::FsPath out;
if (App::GetApp()->m_dump_app_folder.Get()) {
if (App::GetApp()->m_dump_append_folder_with_xci.Get()) {
return base_path + ".xci/" + base_path + GetDumpTypeStr(type);
out = base_path + ".xci/" + base_path + GetDumpTypeStr(type);
} else {
return base_path + "/" + base_path + GetDumpTypeStr(type);
out = base_path + "/" + base_path + GetDumpTypeStr(type);
}
} else {
return base_path + GetDumpTypeStr(type);
out = base_path + GetDumpTypeStr(type);
}
return fs::AppendPath("/dumps/XCI", out);
}
// @Gc is the mount point, S is for secure partion, the remaining is the