Line 0
Link Here
|
|
|
1 |
--- src/Dirstructure.cpp.orig 2020-03-09 10:05:50 UTC |
2 |
+++ src/Dirstructure.cpp |
3 |
@@ -79,10 +79,11 @@ wxString Dirstructure::ResourcesDir() const |
4 |
|
5 |
// We only need the drive and the directory part of the path to the binary |
6 |
exe.ClearExt(); |
7 |
- exe.SetName(wxEmptyString); |
8 |
+ //exe.SetName(wxEmptyString); |
9 |
|
10 |
// If the binary is in a source or bin folder the resources dir is one level above |
11 |
wxArrayString dirs = exe.GetDirs(); |
12 |
+ if(!dirs.IsEmpty()){ |
13 |
if((dirs.Last().Upper() == wxT("SRC")) || (dirs.Last().Upper() == wxT("BIN"))) |
14 |
{ |
15 |
exe.RemoveLastDir(); |
16 |
@@ -93,7 +94,7 @@ wxString Dirstructure::ResourcesDir() const |
17 |
// are in MacOS/wxmaxima |
18 |
if((dirs.Last().Upper() == wxT("MACOS"))) |
19 |
exe.RemoveLastDir(); |
20 |
- |
21 |
+ } |
22 |
// If there is a Resources folder the ressources are there |
23 |
if(wxDirExists(exe.GetPath() + wxT("/Resources"))) |
24 |
exe.AppendDir("Resources"); |