Precompose characters for game scanner also

This commit is contained in:
Edward Li 2021-02-01 20:01:56 +08:00
parent eda6603808
commit 4bbf4e3b65
1 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,10 @@ class GameScanner
{
std::string name(item.name);
std::string child_path = item.parentPath + "/" + name;
#ifdef __APPLE__
extern std::string os_PrecomposedString(std::string string);
name = os_PrecomposedString(name);
#endif
std::string extension = get_file_extension(name);
if (extension == "zip" || extension == "7z")