diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-09-19 21:12:45 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-09-19 21:12:45 -0300 |
commit | b76d50299a7995b2b3be0a3f9bf954cceeb89314 (patch) | |
tree | 5e234bb5216325882610e028826256617b44c2f8 /Project/AboutForm.cpp | |
parent | de90dfcf76c1fb13648633b6bddb011b15ac8458 (diff) | |
download | PSP.git-b76d50299a7995b2b3be0a3f9bf954cceeb89314.tar.gz PSP.git-b76d50299a7995b2b3be0a3f9bf954cceeb89314.tar.xz PSP.git-b76d50299a7995b2b3be0a3f9bf954cceeb89314.zip |
Open file .psp implemented
Several directories bugfixes
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"; |