mirror of https://github.com/stella-emu/stella.git
Fix 'ROM Audit' mode not getting current active directory.
This commit is contained in:
parent
336b72b2de
commit
725225934a
|
@ -75,9 +75,9 @@ const string& Launcher::selectedRomMD5()
|
|||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
const FilesystemNode& Launcher::currentNode() const
|
||||
const FilesystemNode& Launcher::currentDir() const
|
||||
{
|
||||
return (static_cast<LauncherDialog*>(myBaseDialog))->currentNode();
|
||||
return (static_cast<LauncherDialog*>(myBaseDialog))->currentDir();
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
|
@ -55,9 +55,9 @@ class Launcher : public DialogContainer
|
|||
const string& selectedRomMD5();
|
||||
|
||||
/**
|
||||
Wrapper for LauncherDialog::currentNode() method.
|
||||
Wrapper for LauncherDialog::currentDir() method.
|
||||
*/
|
||||
const FilesystemNode& currentNode() const;
|
||||
const FilesystemNode& currentDir() const;
|
||||
|
||||
/**
|
||||
Wrapper for LauncherDialog::reload() method.
|
||||
|
|
|
@ -261,6 +261,12 @@ const FilesystemNode& LauncherDialog::currentNode() const
|
|||
return myList->selected();
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
const FilesystemNode& LauncherDialog::currentDir() const
|
||||
{
|
||||
return myList->currentDir();
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void LauncherDialog::reload()
|
||||
{
|
||||
|
|
|
@ -74,12 +74,19 @@ class LauncherDialog : public Dialog
|
|||
const string& selectedRomMD5();
|
||||
|
||||
/**
|
||||
Get node for the currently selected directory.
|
||||
Get node for the currently selected entry.
|
||||
|
||||
@return FilesystemNode currently active
|
||||
@return FilesystemNode currently selected
|
||||
*/
|
||||
const FilesystemNode& currentNode() const;
|
||||
|
||||
/**
|
||||
Get node for the current directory.
|
||||
|
||||
@return FilesystemNode (directory) currently active
|
||||
*/
|
||||
const FilesystemNode& currentDir() const;
|
||||
|
||||
/**
|
||||
Reload the current listing
|
||||
*/
|
||||
|
|
|
@ -99,7 +99,7 @@ RomAuditDialog::~RomAuditDialog()
|
|||
void RomAuditDialog::loadConfig()
|
||||
{
|
||||
const string& currentdir =
|
||||
instance().launcher().currentNode().getShortPath();
|
||||
instance().launcher().currentDir().getShortPath();
|
||||
const string& path = currentdir == "" ?
|
||||
instance().settings().getString("romdir") : currentdir;
|
||||
|
||||
|
|
Loading…
Reference in New Issue