|
From: Tapio V. <aa...@us...> - 2010-08-12 21:27:22
|
Module: performous
Branch: joinmenu
Commit: 6d07ee1c6b17a303fba25550a8d99614d42efcf7
Author: Fredrik Klasson <fr...@li...>
Date: Tue Aug 3 23:52:29 2010 +0200
[+] std::clog can now be used for verbose messages (visible only if the
verbose arg (-V or --verbose) is passed at run-time).
[+] Refactoring the image loading code:
* Most of the caching logic is moved to cache.{cc,hh}
* SVG caching is now done by image.hh's loadSVG() (with the help of
cache.{cc,hh} and the new isThemeResource in fs.{cc,hh})
* surface.cc's loader() logic has been (ostensibly) simplified and
refactored to use the new filemagic.{cc,hh}; those are
well/overly(?) documented, but in short: (RTS for details ;)
* magic numbers of JPEG's and PNG's are used to identify them
* SVG's are still only tested for their extensions.
---
game/cache.cc | 25 ++++++++++++
game/cache.hh | 45 +++++++++++++++++++++
game/filemagic.hh | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++
game/fs.cc | 5 ++-
game/fs.hh | 3 +
game/image.hh | 16 ++++++-
game/main.cc | 24 +++++++++++
game/surface.cc | 53 +++++++-------------------
8 files changed, 238 insertions(+), 43 deletions(-)
|