mirror of
https://github.com/libretro/RetroArch
synced 2025-04-24 06:02:36 +00:00
Reduce char variables size
This commit is contained in:
parent
d9007904e0
commit
00e68ccd0e
@ -85,7 +85,7 @@ struct defaults
|
|||||||
{
|
{
|
||||||
char config[PATH_MAX_LENGTH];
|
char config[PATH_MAX_LENGTH];
|
||||||
char core[PATH_MAX_LENGTH];
|
char core[PATH_MAX_LENGTH];
|
||||||
char buildbot_server_url[PATH_MAX_LENGTH];
|
char buildbot_server_url[255];
|
||||||
} path;
|
} path;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
@ -93,7 +93,7 @@ struct defaults
|
|||||||
int out_latency;
|
int out_latency;
|
||||||
float video_refresh_rate;
|
float video_refresh_rate;
|
||||||
bool video_threaded_enable;
|
bool video_threaded_enable;
|
||||||
char menu[PATH_MAX_LENGTH];
|
char menu[32];
|
||||||
} settings;
|
} settings;
|
||||||
|
|
||||||
#ifndef IS_SALAMANDER
|
#ifndef IS_SALAMANDER
|
||||||
|
@ -242,7 +242,7 @@ void fill_pathname_application_path(char *s, size_t len)
|
|||||||
{
|
{
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
static const char *exts[] = { "exe", "file", "path/a.out" };
|
static const char *exts[] = { "exe", "file", "path/a.out" };
|
||||||
char link_path[PATH_MAX_LENGTH];
|
char link_path[255];
|
||||||
|
|
||||||
link_path[0] = *s = '\0';
|
link_path[0] = *s = '\0';
|
||||||
pid = getpid();
|
pid = getpid();
|
||||||
|
@ -123,7 +123,7 @@ struct thread_packet
|
|||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
char msg[PATH_MAX_LENGTH];
|
char msg[255];
|
||||||
struct font_params params;
|
struct font_params params;
|
||||||
} osd_message;
|
} osd_message;
|
||||||
|
|
||||||
@ -216,7 +216,7 @@ struct thread_video
|
|||||||
bool updated;
|
bool updated;
|
||||||
bool within_thread;
|
bool within_thread;
|
||||||
uint64_t count;
|
uint64_t count;
|
||||||
char msg[PATH_MAX_LENGTH];
|
char msg[255];
|
||||||
} frame;
|
} frame;
|
||||||
|
|
||||||
video_driver_t video_thread;
|
video_driver_t video_thread;
|
||||||
|
@ -1887,7 +1887,7 @@ static const char *menu_hash_to_str_jp_label_enum(enum msg_hash_enums msg)
|
|||||||
if (msg <= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_END &&
|
if (msg <= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_END &&
|
||||||
msg >= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN)
|
msg >= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN)
|
||||||
{
|
{
|
||||||
static char hotkey_lbl[PATH_MAX_LENGTH] = {0};
|
static char hotkey_lbl[128] = {0};
|
||||||
unsigned idx = msg - MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN;
|
unsigned idx = msg - MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN;
|
||||||
snprintf(hotkey_lbl, sizeof(hotkey_lbl), "input_hotkey_binds_%d", idx);
|
snprintf(hotkey_lbl, sizeof(hotkey_lbl), "input_hotkey_binds_%d", idx);
|
||||||
return hotkey_lbl;
|
return hotkey_lbl;
|
||||||
|
@ -1889,7 +1889,7 @@ static const char *menu_hash_to_str_us_label_enum(enum msg_hash_enums msg)
|
|||||||
if (msg <= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_END &&
|
if (msg <= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_END &&
|
||||||
msg >= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN)
|
msg >= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN)
|
||||||
{
|
{
|
||||||
static char hotkey_lbl[PATH_MAX_LENGTH] = {0};
|
static char hotkey_lbl[128] = {0};
|
||||||
unsigned idx = msg - MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN;
|
unsigned idx = msg - MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN;
|
||||||
snprintf(hotkey_lbl, sizeof(hotkey_lbl), "input_hotkey_binds_%d", idx);
|
snprintf(hotkey_lbl, sizeof(hotkey_lbl), "input_hotkey_binds_%d", idx);
|
||||||
return hotkey_lbl;
|
return hotkey_lbl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user