mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Rearrange struct members based on size
This commit is contained in:
parent
f13a4b10ee
commit
38135c505b
@ -35,21 +35,24 @@ typedef struct overlay_loader overlay_loader_t;
|
|||||||
|
|
||||||
struct overlay_loader
|
struct overlay_loader
|
||||||
{
|
{
|
||||||
enum overlay_status state;
|
bool driver_rgba_support;
|
||||||
enum overlay_image_transfer_status loading_status;
|
|
||||||
config_file_t *conf;
|
|
||||||
char *overlay_path;
|
|
||||||
struct overlay *overlays;
|
|
||||||
struct overlay *active;
|
|
||||||
bool overlay_enable;
|
bool overlay_enable;
|
||||||
bool overlay_hide_in_menu;
|
bool overlay_hide_in_menu;
|
||||||
|
|
||||||
|
enum overlay_status state;
|
||||||
|
enum overlay_image_transfer_status loading_status;
|
||||||
|
|
||||||
size_t resolve_pos;
|
size_t resolve_pos;
|
||||||
unsigned size;
|
unsigned size;
|
||||||
unsigned pos;
|
unsigned pos;
|
||||||
unsigned pos_increment;
|
unsigned pos_increment;
|
||||||
float overlay_opacity;
|
float overlay_opacity;
|
||||||
float overlay_scale;
|
float overlay_scale;
|
||||||
bool driver_rgba_support;
|
|
||||||
|
config_file_t *conf;
|
||||||
|
char *overlay_path;
|
||||||
|
struct overlay *overlays;
|
||||||
|
struct overlay *active;
|
||||||
};
|
};
|
||||||
|
|
||||||
static void task_overlay_image_done(struct overlay *overlay)
|
static void task_overlay_image_done(struct overlay *overlay)
|
||||||
|
@ -51,26 +51,28 @@ enum pl_thumb_status
|
|||||||
|
|
||||||
typedef struct pl_thumb_handle
|
typedef struct pl_thumb_handle
|
||||||
{
|
{
|
||||||
|
bool overwrite;
|
||||||
|
bool right_thumbnail_exists;
|
||||||
|
bool left_thumbnail_exists;
|
||||||
|
bool http_task_complete;
|
||||||
|
enum pl_thumb_status status;
|
||||||
|
|
||||||
|
size_t list_size;
|
||||||
|
size_t list_index;
|
||||||
|
unsigned type_idx;
|
||||||
|
|
||||||
char *system;
|
char *system;
|
||||||
char *playlist_path;
|
char *playlist_path;
|
||||||
char *dir_thumbnails;
|
char *dir_thumbnails;
|
||||||
playlist_t *playlist;
|
playlist_t *playlist;
|
||||||
gfx_thumbnail_path_data_t *thumbnail_path_data;
|
gfx_thumbnail_path_data_t *thumbnail_path_data;
|
||||||
retro_task_t *http_task;
|
retro_task_t *http_task;
|
||||||
bool http_task_complete;
|
|
||||||
size_t list_size;
|
|
||||||
size_t list_index;
|
|
||||||
unsigned type_idx;
|
|
||||||
bool overwrite;
|
|
||||||
bool right_thumbnail_exists;
|
|
||||||
bool left_thumbnail_exists;
|
|
||||||
enum pl_thumb_status status;
|
|
||||||
} pl_thumb_handle_t;
|
} pl_thumb_handle_t;
|
||||||
|
|
||||||
typedef struct pl_entry_id
|
typedef struct pl_entry_id
|
||||||
{
|
{
|
||||||
char *playlist_path;
|
|
||||||
size_t idx;
|
size_t idx;
|
||||||
|
char *playlist_path;
|
||||||
} pl_entry_id_t;
|
} pl_entry_id_t;
|
||||||
|
|
||||||
/*********************/
|
/*********************/
|
||||||
@ -84,14 +86,14 @@ static bool get_thumbnail_paths(
|
|||||||
char *path, size_t path_size,
|
char *path, size_t path_size,
|
||||||
char *url, size_t url_size)
|
char *url, size_t url_size)
|
||||||
{
|
{
|
||||||
|
char raw_url[2048];
|
||||||
|
char content_dir[PATH_MAX_LENGTH];
|
||||||
|
char tmp_buf[PATH_MAX_LENGTH];
|
||||||
const char *system = NULL;
|
const char *system = NULL;
|
||||||
const char *db_name = NULL;
|
const char *db_name = NULL;
|
||||||
const char *img_name = NULL;
|
const char *img_name = NULL;
|
||||||
const char *sub_dir = NULL;
|
const char *sub_dir = NULL;
|
||||||
const char *system_name = NULL;
|
const char *system_name = NULL;
|
||||||
char content_dir[PATH_MAX_LENGTH];
|
|
||||||
char raw_url[2048];
|
|
||||||
char tmp_buf[PATH_MAX_LENGTH];
|
|
||||||
|
|
||||||
content_dir[0] = '\0';
|
content_dir[0] = '\0';
|
||||||
raw_url[0] = '\0';
|
raw_url[0] = '\0';
|
||||||
|
@ -44,14 +44,14 @@ enum pl_manager_status
|
|||||||
|
|
||||||
typedef struct pl_manager_handle
|
typedef struct pl_manager_handle
|
||||||
{
|
{
|
||||||
|
bool use_old_format;
|
||||||
|
bool fuzzy_archive_match;
|
||||||
|
enum pl_manager_status status;
|
||||||
|
size_t list_size;
|
||||||
|
size_t list_index;
|
||||||
char *playlist_path;
|
char *playlist_path;
|
||||||
char *playlist_name;
|
char *playlist_name;
|
||||||
playlist_t *playlist;
|
playlist_t *playlist;
|
||||||
size_t list_size;
|
|
||||||
size_t list_index;
|
|
||||||
enum pl_manager_status status;
|
|
||||||
bool use_old_format;
|
|
||||||
bool fuzzy_archive_match;
|
|
||||||
} pl_manager_handle_t;
|
} pl_manager_handle_t;
|
||||||
|
|
||||||
/*********************/
|
/*********************/
|
||||||
|
@ -29,8 +29,8 @@ typedef struct powerstate powerstate_t;
|
|||||||
|
|
||||||
struct powerstate
|
struct powerstate
|
||||||
{
|
{
|
||||||
int percent;
|
|
||||||
enum frontend_powerstate state;
|
enum frontend_powerstate state;
|
||||||
|
int percent;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum frontend_powerstate get_last_powerstate(int *percent)
|
enum frontend_powerstate get_last_powerstate(int *percent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user