From b76d50299a7995b2b3be0a3f9bf954cceeb89314 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Tue, 19 Sep 2017 21:12:45 -0300 Subject: Open file .psp implemented Several directories bugfixes --- Project/AboutForm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Project/AboutForm.cpp') 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"; -- cgit