[ion/simulator] Load nws files sent from the host OS

This commit is contained in:
Romain Goyet
2020-09-11 22:33:52 -04:00
committed by Léa Saviot
parent 0587e41b3c
commit c2f8bbaf3c

View File

@@ -150,6 +150,12 @@ Event getPlatformEvent() {
result = eventFromSDLTextInputEvent(event.text);
break;
}
#if ION_SIMULATOR_FILES
if (event.type == SDL_DROPFILE) {
Simulator::StateFile::load(event.drop.file);
break;
}
#endif
#if !EPSILON_SDL_SCREEN_ONLY
if (event.type == SDL_MOUSEMOTION) {
SDL_Point p;