From 7463ee0d7a4550bb0c107121c347b4d4f6928778 Mon Sep 17 00:00:00 2001 From: Alysson Souza Date: Tue, 11 Sep 2007 03:54:56 +0000 Subject: [PATCH] Fixed data standard path Originally committed to SVN as r1559. --- aegisub/standard_paths.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/standard_paths.cpp b/aegisub/standard_paths.cpp index caf09e82e..02c984028 100644 --- a/aegisub/standard_paths.cpp +++ b/aegisub/standard_paths.cpp @@ -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);