From dbcccd2df63bf67c9cd6d79cb95fa6162334fa5a Mon Sep 17 00:00:00 2001 From: Jesse van den Kieboom Date: Fri, 31 Mar 2006 20:34:59 +0000 Subject: [PATCH] Fixed settings saving --- gnoemoe/gm-world.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnoemoe/gm-world.c b/gnoemoe/gm-world.c index d3482d4..1ca9738 100644 --- a/gnoemoe/gm-world.c +++ b/gnoemoe/gm-world.c @@ -1178,6 +1178,7 @@ gm_world_name_changed(GmWorld *world) { if (tmp_path && g_file_test(tmp_path, G_FILE_TEST_EXISTS)) { // Then! rename the old_path to the new_path + GM_DEBUG("Renaming %s!", tmp_path); rename(tmp_path, world->priv->path); } else if (!g_file_test(world->priv->path, G_FILE_TEST_EXISTS)) { // There was no old path, so a new dir should be made @@ -1186,12 +1187,12 @@ gm_world_name_changed(GmWorld *world) { g_free(tmp_path); - tmp_path = g_strconcat(world->priv->path, G_DIR_SEPARATOR_S, "settings", + tmp_path = g_strconcat(world->priv->path, G_DIR_SEPARATOR_S, "settings.xml", NULL); gm_options_save_as(world->priv->options, tmp_path); g_free(tmp_path); - tmp_path = g_strconcat(world->priv->path, G_DIR_SEPARATOR_S, "triggers", + tmp_path = g_strconcat(world->priv->path, G_DIR_SEPARATOR_S, "triggers.xml", NULL); gm_triggers_save_as(world->priv->triggers, tmp_path); g_free(tmp_path);