mirror of https://github.com/odrling/Aegisub
assdraw: always write the config file to the user's config dir
Originally committed to SVN as r6868.
This commit is contained in:
parent
77b60b579e
commit
03259b3ceb
|
@ -141,9 +141,7 @@ ASSDrawFrame::ASSDrawFrame( wxApp *app, const wxString& title, const wxPoint& po
|
||||||
InitializeDefaultSettings();
|
InitializeDefaultSettings();
|
||||||
|
|
||||||
// load config
|
// load config
|
||||||
configfile = wxFileName(::wxGetCwd(), _T("ASSDraw3.cfg")).GetFullPath();
|
configfile = wxFileName(wxStandardPaths::Get().GetUserConfigDir(), _T("ASSDraw3.cfg")).GetFullPath();
|
||||||
if (!::wxFileExists(configfile))
|
|
||||||
configfile = wxFileName(wxStandardPaths::Get().GetUserConfigDir(), _T("ASSDraw3.cfg")).GetFullPath();
|
|
||||||
|
|
||||||
bool firsttime = !::wxFileExists(configfile);
|
bool firsttime = !::wxFileExists(configfile);
|
||||||
if (firsttime) wxFileOutputStream(configfile).Close();
|
if (firsttime) wxFileOutputStream(configfile).Close();
|
||||||
|
|
Loading…
Reference in New Issue