minor fixes

This commit is contained in:
Nora 2022-03-06 11:58:01 -05:00
commit 4fd47a2b87
2 changed files with 12 additions and 11 deletions

View file

@ -221,7 +221,9 @@ const mpn_board_t MP5_BOARDS[] = {{1, 0x76, {"Toy Dream"}, {"mp5-toy"}},
{3, 0x7A, {"Pirate Dream"}, {"mp5-pirate"}},
{4, 0x7C, {"Undersea Dream"}, {"mp5-undersea"}},
{5, 0x7E, {"Future Dream"}, {"mp5-future"}},
{6, 0x80, {"Bowser Nightmare"}, {"mp5-bowser"}},
{6, 0x80, {"Sweet Dream"}, {"mp5-sweet"}},
{7, 0x82, {"Bowser Nightmare"}, {"mp5-bowser"}},
{NONE, NONE, {""}, ""}};
@ -318,7 +320,8 @@ const mpn_scene_t MP5_GAMESTATES[] = {{NONE, 0x01, {"Title Screen"}, 0},
{NONE, 0x7A, {"Pirate Dream"}, 0},
{NONE, 0x7C, {"Undersea Dream"}, 0},
{NONE, 0x7E, {"Future Dream"}, 0},
{NONE, 0x80, {"Bowser Nightmare"}, 0},
{NONE, 0x80, {"Sweet Dream"}, 0},
{NONE, 0x82, {"Bowser Nightmare"}, 0},
{NONE, NONE, {""}}};

View file

@ -60,6 +60,7 @@
#include "UICommon/AutoUpdate.h"
#include "UICommon/GameFile.h"
#include <qprocess.h>
QPointer<MenuBar> MenuBar::s_menu_bar;
@ -543,15 +544,12 @@ void MenuBar::AddOptionsMenu()
void MenuBar::InstallUpdateManually()
{
auto* updater =
new Updater(this->parentWidget(), "dev", Config::Get(Config::MAIN_AUTOUPDATE_HASH_OVERRIDE));
QString filename = "Replace.bat";
(this);
if (!updater->CheckForUpdate())
{
ModalMessageBox::information(
this, tr("Update"),
tr("You are running the latest version available on this update track."));
}
hide(); // optional
QDesktopServices::openUrl(QUrl("file:///" + filename, QUrl::TolerantMode));
}
void MenuBar::AddHelpMenu()
@ -579,7 +577,7 @@ void MenuBar::AddHelpMenu()
{
help_menu->addSeparator();
help_menu->addAction(tr("&Check for Updates..."), this, &MenuBar::InstallUpdateManually);
help_menu->addAction(tr("&Update Emulator..."), this, &MenuBar::InstallUpdateManually);
}
#ifndef __APPLE__