From: Andrea Zagli Date: Wed, 27 Oct 2010 09:46:52 +0000 (+0200) Subject: Other changes to work on a typical mingw/msys environment. X-Git-Tag: v0.3.0~3 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=1b92cfb2bbf50f3661d50cce0973fc2a8d71f77a;p=zakauthe%2Fplugins%2Fdb Other changes to work on a typical mingw/msys environment. --- diff --git a/src/aute_db.c b/src/aute_db.c index 358f1bd..6bf003a 100644 --- a/src/aute_db.c +++ b/src/aute_db.c @@ -419,15 +419,16 @@ gchar p = g_strrstr (moddir, g_strdup_printf ("%c", G_DIR_SEPARATOR)); if (p != NULL - && g_ascii_strcasecmp (p + 1, "src") == 0) + && (g_ascii_strcasecmp (p + 1, "src") == 0 + || g_ascii_strcasecmp (p + 1, ".libs") == 0)) { GUIDIR = g_build_filename ("/mingw", "share", "libaute-db", "gui", NULL); FORMDIR = g_build_filename ("/mingw", "share", "libaute-db", "form", NULL); } else { - GUIDIR = g_build_filename (g_win32_get_package_installation_directory_of_module (NULL), "share", "libaute-db", "gui", NULL); - FORMDIR = g_build_filename (g_win32_get_package_installation_directory_of_module (NULL), "share", "libaute-db", "form", NULL); + GUIDIR = g_build_filename (moddir, "share", "libaute-db", "gui", NULL); + FORMDIR = g_build_filename (moddir, "share", "libaute-db", "form", NULL); } #endif