diff options
author | Torbjörn Andersson | 2005-04-10 14:33:44 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-04-10 14:33:44 +0000 |
commit | 13dc149ded691e718905049990dd0220230c500e (patch) | |
tree | 188daa35002ceb085c35778f63918e4b66365723 /backends | |
parent | 53a64266c8963f46be68f54fcd1fb89432a02826 (diff) | |
download | scummvm-rg350-13dc149ded691e718905049990dd0220230c500e.tar.gz scummvm-rg350-13dc149ded691e718905049990dd0220230c500e.tar.bz2 scummvm-rg350-13dc149ded691e718905049990dd0220230c500e.zip |
Applied patch #1175374 ("FluidSynth MIDI driver"), with a few documentation
changes. There are a few things that could use a bit more work, and I've
only tested it on my Linux box. I have verified that ScummVM still compiles
when it's disabled, though, so it shouldn't break anything too badly.
svn-id: r17512
Diffstat (limited to 'backends')
-rw-r--r-- | backends/fs/fs.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/backends/fs/fs.h b/backends/fs/fs.h index 302027ba45..3b9254f512 100644 --- a/backends/fs/fs.h +++ b/backends/fs/fs.h @@ -131,10 +131,15 @@ public: virtual FSList listDir(ListMode mode = kListDirectoriesOnly) const = 0; /** - * Compare the name of this node to the name of another. + * Compare the name of this node to the name of another. Directories + * go before normal files. */ virtual bool operator< (const AbstractFilesystemNode& node) const { + if (isDirectory() && !node.isDirectory()) + return true; + if (!isDirectory() && node.isDirectory()) + return false; return scumm_stricmp(displayName().c_str(), node.displayName().c_str()) < 0; } |