diff --git a/src/gui/GameInfoDialog.hxx b/src/gui/GameInfoDialog.hxx index c268ab8f1..ebade6d13 100644 --- a/src/gui/GameInfoDialog.hxx +++ b/src/gui/GameInfoDialog.hxx @@ -55,6 +55,7 @@ class GameInfoDialog : public Dialog, public CommandSender void loadCartridgeProperties(const Properties& props); void updateControllerStates(); + const string getControllerName(const string& type); void eraseEEPROM(); private: diff --git a/src/gui/Launcher.cxx b/src/gui/Launcher.cxx index 57bb5cc16..348e89fbf 100644 --- a/src/gui/Launcher.cxx +++ b/src/gui/Launcher.cxx @@ -53,6 +53,12 @@ FBInitStatus Launcher::initializeVideo() return myOSystem.frameBuffer().createDisplay(title, myWidth, myHeight); } +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +const string& Launcher::selectedRom() +{ + return (static_cast(myBaseDialog))->selectedRom(); +} + // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - const string& Launcher::selectedRomMD5() { diff --git a/src/gui/Launcher.hxx b/src/gui/Launcher.hxx index 607ee7cac..15cee2598 100644 --- a/src/gui/Launcher.hxx +++ b/src/gui/Launcher.hxx @@ -44,6 +44,11 @@ class Launcher : public DialogContainer */ FBInitStatus initializeVideo(); + /** + Wrapper for LauncherDialog::selectedRom() method. + */ + const string& selectedRom(); + /** Wrapper for LauncherDialog::selectedRomMD5() method. */ diff --git a/src/gui/LauncherDialog.hxx b/src/gui/LauncherDialog.hxx index 0aabbf461..704bbbafa 100644 --- a/src/gui/LauncherDialog.hxx +++ b/src/gui/LauncherDialog.hxx @@ -57,6 +57,13 @@ class LauncherDialog : public Dialog int x, int y, int w, int h); virtual ~LauncherDialog() = default; + /** + Get path for the currently selected file + + @return path if a valid ROM file, else the empty string + */ + const string& LauncherDialog::selectedRom(); + /** Get MD5sum for the currently selected file