X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/46c3a2bdf68894c89638fd55ba38404d62778d34..50843c96920d8d1a56140deed00bb3d1792038ed:/src/download.c?ds=sidebyside diff --git a/src/download.c b/src/download.c index 2e80ba56..3660fa18 100644 --- a/src/download.c +++ b/src/download.c @@ -201,7 +201,14 @@ void a_try_decompress_file (gchar *name) gboolean zip = FALSE; gboolean bzip2 = FALSE; if ( myt ) { +#ifdef WINDOWS + // We have to 'package' the magic database ourselves :( + // --> %PROGRAM FILES%\Viking\magic.mgc + magic_load ( myt, "magic.mgc" ); +#else + // Use system default magic_load ( myt, NULL ); +#endif const char* magic = magic_file (myt, name); g_debug ("%s: magic output: %s", __FUNCTION__, magic );