Advertisement
dominus

Untitled

Jan 14th, 2021
877
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.78 KB | None | 0 0
  1. diff --git a/cheat.cc b/cheat.cc
  2. index e3b127be..25ade332 100644
  3. --- a/cheat.cc
  4. +++ b/cheat.cc
  5. @@ -176,11 +176,16 @@ void Cheat::toggle_map_editor() {
  6.  #ifdef MACOSX
  7.             if (is_system_path_defined("<APPBUNDLE>")) {
  8.                 std::string app_path = get_system_path("<APPBUNDLE>");
  9. -               app_path += "/Contents/MacOS/";
  10. -               app_path += cmnd;
  11. -               cmnd = app_path;
  12. +               app_path += "/Contents/MacOS/exult_studio.app";
  13. +               if (U7exists(app_path)) {
  14. +                   data_path = app_path;
  15. +                   app_path += "/Contents/MacOS/";
  16. +                   app_path += cmnd;
  17. +                   cmnd = app_path;
  18. +                   data_path += "/Contents/Resources/data/";
  19. +               }
  20.             }
  21. -           if (is_system_path_defined("<BUNDLE>"))
  22. +           else if (is_system_path_defined("<BUNDLE>"))
  23.                 data_path = get_system_path("<BUNDLE>");
  24.             else
  25.  #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement