mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
COMMON: Decode filenames from Punycode upon returning
This commit is contained in:
parent
0b1c95aadf
commit
f3145d0fb6
@ -94,7 +94,8 @@ String FSNode::getDisplayName() const {
|
||||
|
||||
String FSNode::getName() const {
|
||||
assert(_realNode);
|
||||
return _realNode->getName();
|
||||
// We transparently decode any punycode-named files
|
||||
return punycode_decodefilename(_realNode->getName());
|
||||
}
|
||||
|
||||
FSNode FSNode::getParent() const {
|
||||
@ -291,9 +292,6 @@ void FSDirectory::cacheDirectoryRecursive(FSNode node, int depth, const String&
|
||||
String lowercaseName = name;
|
||||
lowercaseName.toLowercase();
|
||||
|
||||
// We transparently decode any punycode-named files
|
||||
lowercaseName = punycode_decodefilename(lowercaseName);
|
||||
|
||||
// since the hashmap is case insensitive, we need to check for clashes when caching
|
||||
if (it->isDirectory()) {
|
||||
if (!_flat && _subDirCache.contains(lowercaseName)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user