diff options
Diffstat (limited to 'Project/AboutForm.cpp')
-rw-r--r-- | Project/AboutForm.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Project/AboutForm.cpp b/Project/AboutForm.cpp index 191d9e4..b9d4f88 100644 --- a/Project/AboutForm.cpp +++ b/Project/AboutForm.cpp @@ -60,7 +60,9 @@ void AboutForm::Init() // Load license file wxString licenseStr = ""; wxTextFile file; - if(!file.Open("../data/LICENSE")) { + wxFileName fn(wxStandardPaths::Get().GetExecutablePath()); + wxString licensePath = fn.GetPath() + "\\..\\data\\LICENSE"; + if(!file.Open(licensePath)) { // Error message } else { licenseStr += file.GetFirstLine() + "\n"; |