2nd push for last commit

This commit is contained in:
thrust26 2019-02-15 23:47:33 +01:00
parent e81326eefb
commit 9580385f21
4 changed files with 19 additions and 0 deletions

View File

@ -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:

View File

@ -53,6 +53,12 @@ FBInitStatus Launcher::initializeVideo()
return myOSystem.frameBuffer().createDisplay(title, myWidth, myHeight);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
const string& Launcher::selectedRom()
{
return (static_cast<LauncherDialog*>(myBaseDialog))->selectedRom();
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
const string& Launcher::selectedRomMD5()
{

View File

@ -44,6 +44,11 @@ class Launcher : public DialogContainer
*/
FBInitStatus initializeVideo();
/**
Wrapper for LauncherDialog::selectedRom() method.
*/
const string& selectedRom();
/**
Wrapper for LauncherDialog::selectedRomMD5() method.
*/

View File

@ -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