mirror of https://github.com/stella-emu/stella.git
fixed swapped parameters
This commit is contained in:
parent
402ee101c8
commit
5642b4ff56
|
@ -73,7 +73,7 @@ bool FSNode::getAllChildren(FSList& fslist, ListMode mode,
|
||||||
bool includeParentDirectory,
|
bool includeParentDirectory,
|
||||||
const CancelCheck& isCancelled) const
|
const CancelCheck& isCancelled) const
|
||||||
{
|
{
|
||||||
if(getChildren(fslist, mode, filter, includeParentDirectory, true, isCancelled))
|
if(getChildren(fslist, mode, filter, true, includeParentDirectory, isCancelled))
|
||||||
{
|
{
|
||||||
// Sort only once at the end
|
// Sort only once at the end
|
||||||
#if defined(ZIP_SUPPORT)
|
#if defined(ZIP_SUPPORT)
|
||||||
|
@ -165,7 +165,7 @@ bool FSNode::getChildren(FSList& fslist, ListMode mode,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add parent node, if it is valid to do so
|
// Add parent node, if it is valid to do so
|
||||||
if (includeParentDirectory && hasParent())
|
if (includeParentDirectory && hasParent() && mode != ListMode::FilesOnly)
|
||||||
{
|
{
|
||||||
FSNode parent = getParent();
|
FSNode parent = getParent();
|
||||||
parent.setName("..");
|
parent.setName("..");
|
||||||
|
|
Loading…
Reference in New Issue