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("")) { std::string app_path = get_system_path(""); - 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("")) + else if (is_system_path_defined("")) data_path = get_system_path(""); else #endif