remove args and windows logic from all set_up_apple_events
This commit is contained in:
@@ -30,8 +30,8 @@ typedef NSAppleEventDescriptor AEDescr;
|
||||
-(NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication*) sender;
|
||||
@end
|
||||
|
||||
void set_up_apple_events(int argc, char* argv[]); // Suppress "no prototype" warning
|
||||
void set_up_apple_events(int, char*[]) {
|
||||
void set_up_apple_events(); // Suppress "no prototype" warning
|
||||
void set_up_apple_events() {
|
||||
AppleEventHandler* aeHandler = [[AppleEventHandler alloc] init];
|
||||
[[NSApplication sharedApplication] setDelegate: aeHandler];
|
||||
}
|
||||
|
@@ -238,7 +238,7 @@ void process_args(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
void init_boe(int argc, char* argv[]) {
|
||||
set_up_apple_events(argc, argv);
|
||||
set_up_apple_events();
|
||||
init_directories(argv[0]);
|
||||
check_for_intel();
|
||||
process_args(argc, argv);
|
||||
|
@@ -11,7 +11,7 @@ void redraw_everything();
|
||||
void Mouse_Pressed(const sf::Event&);
|
||||
void close_program();
|
||||
void change_cursor(location where_curs);
|
||||
void set_up_apple_events(int argc, char* argv[]);
|
||||
void set_up_apple_events();
|
||||
void move_sound(ter_num_t ter,short step);
|
||||
void incidental_noises(bool on_surface);
|
||||
void pause(short length);
|
||||
|
@@ -49,6 +49,6 @@ void hideMenuBar() {
|
||||
void showMenuBar() {
|
||||
}
|
||||
|
||||
void set_up_apple_events(int argc, char* argv[]) {
|
||||
void set_up_apple_events() {
|
||||
|
||||
}
|
||||
|
@@ -313,11 +313,6 @@ LRESULT CALLBACK menuProc(HWND handle, UINT message, WPARAM wParam, LPARAM lPara
|
||||
return CallWindowProc(reinterpret_cast<WNDPROC>(mainProc), handle, message, wParam, lParam);
|
||||
}
|
||||
|
||||
#include "fileio.hpp"
|
||||
#include "boe.graphics.hpp"
|
||||
#include "boe.actions.hpp"
|
||||
#include "boe.fileio.hpp"
|
||||
|
||||
void set_up_apple_events(int argc, char* argv[]) {
|
||||
void set_up_apple_events() {
|
||||
|
||||
}
|
Reference in New Issue
Block a user