diff options
| author | Tilka <tilkax@gmail.com> | 2026-06-13 19:01:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-13 19:01:57 +0100 |
| commit | f96a7682d45d1815cf419ed7461faace998389d1 (patch) | |
| tree | b1a3aaa2113d4b5abbe1dce820f546f326f52eb4 | |
| parent | 1bc93fd16d5a452bedcc5437923abd0d9fcb8c52 (diff) | |
| parent | 37a3b0fe6a48d74cf24f8234c84b613120348504 (diff) | |
Merge pull request #14680 from Tilka/fs_null_fix
DolphinTool: fix crash when listing partition without filesystem
| -rw-r--r-- | Source/Core/DolphinTool/ExtractCommand.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/DolphinTool/ExtractCommand.cpp b/Source/Core/DolphinTool/ExtractCommand.cpp index e1803a7242..57106d6406 100644 --- a/Source/Core/DolphinTool/ExtractCommand.cpp +++ b/Source/Core/DolphinTool/ExtractCommand.cpp @@ -119,6 +119,11 @@ static bool ListPartition(const DiscIO::Volume& disc_volume, const DiscIO::Parti std::string* result_text) { const DiscIO::FileSystem* filesystem = disc_volume.GetFileSystem(partition); + if (!filesystem) + { + fmt::println(std::cerr, "Warning: partition {} has no filesystem.", partition_name); + return false; + } const std::unique_ptr<DiscIO::FileInfo> info = filesystem->FindFileInfo(path); if (!info) @@ -167,7 +172,7 @@ static bool ListVolume(const DiscIO::Volume& disc_volume, const std::string& pat fmt::print(std::cout, "{}", partition_start); result_text->append(partition_start); - success |= ListPartition(disc_volume, p, specific_partition_name, path, result_text); + success |= ListPartition(disc_volume, p, partition_name, path, result_text); } return success; |
