From 203882ec9aabc19490d9db9dece2f709365c4491 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 14 Aug 2020 23:08:33 +0200 Subject: [PATCH] Struct reorder, alignments --- menu/menu_displaylist.h | 38 ++++++++++++++++++++------------------ menu/menu_input.h | 2 +- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/menu/menu_displaylist.h b/menu/menu_displaylist.h index da4b9ee2e5..c28dd490ae 100644 --- a/menu/menu_displaylist.h +++ b/menu/menu_displaylist.h @@ -262,6 +262,23 @@ enum filebrowser_enums typedef struct menu_displaylist_info { + char *path; + char *path_b; + char *path_c; + char *exts; + char *label; + file_list_t *list; + file_list_t *menu_list; + rarch_setting_t *setting; + + size_t directory_ptr; + + unsigned count; + + unsigned type; + unsigned type_default; + unsigned flags; + enum msg_hash_enums enum_idx; /* should the displaylist be sorted by alphabet? */ bool need_sort; @@ -279,31 +296,16 @@ typedef struct menu_displaylist_info bool download_core; /* does the navigation index need to be cleared to 0 (first entry) ? */ bool need_navigation_clear; - - unsigned count; - - char *path; - char *path_b; - char *path_c; - char *exts; - char *label; - unsigned type; - unsigned type_default; - unsigned flags; - size_t directory_ptr; - file_list_t *list; - file_list_t *menu_list; - rarch_setting_t *setting; } menu_displaylist_info_t; typedef struct menu_displaylist_ctx_parse_entry { - enum msg_hash_enums enum_idx; - enum menu_displaylist_parse_type parse_type; - bool add_empty_entry; const char *info_label; void *data; menu_displaylist_info_t *info; + enum msg_hash_enums enum_idx; + enum menu_displaylist_parse_type parse_type; + bool add_empty_entry; } menu_displaylist_ctx_parse_entry_t; typedef struct menu_displaylist_ctx_entry diff --git a/menu/menu_input.h b/menu/menu_input.h index ff51f655b0..4895130b00 100644 --- a/menu/menu_input.h +++ b/menu/menu_input.h @@ -168,7 +168,7 @@ typedef struct menu_input_pointer typedef struct menu_input { - menu_input_pointer_t pointer; + menu_input_pointer_t pointer; /* uint64_t alignment */ unsigned ptr; bool select_inhibit; bool cancel_inhibit;