From 09495e66cc75d8cef4da2a6b9fe8ca1bd7ff953c Mon Sep 17 00:00:00 2001 From: Hombre Date: Thu, 10 Jun 2010 23:47:34 +0200 Subject: [PATCH] Bring back "rtdir" as cache folder on Windows plarform --- rtgui/options.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rtgui/options.cc b/rtgui/options.cc index 8eadff58c..d3ab4cbeb 100644 --- a/rtgui/options.cc +++ b/rtgui/options.cc @@ -422,8 +422,12 @@ void Options::load () { g_mkdir_with_parents (profdir.c_str(), 511); options.saveToFile (rtdir + "/options"); } - cacheBaseDir = Glib::ustring(g_get_user_cache_dir()) + "/RawTherapee"; +#if defined(__MINGW32__) || defined(_WIN32) || defined(__WIN32__) || defined(WIN32) + cacheBaseDir = rtdir + "/cache"; } +#else + cacheBaseDir = Glib::ustring(g_get_user_cache_dir()) + "/RawTherapee"; +#endif Glib::ustring fname = argv0+"/languages/"; fname += (options.language.empty())? DefaultLanguage : options.language;