mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-02-01 10:30:08 -05:00
--Bug fixes
-Place last.flame in ~/.config/fractorium on Linux.
This commit is contained in:
parent
f4ea6c3959
commit
243ad605f1
@ -116,6 +116,7 @@ static bool InitPaletteList(const string& filename)
|
||||
{
|
||||
"./",
|
||||
#ifndef _WIN32
|
||||
"~"
|
||||
"~/.fractorium",
|
||||
"~/.config/fractorium",
|
||||
"/usr/share/fractorium",
|
||||
|
@ -63,8 +63,10 @@ FractoriumEmberController<T>::FractoriumEmberController(Fractorium* fractorium)
|
||||
QDir::currentPath().toLocal8Bit().data(),
|
||||
QDir::homePath().toLocal8Bit().data(),
|
||||
QCoreApplication::applicationDirPath().toLocal8Bit().data(),
|
||||
QString("/usr/local/share/fractorium").toLocal8Bit().data(),
|
||||
QString("/usr/share/fractorium").toLocal8Bit().data()
|
||||
QString("~/.fractorium").toLocal8Bit().data(),
|
||||
QString("~/.config/fractorium").toLocal8Bit().data(),
|
||||
QString("/usr/share/fractorium").toLocal8Bit().data(),
|
||||
QString("/usr/local/share/fractorium").toLocal8Bit().data()
|
||||
};
|
||||
|
||||
for (auto& path : paths)
|
||||
@ -349,7 +351,11 @@ void FractoriumEmberController<T>::SetEmberPrivate(const Ember<U>& ember, bool v
|
||||
}
|
||||
|
||||
static EmberToXml<T> writer;//Save parameters of last full render just in case there is a crash.
|
||||
#ifdef _WIN32
|
||||
string filename = "last.flame";
|
||||
#else
|
||||
string filename = "~/.config/fractorium/last.flame";
|
||||
#endif
|
||||
writer.Save(filename.c_str(), m_Ember, 0, true, false, true);
|
||||
m_GLController->ResetMouseState();
|
||||
FillXforms();//Must do this first because the palette setup in FillParamTablesAndPalette() uses the xforms combo.
|
||||
|
Loading…
Reference in New Issue
Block a user