From 8b072bd591da04c7e88750fac9fe2643babfe53c Mon Sep 17 00:00:00 2001 From: cy33hc Date: Thu, 1 Apr 2021 22:51:54 -0700 Subject: [PATCH] always save category order --- src/config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.cpp b/src/config.cpp index 1399819..893bf3f 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -378,6 +378,7 @@ namespace CONFIG { WriteString(cat->title, CONFIG_ALT_TITLE, cat->alt_title); WriteInt(cat->title, CONFIG_GRID_ROWS, cat->rows); WriteInt(cat->title, CONFIG_ASPECT_RATIO, cat->ratio); + WriteInt(cat->title, CONFIG_CATEGORY_ORDER, cat->order); if (cat->id != FAVORITES && cat->id != HOMEBREWS) { WriteString(cat->title, CONFIG_TITLE_ID_PREFIXES, GetMultiValueString(cat->valid_title_ids).c_str()); @@ -394,7 +395,6 @@ namespace CONFIG { WriteString(cat->title, CONFIG_ALT_CORES, GetMultiValueString(cat->alt_cores).c_str()); WriteBool(cat->title, CONFIG_BOOT_WITH_ALT_CORE, cat->boot_with_alt_core); WriteInt(cat->title, CONFIG_ICON_TYPE, cat->icon_type); - WriteInt(cat->title, CONFIG_CATEGORY_ORDER, cat->order); } WriteIniFile(CONFIG_INI_FILE); CloseIniFile();