mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
Sort files in logical rather than dictionary order (#9012)
This commit is contained in:
committed by
Aaron van Geffen
parent
1ff1f6d126
commit
dc90b2873a
@@ -121,6 +121,10 @@ The following people are not part of the development team, but have been contrib
|
||||
* Jason Myre (jmyre1999)
|
||||
* Nicole Wright (nicolewright)
|
||||
* Josh Tucker (joshtucker132)
|
||||
* Hussein Okasha (Hokasha2016)
|
||||
* Brandon Dupree (Bdupree5)
|
||||
* Zetao Ye (ZbrettonYe)
|
||||
* Jordan Arevalos (Jarevalos2017)
|
||||
|
||||
## Toolchain
|
||||
* (Balletie) - macOS
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
- Feature: [#8481] Multi-threaded rendering.
|
||||
- Feature: [#8919] Allow setting ride price from console.
|
||||
- Feature: [#8963] Add missing Czech letters to sprite font, use sprite font for Czech.
|
||||
- Change: [#7877] Files are now sorted in logical rather than dictionary order.
|
||||
- Change: [#8688] Move common actions from debug menu into cheats menu.
|
||||
- Fix: [#5579] Network desync immediately after connecting.
|
||||
- Fix: [#5905] Urban Park merry-go-round has entrance and exit swapped (original bug).
|
||||
|
||||
@@ -786,15 +786,15 @@ static bool list_item_sort(LoadSaveListItem& a, LoadSaveListItem& b)
|
||||
switch (gConfigGeneral.load_save_sort)
|
||||
{
|
||||
case SORT_NAME_ASCENDING:
|
||||
return strcicmp(a.name.c_str(), b.name.c_str()) < 0;
|
||||
return strlogicalcmp(a.name.c_str(), b.name.c_str()) < 0;
|
||||
case SORT_NAME_DESCENDING:
|
||||
return -strcicmp(a.name.c_str(), b.name.c_str()) < 0;
|
||||
return -strlogicalcmp(a.name.c_str(), b.name.c_str()) < 0;
|
||||
case SORT_DATE_DESCENDING:
|
||||
return -difftime(a.date_modified, b.date_modified) < 0;
|
||||
case SORT_DATE_ASCENDING:
|
||||
return difftime(a.date_modified, b.date_modified) < 0;
|
||||
default:
|
||||
return strcicmp(a.name.c_str(), b.name.c_str()) < 0;
|
||||
return strlogicalcmp(a.name.c_str(), b.name.c_str()) < 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user