Bring back "rtdir" as cache folder on Windows plarform

This commit is contained in:
Hombre 2010-06-10 23:47:34 +02:00
parent b3e316fc45
commit 09495e66cc

View File

@ -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;