Skip to content
Permalink
Browse files
Merge pull request #6179 from JosJuice/extract-forbidden-characters
Avoid forbidden characters when extracting disc partitions
  • Loading branch information
Helios747 committed Nov 8, 2017
2 parents 965b5b6 + b28e5fa commit 356896d
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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;
}

0 comments on commit 356896d

Please sign in to comment.