X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-libraries.git;a=blobdiff_plain;f=minimenu%2Fmmenu.c;h=97328f5f6b9b023522e453a50504f63165bcc08e;hp=23dfeb84391fa43f9a45327347b4b82542887f7e;hb=7ce5a8668792311a016b166d6abf69b23b0dc3e1;hpb=73ad732609ce8e8bb1665a8f172686a7f0a326dd diff --git a/minimenu/mmenu.c b/minimenu/mmenu.c index 23dfeb8..97328f5 100644 --- a/minimenu/mmenu.c +++ b/minimenu/mmenu.c @@ -60,6 +60,7 @@ char *pnd_run_script = NULL; char *g_skinpath = NULL; unsigned char g_x11_present = 1; // >0 if X is present unsigned char g_catmap = 0; // if 1, we're doing category mapping +unsigned char g_pvwcache = 0; // if 1, we're trying to do preview caching int main ( int argc, char *argv[] ) { int logall = -1; // -1 means normal logging rules; >=0 means log all! @@ -235,6 +236,11 @@ int main ( int argc, char *argv[] ) { // show load screen ui_loadscreen(); + // store flag if we're doing preview caching or not + if ( pnd_conf_get_as_int_d ( g_conf, "previewpic.do_cache", 0 ) ) { + g_pvwcache = 1; + } + // set up static image cache if ( ! ui_imagecache ( g_skinpath ) ) { pnd_log ( pndn_error, "ERROR: Couldn't set up static UI image cache!\n" );