Add warning for unresolved conflicts

svn-id: r13823
This commit is contained in:
Nicolas Bacca 2004-05-09 14:48:59 +00:00
parent c21f38bc00
commit 03956df17f

View File

@ -56,6 +56,20 @@ public:
}
};
class CEConflictDialog : public Dialog {
public:
CEConflictDialog::CEConflictDialog(const Common::String &name)
: Dialog(10, 60, 300, 77) {
addButton((_w - kButtonWidth) / 2, 45, "OK", kCloseCmd, '\r'); // Close dialog - FIXME
Common::String conflict("Too many matches for directory ");
conflict += name;
new StaticTextWidget(this, 0, 10, _w, kLineHeight, conflict, kTextAlignCenter);
new StaticTextWidget(this, 0, 20, _w, kLineHeight, "Please fix this :)", kTextAlignCenter);
}
};
CELauncherDialog::CELauncherDialog(GameDetector &detector) : GUI::LauncherDialog(detector) {
}
@ -87,8 +101,12 @@ void CELauncherDialog::addCandidate(String &path, DetectedGameList &candidates)
if (scumm_stricmp(candidateName, candidates[i].name) == 0) {
idx = i;
break;
}
}
if (idx == -1) {
CEConflictDialog conflict(candidateName);
conflict.runModal();
}
}
}
if (idx < 0)