More ifdeffing out of cheat settings if HAVE_XML is not defined

This commit is contained in:
twinaphex 2012-08-04 07:26:50 +02:00
parent a1eecbfcc5
commit 50ce3fc6c9
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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));