diff --git a/ion/src/simulator/shared/events_platform.cpp b/ion/src/simulator/shared/events_platform.cpp index 0cffa62e2..e1f322820 100644 --- a/ion/src/simulator/shared/events_platform.cpp +++ b/ion/src/simulator/shared/events_platform.cpp @@ -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;