AppName has to be set before ?user can be used

Originally committed to SVN as r5195.
This commit is contained in:
Thomas Goyne 2011-01-16 07:15:18 +00:00
parent f604e0bacd
commit 7afbce439d
1 changed files with 6 additions and 7 deletions

View File

@ -161,6 +161,12 @@ static void wxAssertHandler(const wxString &file, int line, const wxString &func
/// @brief Gets called when application starts.
/// @return bool
bool AegisubApp::OnInit() {
// App name (yeah, this is a little weird to get rid of an odd warning)
#if defined(__WXMSW__) || defined(__WXMAC__)
SetAppName(_T("Aegisub"));
#else
SetAppName(_T("aegisub"));
#endif
// logging.
const std::string path_log(StandardPaths::DecodePath(_T("?user/log/")));
@ -198,13 +204,6 @@ bool AegisubApp::OnInit() {
// Install assertion handler
// wxSetAssertHandler(wxAssertHandler);
// App name (yeah, this is a little weird to get rid of an odd warning)
#if defined(__WXMSW__) || defined(__WXMAC__)
SetAppName(_T("Aegisub"));
#else
SetAppName(_T("aegisub"));
#endif
const std::string conf_mru(StandardPaths::DecodePath(_T("?user/mru.json")));
config::mru = new agi::MRUManager(conf_mru, GET_DEFAULT_CONFIG(default_mru));