Bring back "rtdir" as cache folder on Windows plarform
This commit is contained in:
parent
b3e316fc45
commit
09495e66cc
@ -422,8 +422,12 @@ void Options::load () {
|
|||||||
g_mkdir_with_parents (profdir.c_str(), 511);
|
g_mkdir_with_parents (profdir.c_str(), 511);
|
||||||
options.saveToFile (rtdir + "/options");
|
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/";
|
Glib::ustring fname = argv0+"/languages/";
|
||||||
fname += (options.language.empty())? DefaultLanguage : options.language;
|
fname += (options.language.empty())? DefaultLanguage : options.language;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user