aboutsummaryrefslogtreecommitdiff
path: root/gui/launcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r--gui/launcher.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index fd65e37cdd..14e0e96a3b 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -528,6 +528,13 @@ void LauncherDialog::handleKeyUp(Common::KeyState state) {
updateButtons();
}
+void LauncherDialog::handleOtherEvent(Common::Event evt) {
+ Dialog::handleOtherEvent(evt);
+ if (evt.type == Common::EVENT_DROP_FILE) {
+ doGameDetection(evt.path);
+ }
+}
+
bool LauncherDialog::doGameDetection(const Common::String &path) {
// Allow user to add a new game to the list.
// 2) try to auto detect which game is in the directory, if we cannot