diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2017-11-08 15:32:35 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-08 15:32:35 -0800 |
| commit | 356896d8bc2d250821bb758449d233197f16d2c5 (patch) | |
| tree | b77323ddabc878c268b0436717bb7983386ce953 /Source/Core/DiscIO/DiscExtractor.cpp | |
| parent | 965b5b6b0a74f6d2f0db4fdf258881f5acfc00e3 (diff) | |
| parent | b28e5fa34797986547c6d89d78f8d28dc9d77ee1 (diff) | |
Merge pull request #6179 from JosJuice/extract-forbidden-characters
Avoid forbidden characters when extracting disc partitions
Diffstat (limited to 'Source/Core/DiscIO/DiscExtractor.cpp')
| -rw-r--r-- | Source/Core/DiscIO/DiscExtractor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/DiscExtractor.cpp b/Source/Core/DiscIO/DiscExtractor.cpp index e4f52713a5..f254be68ca 100644 --- a/Source/Core/DiscIO/DiscExtractor.cpp +++ b/Source/Core/DiscIO/DiscExtractor.cpp @@ -33,7 +33,7 @@ std::string DirectoryNameForPartitionType(u32 partition_type) static_cast<char>((partition_type >> 8) & 0xFF), static_cast<char>(partition_type & 0xFF)}; if (std::all_of(type_as_game_id.cbegin(), type_as_game_id.cend(), - [](char c) { return std::isprint(c, std::locale::classic()); })) + [](char c) { return std::isalnum(c, std::locale::classic()); })) { return "P-" + type_as_game_id; } |
