mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
Replace transform with basic for loop.
This commit is contained in:
parent
9bc33de652
commit
74c02d273f
@ -235,12 +235,10 @@ class fscDeviceHostFSC : public fscDeviceC {
|
||||
auto static lowercase_path = [](std::filesystem::path const & path)
|
||||
{
|
||||
std::wstring string = path.wstring();
|
||||
std::transform(string.begin(), string.end(), string.begin(), [](const auto& item)
|
||||
for (auto& i : string)
|
||||
{
|
||||
if (std::isalpha(item))
|
||||
return static_cast<wchar_t>(std::tolower(item));
|
||||
return item;
|
||||
});
|
||||
i = std::isalpha(i) ? std::tolower(i) : i;
|
||||
}
|
||||
return string;
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user