mirror of
https://github.com/digarok/gsplus.git
synced 2024-11-24 06:34:02 +00:00
Adds code to, theoretically, insert a drag-n-drop disk image.
This is only a theory since SDL2 or OS X 10.12 seem to have a nasty bug where drag-n-drop overfrees some memory and crashes (which happens even without this code in place).
This commit is contained in:
parent
78a1732ca5
commit
c0d628cc80
@ -384,6 +384,14 @@ check_input_events_sdl()
|
||||
SDL_Quit();
|
||||
my_exit(1);
|
||||
break;
|
||||
case SDL_DROPFILE:
|
||||
{
|
||||
char *file = event.drop.file;
|
||||
cfg_inspect_maybe_insert_file(file, 0);
|
||||
SDL_free(file);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user