aboutsummaryrefslogtreecommitdiff
path: root/engines/unknown-game-dialog.cpp
diff options
context:
space:
mode:
authorLothar Serra Mari2018-04-26 07:23:16 +0200
committerThierry Crozat2018-04-29 21:47:10 +0100
commite3ffdb4ca1a5ec543626b996e905a3c3b74ae653 (patch)
treed620be94b9c760ff0b47e39029b24ba557ce91a8 /engines/unknown-game-dialog.cpp
parent451cf2304f8e27b3f5aab9cfa56d7b9bcdc8ffcf (diff)
downloadscummvm-rg350-e3ffdb4ca1a5ec543626b996e905a3c3b74ae653.tar.gz
scummvm-rg350-e3ffdb4ca1a5ec543626b996e905a3c3b74ae653.tar.bz2
scummvm-rg350-e3ffdb4ca1a5ec543626b996e905a3c3b74ae653.zip
GUI: Disable the button for reporting a unknown game directly to the bugtracker for now
Diffstat (limited to 'engines/unknown-game-dialog.cpp')
-rw-r--r--engines/unknown-game-dialog.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/unknown-game-dialog.cpp b/engines/unknown-game-dialog.cpp
index 5b124a7503..33efdcc771 100644
--- a/engines/unknown-game-dialog.cpp
+++ b/engines/unknown-game-dialog.cpp
@@ -48,11 +48,13 @@ UnknownGameDialog::UnknownGameDialog(const Common::String &reportData, const Com
_reportTranslated += _("Use the button below to copy the required game information into your clipboard.");
}
+#if 0
//Check if we have support for opening URLs and expand the reportTranslated message if needed...
if (g_system->hasFeature(OSystem::kFeatureOpenUrl)) {
_reportTranslated += "\n";
_reportTranslated += _("You can also directly report your game to the Bug Tracker!");
}
+#endif
const int screenW = g_system->getOverlayWidth();
const int screenH = g_system->getOverlayHeight();
@@ -88,6 +90,14 @@ UnknownGameDialog::UnknownGameDialog(const Common::String &reportData, const Com
new GUI::ButtonWidget(this, buttonPos, _h - buttonHeight - 8, copyToClipboardButtonWidth, buttonHeight, _("Copy to clipboard"), 0, kCopyToClipboard);
}
+#if 0
+ // Do not create the button for reporting the game directly to the bugtracker
+ // for now until we find a proper solution for the problem that a change
+ // to our bugtracker system might break the URL generation. A possible approach
+ // for solving this would be to have a ULR under the .scummvm.org (of the type
+ // https://www.scummvm.org/unknowngame?engine=Foo&description=Bar) that would
+ // redirect to whatever our bugtracker system is.
+
//Check if we have support for opening URLs
if (g_system->hasFeature(OSystem::kFeatureOpenUrl)) {
buttonPos -= openBugtrackerURLButtonWidth + 5;
@@ -98,6 +108,7 @@ UnknownGameDialog::UnknownGameDialog(const Common::String &reportData, const Com
Common::replace(_bugtrackerGameData, "\n", "%0A");
}
}
+#endif
// Each line is represented by one static text item.
// TODO: Use a ScrollContainer widget instead of truncated text.