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
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎