mirror of
https://github.com/jorio/Pomme.git
synced 2025-02-17 07:32:11 +00:00
Optional case-sensitive FSSpec
This commit is contained in:
parent
d9d1f906c5
commit
9af72c9717
@ -183,6 +183,18 @@ static bool CaseInsensitiveAppendToPath(fs::path& path, const u8string& element,
|
||||
return true;
|
||||
}
|
||||
|
||||
#if POMME_CASE_SENSITIVE_FSSPEC
|
||||
if (!skipFiles)
|
||||
{
|
||||
fs::path candidateResourcePath = naiveConcat;
|
||||
candidateResourcePath += ".rsrc";
|
||||
if (fs::is_regular_file(candidateResourcePath))
|
||||
{
|
||||
path = naiveConcat;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
#else
|
||||
// Convert path element to uppercase for case-insensitive comparisons
|
||||
const auto uppercaseElement = UppercaseCopy(element);
|
||||
|
||||
@ -210,6 +222,7 @@ static bool CaseInsensitiveAppendToPath(fs::path& path, const u8string& element,
|
||||
return true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
path = naiveConcat;
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user