diff --git a/console/rarch_console_config.c b/console/rarch_console_config.c index 4b62aa272b..1c303ac7c5 100644 --- a/console/rarch_console_config.c +++ b/console/rarch_console_config.c @@ -47,7 +47,9 @@ void rarch_config_load(const char * conf_name, const char * libretro_dir_path, c #endif CONFIG_GET_STRING(system_directory, "system_directory"); +#ifdef HAVE_XML CONFIG_GET_STRING(cheat_database, "cheat_database"); +#endif CONFIG_GET_BOOL(rewind_enable, "rewind_enable"); CONFIG_GET_STRING(video.cg_shader_path, "video_cg_shader"); #ifdef HAVE_FBO diff --git a/console/rarch_console_settings.c b/console/rarch_console_settings.c index de0fab99e8..d49e28b0e3 100644 --- a/console/rarch_console_settings.c +++ b/console/rarch_console_settings.c @@ -316,7 +316,9 @@ void rarch_settings_set_default (const input_driver_t *input) { // g_settings g_settings.rewind_enable = false; +#ifdef HAVE_XML strlcpy(g_settings.cheat_database, default_paths.port_dir, sizeof(g_settings.cheat_database)); +#endif #if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL) strlcpy(g_settings.video.cg_shader_path, default_paths.shader_file, sizeof(g_settings.video.cg_shader_path));