mirror of
https://github.com/libretro/RetroArch
synced 2025-04-03 10:21:31 +00:00
Silence warnings; set default autoconfig dir
This commit is contained in:
parent
fbcd7739d9
commit
1d070aae93
@ -1838,7 +1838,9 @@ bool command_event(enum event_command cmd, void *data)
|
|||||||
break;
|
break;
|
||||||
case CMD_EVENT_LOAD_STATE:
|
case CMD_EVENT_LOAD_STATE:
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_CHEEVOS
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
#endif
|
||||||
/* Immutable - disallow savestate load when
|
/* Immutable - disallow savestate load when
|
||||||
* we absolutely cannot change game state. */
|
* we absolutely cannot change game state. */
|
||||||
if (bsv_movie_ctl(BSV_MOVIE_CTL_IS_INITED, NULL))
|
if (bsv_movie_ctl(BSV_MOVIE_CTL_IS_INITED, NULL))
|
||||||
@ -1969,7 +1971,9 @@ bool command_event(enum event_command cmd, void *data)
|
|||||||
break;
|
break;
|
||||||
case CMD_EVENT_REWIND_DEINIT:
|
case CMD_EVENT_REWIND_DEINIT:
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_CHEEVOS
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
#endif
|
||||||
#ifdef HAVE_NETWORKING
|
#ifdef HAVE_NETWORKING
|
||||||
if (netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_DATA_INITED, NULL))
|
if (netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_DATA_INITED, NULL))
|
||||||
return false;
|
return false;
|
||||||
@ -1984,8 +1988,8 @@ bool command_event(enum event_command cmd, void *data)
|
|||||||
break;
|
break;
|
||||||
case CMD_EVENT_REWIND_INIT:
|
case CMD_EVENT_REWIND_INIT:
|
||||||
{
|
{
|
||||||
settings_t *settings = config_get_ptr();
|
|
||||||
#ifdef HAVE_CHEEVOS
|
#ifdef HAVE_CHEEVOS
|
||||||
|
settings_t *settings = config_get_ptr();
|
||||||
if (settings->cheevos.hardcore_mode_enable)
|
if (settings->cheevos.hardcore_mode_enable)
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
@ -2408,7 +2412,9 @@ bool command_event(enum event_command cmd, void *data)
|
|||||||
break;
|
break;
|
||||||
case CMD_EVENT_NETPLAY_INIT:
|
case CMD_EVENT_NETPLAY_INIT:
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_NETWORKING
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
#endif
|
||||||
command_event(CMD_EVENT_NETPLAY_DEINIT, NULL);
|
command_event(CMD_EVENT_NETPLAY_DEINIT, NULL);
|
||||||
#ifdef HAVE_NETWORKING
|
#ifdef HAVE_NETWORKING
|
||||||
if (!init_netplay(
|
if (!init_netplay(
|
||||||
|
@ -223,6 +223,9 @@ static void frontend_gx_get_environment_settings(
|
|||||||
|
|
||||||
fill_pathname_join(g_defaults.dir.core_info, g_defaults.dir.core,
|
fill_pathname_join(g_defaults.dir.core_info, g_defaults.dir.core,
|
||||||
"info", sizeof(g_defaults.dir.core_info));
|
"info", sizeof(g_defaults.dir.core_info));
|
||||||
|
fill_pathname_join(g_defaults.dir.autoconfig,
|
||||||
|
g_defaults.dir.core, "autoconfig",
|
||||||
|
sizeof(g_defaults.dir.autoconfig));
|
||||||
fill_pathname_join(g_defaults.dir.overlay, g_defaults.dir.core,
|
fill_pathname_join(g_defaults.dir.overlay, g_defaults.dir.core,
|
||||||
"overlays", sizeof(g_defaults.dir.overlay));
|
"overlays", sizeof(g_defaults.dir.overlay));
|
||||||
fill_pathname_join(g_defaults.path.config, g_defaults.dir.port,
|
fill_pathname_join(g_defaults.path.config, g_defaults.dir.port,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user