all repos — mgba @ f155780eba1e4008f0b0548a92e67cfdf69df218

mGBA Game Boy Advance Emulator

GUI: Make sort case-insensitive
Jeffrey Pfau jeffrey@endrift.com
Mon, 07 Sep 2015 17:09:29 -0700
commit

f155780eba1e4008f0b0548a92e67cfdf69df218

parent

7f904876f57d862dfeea232c3591d27cb6f39c0c

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/util/gui/file-select.csrc/util/gui/file-select.c

@@ -46,7 +46,7 @@ // TODO: What if there was a trailing slash?

} static int _strpcmp(const void* a, const void* b) { - return strcmp(((const struct GUIMenuItem*) a)->title, ((const struct GUIMenuItem*) b)->title); + return strcasecmp(((const struct GUIMenuItem*) a)->title, ((const struct GUIMenuItem*) b)->title); } static bool _refreshDirectory(struct GUIParams* params, const char* currentPath, struct GUIMenuItemList* currentFiles, bool (*filter)(struct VFile*)) {