forked from mia/Aegisub
Some more fixes to Linux
Originally committed to SVN as r1286.
This commit is contained in:
parent
831c423d93
commit
9122cdf74a
2 changed files with 11 additions and 5 deletions
|
@ -82,7 +82,13 @@ bool AegisubApp::OnInit() {
|
||||||
setlocale(LC_CTYPE, "C");
|
setlocale(LC_CTYPE, "C");
|
||||||
|
|
||||||
// App name
|
// App name
|
||||||
|
#ifdef __WXMSW__ || __WXMAC__
|
||||||
SetAppName(_T("Aegisub"));
|
SetAppName(_T("Aegisub"));
|
||||||
|
#else
|
||||||
|
SetAppName(_T("aegisub"));
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Crash handling
|
||||||
#ifndef _DEBUG
|
#ifndef _DEBUG
|
||||||
wxHandleFatalExceptions(true);
|
wxHandleFatalExceptions(true);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -63,12 +63,12 @@ StandardPaths::StandardPaths() {
|
||||||
DoSetPathValue(_T("?temp"),tempDir);
|
DoSetPathValue(_T("?temp"),tempDir);
|
||||||
|
|
||||||
// Create paths if they don't exist
|
// Create paths if they don't exist
|
||||||
wxFileName folder(dataDir + _T("/"));
|
wxFileName folder(userDir + _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("/"));
|
|
||||||
if (!folder.DirExists()) folder.Mkdir(0777,wxPATH_MKDIR_FULL);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue