mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Starts working on SDL drag-and-drop support for snapshots.
This commit is contained in:
parent
cecdf8584a
commit
6a052e1900
@ -74,7 +74,7 @@
|
||||
</CommandLineArgument>
|
||||
<CommandLineArgument
|
||||
argument = "--new=amstradcpc"
|
||||
isEnabled = "NO">
|
||||
isEnabled = "YES">
|
||||
</CommandLineArgument>
|
||||
<CommandLineArgument
|
||||
argument = ""/Users/thomasharte/Library/Mobile Documents/com~apple~CloudDocs/Desktop/Soft/ColecoVision/Galaxian (1983)(Atari).col""
|
||||
@ -106,11 +106,11 @@
|
||||
</CommandLineArgument>
|
||||
<CommandLineArgument
|
||||
argument = "--rompath=/Users/thomasharte/Projects/CLK/ROMImages"
|
||||
isEnabled = "NO">
|
||||
isEnabled = "YES">
|
||||
</CommandLineArgument>
|
||||
<CommandLineArgument
|
||||
argument = "--help"
|
||||
isEnabled = "YES">
|
||||
isEnabled = "NO">
|
||||
</CommandLineArgument>
|
||||
<CommandLineArgument
|
||||
argument = "--model=cpc6128"
|
||||
|
@ -987,8 +987,11 @@ int main(int argc, char *argv[]) {
|
||||
break;
|
||||
|
||||
case SDL_DROPFILE: {
|
||||
Analyser::Static::Media media = Analyser::Static::GetMedia(event.drop.file);
|
||||
machine->media_target()->insert_media(media);
|
||||
const Analyser::Static::Media media = Analyser::Static::GetMedia(event.drop.file);
|
||||
if(!media.empty()) {
|
||||
machine->media_target()->insert_media(media);
|
||||
break;
|
||||
}
|
||||
} break;
|
||||
|
||||
case SDL_TEXTINPUT:
|
||||
|
Loading…
Reference in New Issue
Block a user