diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-09-19 21:14:46 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-19 21:14:46 -0300 |
commit | fa2776e9a939a793a9e46a0cc5880dda868e7028 (patch) | |
tree | 302f16d6d9af20a293d18d8a553ba2eac19a0fae /Project/AboutForm.cpp | |
parent | 3be51dc6e55414c76e7059a8dffa74a99268a7c8 (diff) | |
parent | 011fe58b631f66b715b0ba0d3f8be58277b355b2 (diff) | |
download | PSP.git-fa2776e9a939a793a9e46a0cc5880dda868e7028.tar.gz PSP.git-fa2776e9a939a793a9e46a0cc5880dda868e7028.tar.xz PSP.git-fa2776e9a939a793a9e46a0cc5880dda868e7028.zip |
Merge pull request #38 from Thales1330/wip/open-dot-psp
Wip open dot psp
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"; |