Changed the behaviour of ?data to use GetDataDir(), which should be better for unix

Originally committed to SVN as r1680.
This commit is contained in:
Rodrigo Braz Monteiro 2008-01-11 01:57:30 +00:00
parent 0dfaad3aa4
commit 6c330f12e4
1 changed files with 4 additions and 2 deletions

View File

@ -53,12 +53,14 @@ StandardPaths *StandardPaths::GetInstance() {
// Constructor
StandardPaths::StandardPaths() {
// Get paths
wxFileName dataDir(wxStandardPaths::Get().GetExecutablePath());
//wxFileName dataDir(wxStandardPaths::Get().GetDataDir());
wxString dataDir = wxStandardPaths::Get().GetDataDir();
wxString userDir = wxStandardPaths::Get().GetUserDataDir();
wxString tempDir = wxStandardPaths::Get().GetTempDir();
// Set paths
DoSetPathValue(_T("?data"),dataDir.GetPath(wxPATH_GET_VOLUME,wxPATH_NATIVE));
//DoSetPathValue(_T("?data"),dataDir.GetPath(wxPATH_GET_VOLUME,wxPATH_NATIVE));
DoSetPathValue(_T("?data"),dataDir);
DoSetPathValue(_T("?user"),userDir);
DoSetPathValue(_T("?temp"),tempDir);