From 9122cdf74a432e64aa084c8ab4be2cd71debec2c Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Fri, 22 Jun 2007 03:14:25 +0000 Subject: [PATCH] Some more fixes to Linux Originally committed to SVN as r1286. --- aegisub/main.cpp | 6 ++++++ aegisub/standard_paths.cpp | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/aegisub/main.cpp b/aegisub/main.cpp index c61e61efd..b32fb0069 100644 --- a/aegisub/main.cpp +++ b/aegisub/main.cpp @@ -82,7 +82,13 @@ bool AegisubApp::OnInit() { setlocale(LC_CTYPE, "C"); // App name +#ifdef __WXMSW__ || __WXMAC__ SetAppName(_T("Aegisub")); +#else + SetAppName(_T("aegisub")); +#endif + + // Crash handling #ifndef _DEBUG wxHandleFatalExceptions(true); #endif diff --git a/aegisub/standard_paths.cpp b/aegisub/standard_paths.cpp index cbc4f33f4..caf09e82e 100644 --- a/aegisub/standard_paths.cpp +++ b/aegisub/standard_paths.cpp @@ -63,12 +63,12 @@ StandardPaths::StandardPaths() { DoSetPathValue(_T("?temp"),tempDir); // Create paths if they don't exist - wxFileName folder(dataDir + _T("/")); - if (!folder.DirExists()) folder.Mkdir(0777,wxPATH_MKDIR_FULL); - folder.Assign(userDir + _T("/")); - if (!folder.DirExists()) folder.Mkdir(0777,wxPATH_MKDIR_FULL); - folder.Assign(tempDir + _T("/")); + wxFileName folder(userDir + _T("/")); if (!folder.DirExists()) folder.Mkdir(0777,wxPATH_MKDIR_FULL); + //folder.Assign(dataDir + _T("/")); + //if (!folder.DirExists()) folder.Mkdir(0777,wxPATH_MKDIR_FULL); + //folder.Assign(tempDir + _T("/")); + //if (!folder.DirExists()) folder.Mkdir(0777,wxPATH_MKDIR_FULL); }