From 157ce930aedec94c6262118c29264f19d5402a45 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Fri, 5 Jan 2024 22:16:52 +0100 Subject: [PATCH] fixed swapped parameters --- src/emucore/FSNode.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emucore/FSNode.cxx b/src/emucore/FSNode.cxx index f58f22917..8bec7acf7 100644 --- a/src/emucore/FSNode.cxx +++ b/src/emucore/FSNode.cxx @@ -73,7 +73,7 @@ bool FSNode::getAllChildren(FSList& fslist, ListMode mode, bool includeParentDirectory, 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 #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 - if (includeParentDirectory && hasParent()) + if (includeParentDirectory && hasParent() && mode != ListMode::FilesOnly) { FSNode parent = getParent(); parent.setName("..");