[Scummvm-devel] FS backend needs Windows/MorphOS/... implementation

Max Horn max at quendi.de
Thu Nov 14 07:18:03 CET 2002


On Ender's request, I started working on the "Add Game" functionality 
for the launcher dialog. To this end we needed a file selector dialog.

This dialog needs to browse through the file system. Since that is 
done differently on Unix, Windows, MorphOS, MacOS (no idea about 
DreamCast?), we decided to allow for different file system (FS) 
backends. These are in backends/fs/.

Now the catch: I implemented one for POSIX compatible systems. But 
for Windows, MorphOS (and maybe DreamCast? no idea), we do not have 
implementations. I added a fake empty implementation for windows so 
that at least ScummVM compiles, but some Windows code needs to 
implement the code. Same for MorphOS etc.

I tried to comment the API in backends/fs/fs.h to make it easier to 
implement. But please feel free to ask any question about it either 
here or on IRC.

Note that for the current code, you should only list directories...


In addition to this, there is still the option to use a native 
browser dialog instead of the ScummVM one... e.g. I could do it so 
that on Mac OS X it will use the system's file browser dialog, and we 
only use the ScummVM browser on systems that do not have a "native" 
file selector... this has both pro and cons. Pro: may be easier to 
implement than a FS backend, and may be more powerful. Con: isn't 
integrated into our own GUI (is that very bad? not sure), doesn't 
work everywhere (that's why we need a custom browser anyway). What do 
you think of this?


Max
-- 
-----------------------------------------------
Max Horn
Software Developer

email: <mailto:max at quendi.de>
phone: (+49) 6151-494890




More information about the Scummvm-devel mailing list