dominus icon

Untitled

dominus | PRO | 01/14/21 11:52:11 AM UTC | 0 ⭐ | 13501 👁️ | Never ⏰ | []
Diff |

780 B

|

None

|

0 👍

/

0 👎

diff --git a/cheat.cc b/cheat.cc
index e3b127be..25ade332 100644
--- a/cheat.cc
+++ b/cheat.cc
@@ -176,11 +176,16 @@ void Cheat::toggle_map_editor() {
 #ifdef MACOSX
            if (is_system_path_defined("<APPBUNDLE>")) {
                std::string app_path = get_system_path("<APPBUNDLE>");
-               app_path += "/Contents/MacOS/";
-               app_path += cmnd;
-               cmnd = app_path;
+               app_path += "/Contents/MacOS/exult_studio.app";
+               if (U7exists(app_path)) {
+                   data_path = app_path;
+                   app_path += "/Contents/MacOS/";
+                   app_path += cmnd;
+                   cmnd = app_path;
+                   data_path += "/Contents/Resources/data/";
+               }
            }
-           if (is_system_path_defined("<BUNDLE>"))
+           else if (is_system_path_defined("<BUNDLE>"))
                data_path = get_system_path("<BUNDLE>");
            else
 #endif

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎