summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
AgeCommit message (Collapse)AuthorFilesLines
2008-12-17Code reformattingBjørn Lindeijer1-6/+6
Mainly making sure 'const std::string &' is used everywhere instead of 'std::string const &'. The former has always been the preferred order in this project.
2008-12-14Code reformattingBjørn Lindeijer1-33/+20
I wish I had never fallen for this weird style, and I hope removing it will prevent others from introducing new code like this. :-) (cherry picked from eAthena branch, commit 68760426532b9ca4c6939d7a7b8faa1586ee82e0) Conflicts: src/being.cpp src/being.h src/gui/tabbedcontainer.cpp src/particle.cpp src/particle.h
2008-12-13Delete resources after removing from the orphan list, to avoid double frees ↵Fate1-1/+1
during recursion
2008-11-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer1-2/+0
I don't know why we dealt with these things for so long. Did we ever get anything out of it?
2008-11-04Merged revisions 4332 via svnmerge from Bjørn Lindeijer1-2/+1
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/branches/0.0 ........ r4332 | b_lindeijer | 2008-06-05 09:33:12 +0200 (Thu, 05 Jun 2008) | 5 lines Added command line argument to specify the update host (-H). Also, to avoid problems when files with the same name are served by different update hosts, the updates are now stored in an update host specific directory. Based on a patch by Sanga. ........
2008-03-23Merged revisions 3823,3825-3826,3829,3831-3839,3841-3842 via svnmerge from Bjørn Lindeijer1-0/+21
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/branches/0.0 ........ r3823 | crush_tmw | 2007-12-28 19:36:58 +0100 (Fri, 28 Dec 2007) | 1 line Added the possibility to assign particle effects to monsters in the monster database. Added flame particle effect to fire goblin as a proof of concept. ........ r3826 | crush_tmw | 2007-12-30 01:02:14 +0100 (Sun, 30 Dec 2007) | 1 line Added a key for targeting the nearest player character based on patches by Trinexx. Some mapping fixes at snake dungeon map. ........ r3839 | the_enemy | 2008-01-13 17:28:50 +0100 (Sun, 13 Jan 2008) | 1 line Fixed non-default location music loading ........ r3842 | crush_tmw | 2008-01-14 11:48:13 +0100 (Mon, 14 Jan 2008) | 1 line ixed an error in Davids last commit (couldn't compile that way). ........
2008-02-20Merged revisions 3790,3799,3801-3807,3809-3810,3812-3813,3815-3816,3818-3821 ↵Bjørn Lindeijer1-2/+6
via svnmerge from https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/branches/0.0 ........ r3790 | b_lindeijer | 2007-12-18 14:54:17 +0100 (Tue, 18 Dec 2007) | 3 lines Remember to delete the progressbar and label also when the game was not started. ........ r3801 | b_lindeijer | 2007-12-21 12:56:23 +0100 (Fri, 21 Dec 2007) | 2 lines Fixed shop list box not to scroll up when the selection is removed. ........ r3802 | b_lindeijer | 2007-12-21 13:37:17 +0100 (Fri, 21 Dec 2007) | 2 lines Added logging of error on PHYSFS_addToSearchPath. ........ r3803 | b_lindeijer | 2007-12-21 15:56:38 +0100 (Fri, 21 Dec 2007) | 3 lines Fixed inventory size not matching the size assumed by eAthena and related memory corruption and increased default chat log length. ........ r3804 | the_enemy | 2007-12-21 16:07:20 +0100 (Fri, 21 Dec 2007) | 1 line Attempted to fix client freeze when unable to connect to update host, and added exit dialog ........ r3805 | b_lindeijer | 2007-12-22 16:24:14 +0100 (Sat, 22 Dec 2007) | 2 lines Updated version to 0.0.24. Release data set to tomorrow, we'll see. ........ r3806 | b_lindeijer | 2007-12-22 21:42:35 +0100 (Sat, 22 Dec 2007) | 2 lines Make sure chat messages are also trimmed for the local player. ........ r3809 | crush_tmw | 2007-12-23 03:16:53 +0100 (Sun, 23 Dec 2007) | 1 line Particle images are now reference-counted properly. Avoided attempts to load "data/graphics/" when a monster or equipment piece has no sprite. Error placeholder is now used when attempting to load a sprite definition file that doesn't exist. ........ r3810 | b_lindeijer | 2007-12-24 02:20:42 +0100 (Mon, 24 Dec 2007) | 2 lines Updated release date. ........ r3812 | the_enemy | 2007-12-24 15:16:15 +0100 (Mon, 24 Dec 2007) | 1 line Minor update, fixed disconnection dialog ........ r3813 | b_lindeijer | 2007-12-24 15:45:34 +0100 (Mon, 24 Dec 2007) | 2 lines Fixed compile warning. ........ r3816 | b_lindeijer | 2007-12-25 13:31:21 +0100 (Tue, 25 Dec 2007) | 2 lines Fixed year. :) ........ r3818 | b_lindeijer | 2007-12-25 23:11:55 +0100 (Tue, 25 Dec 2007) | 2 lines Updated CMake file. ........ r3821 | b_lindeijer | 2007-12-26 19:06:15 +0100 (Wed, 26 Dec 2007) | 2 lines Fixed year in README too. ........
2007-11-16Delayed resource deletion by 30 seconds.Guillaume Melquiond1-13/+66
2007-11-04Tightened palette handling.Guillaume Melquiond1-7/+7
2007-11-03Added automatic recoloring of images. Inspired by fungos' ideas (PR #41).Guillaume Melquiond1-11/+38
2007-10-19Factored code between resource handlers. Implemented failure-friendly sprite ↵Guillaume Melquiond1-83/+61
loader.
2007-10-18Removed player looks from generic beings. Prevented client termination on ↵Guillaume Melquiond1-0/+7
missing sprites. Merged weapon-type and attack-type fields for items.
2007-03-24Merged 0.0 changes from revision 3177 to 3234 to trunk.Bjørn Lindeijer1-11/+11
2007-03-11Merged 0.0 changes from revision 3065 to 3177 to trunk.Bjørn Lindeijer1-0/+27
2006-12-11Merged 0.0 changes from revision 2825 to 2898 to trunk.Bjørn Lindeijer1-13/+48
2006-11-05Merged 0.0 changes from revision 2800 to 2825 to trunk.Bjørn Lindeijer1-4/+4
2006-07-30Updated TMW to be compatible with Guichan 0.5.0 (merged from guichan-0.5.0Bjørn Lindeijer1-0/+17
branch).
2006-07-25Added support for writing log to standard output.Bjørn Lindeijer1-1/+4
2006-07-24Implemented caching of spritesets, including a lot of cleanups to the newBjørn Lindeijer1-24/+50
animation system. Action now refers to the Spriteset directly and AnimatedSprite refers to the current Action directly instead of using the std::map with a std::string constantly. Some methods and parameters are marked as const. The READ_PROP macro was replaced by static methods. Warnings are logged when unnamed actions are defined or when actions refer to undefined imagesets. Code is more tolerant towards missing actions.
2006-07-18Updated the updating system. It will now only load those updatesBjørn Lindeijer1-30/+3
specified in the downloaded resources.txt file, and in the order in which they are mentioned (the top one being the most significant).
2006-03-19Removed some useless null pointer checks.Björn Steinbrink1-4/+2
2006-01-31Made ResourceManager a friend of Resource to avoid looping over decRef, ↵Björn Steinbrink1-15/+12
which returns void now.
2005-10-19Fix empty lines not being read from text files.Björn Steinbrink1-8/+4
2005-10-16Use the ResourceManager to get spritesets.Björn Steinbrink1-0/+18
2005-10-07Modified finding NPC as by timonator's suggestion in order to allow NPCs to beBjørn Lindeijer1-2/+0
clicked on their heads too. Also made start to tile engine improvement by adding the Sprite class that is now used by the floor items for being displayed on the map. Finally added documentation to Item class and splitted out Properties class from Map.
2005-10-05Fixed some resource cleanup and memory leaks. Also changed the way danglingBjørn Lindeijer1-7/+8
references to resources are reported to be more informative.
2005-09-29Moved tileset management into the map class and made sure the tilesets areBjørn Lindeijer1-7/+14
cleaned up properly on switching maps.
2005-09-12Added SDLImageLoader class to make guichan support physfs.Björn Steinbrink1-7/+0
2005-08-29Clean up of the ConfigListener and Resource interfaces.Björn Steinbrink1-4/+3
2005-08-25Fixed line length in ChangeLog and some other small changes.Bjørn Lindeijer1-8/+5
2005-08-13Huge header cleanup to reduce dependencies and compile time.Björn Steinbrink1-10/+8
2005-08-04Added a method to the resource mananger to determine the real path of a file ↵Björn Steinbrink1-0/+7
in the search path. Added a first user of that function. Minor cleanup.
2005-07-30Fixed check for updates directory. Moved search/write path setup from ↵Björn Steinbrink1-36/+49
resourcemanager to main initialization.
2005-07-28Fix usage of a wrong dir-separator.Björn Steinbrink1-1/+1
2005-07-27Added support for updates to the resource manager.Björn Steinbrink1-59/+25
2005-07-15Fixed compiler warnings and added plain text file loading to resource manager.Bjørn Lindeijer1-0/+29
2005-07-14Committed resource manager cleanup patch by Doener, and properly implementedBjørn Lindeijer1-56/+18
the custom mouse cursor option, which is now also dynamically changeable through the setup window.
2005-07-12windows compilation fixesEugenio Favalli1-0/+2
2005-07-11Committed header dependencies reducing patch by DoenerBjørn Lindeijer1-1/+0
2005-06-24Adding missing #include. (Thanks to Scandium).Yohann Ferreira1-0/+2
2005-06-23Finishing resource manager ability to clean up resources. Still work to do onBjørn Lindeijer1-33/+45
resources other than images.
2005-06-21Image loader now automatically determines whether to use masked drawing orBjørn Lindeijer1-6/+6
an alpha layer.
2005-05-16This little workaround necessary to prevent crashes for now.Bjørn Lindeijer1-1/+1
2005-05-14Added framerate limiter, off by default (0 means no limit)Bjørn Lindeijer1-1/+1
2005-05-02Made config.xml, tmw.log and chatlog.txt always appear in ~/.tmw on *nix.Bjørn Lindeijer1-13/+13
2005-05-01- Added installation of game data, install required on *nix systemsRodney Dawes1-0/+1
- Updated desktop file to work better - Install the desktop file to the standard location - Install the icon as tmw.png in the standard pixmaps data dir
2005-04-26Changed keyboard control to integrate better with mouse walk, changed locationBjørn Lindeijer1-4/+7
of packet.list and chatlog.txt and removed name from player chat "balloon".
2005-04-19A few random changes.Bjørn Lindeijer1-6/+3
2005-04-10Resource manager can now load sfx and music as samples.Eugenio Favalli1-4/+46
(added a new sfx to test the sound engine)
2005-03-26Images are now exclusively loaded through PhysFS, and Tiled maps should loadBjørn Lindeijer1-38/+31
fine again.