--- previous/src/gui-osx/SDLMain.m 2018/04/24 19:25:43 1.1.1.2 +++ previous/src/gui-osx/SDLMain.m 2018/04/24 19:30:05 1.1.1.3 @@ -314,7 +314,7 @@ static void CustomApplicationMain (int a /* Hand off to main application code */ gCalledAppMainline = TRUE; - status = SDL_main (gArgc, gArgv); + //status = SDL_main (gArgc, gArgv); /* We're done, thank you for playing */ exit(status); @@ -512,12 +512,12 @@ static void CustomApplicationMain (int a - (IBAction)captureSound:(id)sender { GuiOsx_Pause(); - NSString* path = [self displayFileSelection:ConfigureParams.Sound.szYMCaptureFileName preferredFileName:@"hatari.wav" - allowedExtensions:[NSArray arrayWithObjects:@"ym", @"wav", nil]]; - if(path) { - GuiOsx_ExportPathString(path, ConfigureParams.Sound.szYMCaptureFileName, sizeof(ConfigureParams.Sound.szYMCaptureFileName)); +// NSString* path = [self displayFileSelection:ConfigureParams.Sound.szYMCaptureFileName preferredFileName:@"hatari.wav" +// allowedExtensions:[NSArray arrayWithObjects:@"ym", @"wav", nil]]; +// if(path) { +// GuiOsx_ExportPathString(path, ConfigureParams.Sound.szYMCaptureFileName, sizeof(ConfigureParams.Sound.szYMCaptureFileName)); // Sound_BeginRecording(ConfigureParams.Sound.szYMCaptureFileName); - } +// } GuiOsx_Resume(); } @@ -589,7 +589,7 @@ static void CustomApplicationMain (int a SDL_KeyboardEvent event; event.type = SDL_KEYDOWN; - event.which = 0; + //event.which = 0; event.state = SDL_PRESSED; event.keysym.sym = SDLK_F11; SDL_PushEvent((SDL_Event*)&event); // Send the F11 key press @@ -658,7 +658,7 @@ static void CustomApplicationMain (int a # undef main #endif - +#if 0 /* Main entry point to executable - should *not* be SDL_main! */ int main (int argc, char **argv) { @@ -686,4 +686,4 @@ int main (int argc, char **argv) #endif return 0; } - +#endif