mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-31 04:25:40 +00:00
Clarified the custom event script sorting in a code comment
This commit is contained in:
parent
7e4a88a144
commit
192035e16a
|
@ -46,8 +46,8 @@ namespace Scripting
|
|||
|
||||
for (auto dirIt = scriptDirList.cbegin(); dirIt != scriptDirList.cend(); ++dirIt) {
|
||||
std::list<std::string> scripts {Utils::FileSystem::getDirContent(*dirIt)};
|
||||
// Sort the scripts in case-sensitive order on Unix/Linux and in case-insensitive order
|
||||
// on macOS and Windows.
|
||||
// Sort the scripts in case-sensitive order on Linux, Unix and Android and in
|
||||
// case-insensitive order on macOS and Windows.
|
||||
#if defined(__unix__)
|
||||
scripts.sort([](std::string a, std::string b) { return a.compare(b) < 0; });
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue