Yet Another RWops Example:

I meant to mention this the other day; I’ve got some code to glue
PhysicsFS to SDL’s RWops system. It’s not overly-commented, but it’s a
pretty much as straightforward as you can get for creating a RWops
implementation of your own.

The interface for the outside world is:
http://cvs.icculus.org/horde/chora/co.php/extras/physfsrwops.h?rt=physfs&r=1.1

The actual glue code:
http://cvs.icculus.org/horde/chora/co.php/extras/physfsrwops.c?rt=physfs&r=1.1

This code is being used in SDL_sound’s test app, playsound, so you can
playback sound files in zipfiles without unpacking them first. :slight_smile:

Questions, comments, and improvements are always welcome.

–ryan.