Some more fixes to Linux

Originally committed to SVN as r1286.
This commit is contained in:
Rodrigo Braz Monteiro 2007-06-22 03:14:25 +00:00
parent 831c423d93
commit 9122cdf74a
2 changed files with 11 additions and 5 deletions

View file

@ -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

View file

@ -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);
}