Make initial RGUI directory configurable.
This commit is contained in:
parent
5f08cebf7c
commit
aa24755956
|
@ -1627,7 +1627,7 @@ RMENU API
|
||||||
|
|
||||||
void menu_init(void)
|
void menu_init(void)
|
||||||
{
|
{
|
||||||
rgui = rgui_init("",
|
rgui = rgui_init(g_settings.rgui_browser_directory,
|
||||||
menu_framebuf, RGUI_WIDTH * sizeof(uint16_t),
|
menu_framebuf, RGUI_WIDTH * sizeof(uint16_t),
|
||||||
NULL, bitmap_bin);
|
NULL, bitmap_bin);
|
||||||
|
|
||||||
|
|
|
@ -285,6 +285,10 @@ struct settings
|
||||||
bool network_cmd_enable;
|
bool network_cmd_enable;
|
||||||
uint16_t network_cmd_port;
|
uint16_t network_cmd_port;
|
||||||
bool stdin_cmd_enable;
|
bool stdin_cmd_enable;
|
||||||
|
|
||||||
|
#ifdef HAVE_RGUI
|
||||||
|
char rgui_browser_directory[PATH_MAX];
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
enum rarch_game_type
|
enum rarch_game_type
|
||||||
|
|
|
@ -35,6 +35,9 @@
|
||||||
# Implementations can query for this directory to load BIOSes, system-specific configs, etc.
|
# Implementations can query for this directory to load BIOSes, system-specific configs, etc.
|
||||||
# system_directory =
|
# system_directory =
|
||||||
|
|
||||||
|
# Sets start directory for RGUI ROM browser.
|
||||||
|
# rgui_browser_directory =
|
||||||
|
|
||||||
#### Video
|
#### Video
|
||||||
|
|
||||||
# Video driver to use. "gl", "xvideo", "sdl"
|
# Video driver to use. "gl", "xvideo", "sdl"
|
||||||
|
|
18
settings.c
18
settings.c
|
@ -504,6 +504,13 @@ bool config_load_file(const char *path)
|
||||||
#ifdef HAVE_RMENU
|
#ifdef HAVE_RMENU
|
||||||
if (config_get_path(conf, "menu_texture_path", tmp_str, sizeof(tmp_str)))
|
if (config_get_path(conf, "menu_texture_path", tmp_str, sizeof(tmp_str)))
|
||||||
strlcpy(g_extern.console.menu_texture_path, tmp_str, sizeof(g_extern.console.menu_texture_path));
|
strlcpy(g_extern.console.menu_texture_path, tmp_str, sizeof(g_extern.console.menu_texture_path));
|
||||||
|
|
||||||
|
int low_ram_mode = 0;
|
||||||
|
if (config_get_int(conf, "rmenu_low_ram_mode_enable", &low_ram_mode))
|
||||||
|
{
|
||||||
|
if (low_ram_mode == 1)
|
||||||
|
g_extern.lifecycle_mode_state |= (1ULL << MODE_MENU_LOW_RAM_MODE_ENABLE);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (config_get_bool(conf, "info_msg_enable", &msg_enable))
|
if (config_get_bool(conf, "info_msg_enable", &msg_enable))
|
||||||
|
@ -671,6 +678,10 @@ bool config_load_file(const char *path)
|
||||||
*g_settings.screenshot_directory = '\0';
|
*g_settings.screenshot_directory = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_RGUI
|
||||||
|
CONFIG_GET_PATH(rgui_browser_directory, "rgui_browser_directory");
|
||||||
|
#endif
|
||||||
|
|
||||||
CONFIG_GET_BOOL(rewind_enable, "rewind_enable");
|
CONFIG_GET_BOOL(rewind_enable, "rewind_enable");
|
||||||
|
|
||||||
int buffer_size = 0;
|
int buffer_size = 0;
|
||||||
|
@ -713,13 +724,6 @@ bool config_load_file(const char *path)
|
||||||
CONFIG_GET_INT(input.icade_profile[3], "input_autodetect_icade_profile_pad4");
|
CONFIG_GET_INT(input.icade_profile[3], "input_autodetect_icade_profile_pad4");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int low_ram_mode = 0;
|
|
||||||
if (config_get_int(conf, "rmenu_low_ram_mode_enable", &low_ram_mode))
|
|
||||||
{
|
|
||||||
if (low_ram_mode == 1)
|
|
||||||
g_extern.lifecycle_mode_state |= (1ULL << MODE_MENU_LOW_RAM_MODE_ENABLE);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (config_get_string(conf, "environment_variables",
|
if (config_get_string(conf, "environment_variables",
|
||||||
&g_extern.system.environment))
|
&g_extern.system.environment))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue