Major changes in PhysFS, plus some exception fixing.
commit4cb448ad07078a7ba7c1f12c83f6ff7b6f38c924
authorKővágó Zoltán <DirtY.iCE.hu@gmail.com>
Wed, 25 Jun 2008 13:25:59 +0000 (25 15:25 +0200)
committerKővágó Zoltán <DirtY.iCE.hu@gmail.com>
Wed, 25 Jun 2008 13:25:59 +0000 (25 15:25 +0200)
tree7d5a7ad4d845405c1db80b750715493ab9b6ac43
parent7d17d36dff3b53c86d6940a3d365fa96c60556b4
Major changes in PhysFS, plus some exception fixing.

PhysFS now have a new structure. PhysFS (the class) became a
namespace. RWopsFromFile became a simple function in namespace PhysFS, IStream,
Ostream, IStreambuf, OStreambuf are classes in PhysFS namespace. The remaining
functions are now in a class called Manager inside PhysFS. The class is fully
static, so no more need to PhysFS::instance->Stuff(), simply
PhysFS::Manager::Stuff(). Also a set of PhysFS exceptions invented, and most
functions throw exceptions, so don't forget to write exception handler, if you
need it! Also, I've added a lot of documentation, so have a look at the Doxygen
documentation for more info.

I've also included a library, ProtectStr to access C-style strings safely. It's
dual licensed (GPL, WTFPL) because I think, it's so basic and useful, that
other projects could use it too, without limitations..
31 files changed:
src/CAudio.cpp
src/CEngine.cpp
src/CGraphics.cpp
src/exceptions/base.hpp
src/font/renderer.cpp
src/font/sdl_ttf_font.cpp
src/font/sdl_ttf_font.hpp
src/init.cpp
src/init.h
src/lisp/lisp.hpp
src/lisp/list_iterator.cpp
src/lisp/parser.cpp
src/lisp/writer.cpp
src/loadSave.cpp
src/main.h
src/mapEditor.cpp
src/physfs/exception.hpp [new file with mode: 0644]
src/physfs/manager.cpp [new file with mode: 0644]
src/physfs/manager.hpp [new file with mode: 0644]
src/physfs/physfs.cpp [deleted file]
src/physfs/physfs.hpp [deleted file]
src/physfs/rwops.cpp [new file with mode: 0644]
src/physfs/rwops.hpp [new file with mode: 0644]
src/physfs/stream.cpp [new file with mode: 0644]
src/physfs/stream.hpp [new file with mode: 0644]
src/physfs/wscript
src/protectstr/protectstr.cpp [new file with mode: 0644]
src/protectstr/protectstr.hpp [new file with mode: 0644]
src/protectstr/wscript [new file with mode: 0644]
src/tinygettext/tinygettext.cpp
src/wscript