From 4fdd330d07cf09ea26b3cd00efd957223b3e587a Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sun, 12 Jan 2020 17:36:16 -0500 Subject: [PATCH] Setting up Apple Events needs to be done early in initialization, otherwise the event will time out and the Finder will show an error that the program doesn't know how to open the saved gane. --- src/game/boe.main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/boe.main.cpp b/src/game/boe.main.cpp index 5f0d9491..1344bd74 100644 --- a/src/game/boe.main.cpp +++ b/src/game/boe.main.cpp @@ -151,6 +151,7 @@ static void init_btn(std::shared_ptr& btn, eBtnType type) { } void init_boe(int argc, char* argv[]) { + set_up_apple_events(argc, argv); init_directories(argv[0]); init_menubar(); // Do this first of all because otherwise a default File and Window menu will be seen sync_prefs(); @@ -183,7 +184,6 @@ void init_boe(int argc, char* argv[]) { cUniverse::print_result = iLiving::print_result = add_string_to_buf; cPlayer::give_help = give_help; - set_up_apple_events(argc, argv); init_fileio(); init_spell_menus(); init_mini_map();