From da335007e71380fb6b0fd2dba3819844a18880e4 Mon Sep 17 00:00:00 2001 From: byuu <2107894+byuu@users.noreply.github.com> Date: Mon, 23 Mar 2020 01:28:48 +0900 Subject: [PATCH] Remove documentation website link. --- bsnes/target-bsnes/presentation/presentation.cpp | 5 +---- bsnes/target-bsnes/presentation/presentation.hpp | 4 +--- bsnes/target-bsnes/program/platform.cpp | 7 +------ 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/bsnes/target-bsnes/presentation/presentation.cpp b/bsnes/target-bsnes/presentation/presentation.cpp index 29bea86b..154f1a71 100644 --- a/bsnes/target-bsnes/presentation/presentation.cpp +++ b/bsnes/target-bsnes/presentation/presentation.cpp @@ -178,9 +178,6 @@ auto Presentation::create() -> void { manifestViewer.setIcon(Icon::Emblem::Text).setText("Manifest Viewer ...").onActivate([&] { toolsWindow.show(3); }); helpMenu.setText(tr("Help")); - documentation.setIcon(Icon::Application::Browser).setText({tr("Documentation"), " ..."}).onActivate([&] { - invoke("https://byuu.org/doc/bsnes"); - }); aboutSameBoy.setIcon(Icon::Prompt::Question).setText({tr("About SameBoy"), " ..."}).onActivate([&] { AboutDialog() .setName("SameBoy") @@ -193,7 +190,7 @@ auto Presentation::create() -> void { .setAlignment(*this) .show(); }); - about.setIcon(Icon::Prompt::Question).setText({tr("About bsnes"), " ..."}).onActivate([&] { + aboutBsnes.setIcon(Icon::Prompt::Question).setText({tr("About bsnes"), " ..."}).onActivate([&] { AboutDialog() .setName(Emulator::Name) .setLogo(Resource::Logo) diff --git a/bsnes/target-bsnes/presentation/presentation.hpp b/bsnes/target-bsnes/presentation/presentation.hpp index 91a4d367..ce5e324c 100644 --- a/bsnes/target-bsnes/presentation/presentation.hpp +++ b/bsnes/target-bsnes/presentation/presentation.hpp @@ -118,10 +118,8 @@ struct Presentation : Window { MenuItem stateManager{&toolsMenu}; MenuItem manifestViewer{&toolsMenu}; Menu helpMenu{&menuBar}; - MenuItem documentation{&helpMenu}; - MenuSeparator helpSeparator{&helpMenu}; MenuItem aboutSameBoy{&helpMenu}; - MenuItem about{&helpMenu}; + MenuItem aboutBsnes{&helpMenu}; VerticalLayout layout{this}; HorizontalLayout viewportLayout{&layout, Size{~0, ~0}, 0}; diff --git a/bsnes/target-bsnes/program/platform.cpp b/bsnes/target-bsnes/program/platform.cpp index 9d2dc96e..c316c7c3 100644 --- a/bsnes/target-bsnes/program/platform.cpp +++ b/bsnes/target-bsnes/program/platform.cpp @@ -88,12 +88,7 @@ auto Program::open(uint id, string name, vfs::file::mode mode, bool required) -> } if(!result && required) { - if(MessageDialog({ - "Error: missing required data: ", name, "\n\n", - "Would you like to view the online documentation for more information?" - }).setAlignment(*presentation).error({"Yes", "No"}) == "Yes") { - presentation.documentation.doActivate(); - } + MessageDialog({"Error: missing required data: ", name}).setAlignment(*presentation).error(); } return result;