From 7afbce439dd7fd7f17b0f4f591586dbdb1ec8c51 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 16 Jan 2011 07:15:18 +0000 Subject: [PATCH] AppName has to be set before ?user can be used Originally committed to SVN as r5195. --- aegisub/src/main.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/aegisub/src/main.cpp b/aegisub/src/main.cpp index 11cc860e5..39232651d 100644 --- a/aegisub/src/main.cpp +++ b/aegisub/src/main.cpp @@ -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));