mirror of https://github.com/stella-emu/stella.git
2nd push for last commit
This commit is contained in:
parent
e81326eefb
commit
9580385f21
|
@ -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:
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -44,6 +44,11 @@ class Launcher : public DialogContainer
|
|||
*/
|
||||
FBInitStatus initializeVideo();
|
||||
|
||||
/**
|
||||
Wrapper for LauncherDialog::selectedRom() method.
|
||||
*/
|
||||
const string& selectedRom();
|
||||
|
||||
/**
|
||||
Wrapper for LauncherDialog::selectedRomMD5() method.
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue