diff options
| author | JosJuice <josjuice@gmail.com> | 2017-11-08 11:27:05 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-11-08 12:04:59 +0100 |
| commit | b28e5fa34797986547c6d89d78f8d28dc9d77ee1 (patch) | |
| tree | f1ae7d5c66b18364cd5a1589b3802913c52c6d85 /Source/Core/DiscIO/DiscExtractor.cpp | |
| parent | 7e7b5af4c7ecbc5f28db1054c9be4cd54e679e62 (diff) | |
Avoid forbidden characters when extracting disc partitions
We shouldn't try to create folder names that contain characters
such as : or / since they are forbidden or have special meanings.
(No officially released disc uses such characters, though.)
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; } |
