[SDL] SDL 2.0 : File and internationalisation

Stephane Magnenat nct at ysagoon.com
Sat Mar 15 05:21:03 PST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

> I'm working in such a VFS (in pascal though) and my experience about this
> is that for a game you seek speed so the FS should be read-only, an
> optional output module for saved games and the like it's ok but not mixed
> with the VFS.

In our implementation, the user directory ~/.GAME_NAME is added first. So the 
user's gfx and data, as well as user's savegames are loaded first. The VFS 
support write, and as user normally have acces to their home dir, it works 
fine. In addition, on win9x system, it is possible to save either system wide 
or in user's home (but this require accessing the registry. On NT there is an 
environment var which define user's home).

But I agree SDL should provide a clean framework, and not include all game 
specific features.

> Anyway I'm not sure if implementing a full featured VFS into SDL is a good
> idea, I'd preffer just a framework (handling of the archive/directory
> memory structures, etc) in SDL and then the final developer  can plug-in
> his/her own archive code. Something similar to the RWops of SDL 1.x but for
> archives.

I totally agree. SDL should provide sort of object oriented (like RWops, in C) 
mechanism to dynamically plug-in archive filters.

Steph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+cyiBkK/9a4l97XQRAjehAJ0VW/nVfQu0A2xfYYfaLpHszgDBVQCbBpRy
OTzKJWW4wU4eK9lPHu7kv8k=
=p2Fn
-----END PGP SIGNATURE-----




More information about the SDL mailing list