From 5ea92a97318fce48b536a351e4794c49f25060fc Mon Sep 17 00:00:00 2001 From: bbraun Date: Mon, 5 Dec 2011 01:57:07 +0000 Subject: [PATCH] Don't use the "Go" button. Just open, select mods, save. --- qtgui/RomPatcher.cpp | 7 +------ qtgui/RomPatcher.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/qtgui/RomPatcher.cpp b/qtgui/RomPatcher.cpp index f482a09..69d5c3f 100644 --- a/qtgui/RomPatcher.cpp +++ b/qtgui/RomPatcher.cpp @@ -32,11 +32,6 @@ RomPatcher::RomPatcher() applyRomdisk->setMinimumSize(mywidth, 10); applyRomdisk->setEnabled(false); - applyModsGo = new QPushButton("Apply Mods", this); - applyModsGo->move(mywidth/2 - (applyModsGo->width())/2, myheight-50); - applyModsGo->setEnabled(false); - connect(applyModsGo, SIGNAL(clicked()), this, SLOT(applyMods())); - setWindowTitle(tr("RomPatcher")); setMinimumSize(mywidth, myheight); @@ -68,7 +63,6 @@ void RomPatcher::open() updateChecksumUI(); applyRomdisk->setEnabled(true); - applyModsGo->setEnabled(true); } } @@ -83,6 +77,7 @@ void RomPatcher::save() } // save the RomCtx structure here + applyMods(); RomErr err = UpdateChecksum(rom); if(err != eSuccess) { fprintf(stderr, "Error updating checksum: %d %s\n", err, GetROMErrString(err)); diff --git a/qtgui/RomPatcher.h b/qtgui/RomPatcher.h index a298633..3a7beb7 100644 --- a/qtgui/RomPatcher.h +++ b/qtgui/RomPatcher.h @@ -25,7 +25,6 @@ private: QLabel *checksum; QRadioButton *applyRomdisk; - QPushButton *applyModsGo; RomCtx *rom; };