1
0
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:
Thomas Harte 2021-04-30 22:56:13 -04:00
parent cecdf8584a
commit 6a052e1900
2 changed files with 8 additions and 5 deletions

View File

@ -74,7 +74,7 @@
</CommandLineArgument>
<CommandLineArgument
argument = "--new=amstradcpc"
isEnabled = "NO">
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "&quot;/Users/thomasharte/Library/Mobile Documents/com~apple~CloudDocs/Desktop/Soft/ColecoVision/Galaxian (1983)(Atari).col&quot;"
@ -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"

View File

@ -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: