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.
This commit is contained in:
@@ -151,6 +151,7 @@ static void init_btn(std::shared_ptr<cButton>& 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();
|
||||
|
Reference in New Issue
Block a user