# HG changeset patch # User Herman Bloggs # Date 1043349852 0 # Node ID cb629f3efee68201168a6c31964bccd24026b2d8 # Parent 16f7f9451814c67a2ba42653ae6f3865395aa854 [gaim-migrate @ 4674] Fix for win32 path bugs, and removed redundant filter_break from gaimrc_read_plugins. committer: Tailor Script diff -r 16f7f9451814 -r cb629f3efee6 src/gaimrc.c --- a/src/gaimrc.c Thu Jan 23 18:54:01 2003 +0000 +++ b/src/gaimrc.c Thu Jan 23 19:24:12 2003 +0000 @@ -433,9 +433,7 @@ p = (struct gaim_plugin *)pl->data; path = escape_text2(p->path); - fprintf(f, "\tplugin { %s }\n", path); - free(path); pl = pl->next; @@ -462,9 +460,6 @@ p = parse_line(buf, &parse_buffer); if (!strcmp(p->option, "plugin")) { -#ifndef _WIN32 - filter_break(p->value[0]); -#endif load = g_slist_append(load, g_strdup(p->value[0])); } } @@ -961,8 +956,17 @@ int i; fprintf(f, "sound_files {\n"); for (i = 0; i < NUM_SOUNDS; i++) - if (sound_file[i]) + if (sound_file[i]) { +#ifndef _WIN32 fprintf(f, "\tsound%c { %s }\n", i + 'A', sound_file[i]); +#else + /* Make sure windows dir speparators arn't swallowed up when + path is read back in from resource file */ + char* tmp=wgaim_escape_dirsep(sound_file[i]); + fprintf(f, "\tsound%c { %s }\n", i + 'A', tmp); + g_free(tmp); +#endif + } else fprintf(f, "\tsound%c { }\n", i + 'A'); #ifndef _WIN32