Fixed data standard path

Originally committed to SVN as r1559.
This commit is contained in:
Alysson Souza 2007-09-11 03:54:56 +00:00
parent a5e800bccf
commit 7463ee0d7a
1 changed files with 2 additions and 2 deletions

View File

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