summaryrefslogtreecommitdiff
path: root/src/common/resourcemanager.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-02-25Merged the example client and server dataThorbjørn Lindeijer1-6/+3
It's easier to just talk about world data and to modify it as a whole. If there is really a need to separate it, a project can still choose to do that (and in whatever suitable way). There is no need to enforce this separation or to do it in our example. Reviewed-by: Erik Schilling
2011-03-23Simplify implementation of fileExistsThorbjørn Lindeijer1-26/+8
2010-11-14Renamed .hpp files into .h for consistency.Yohann Ferreira1-2/+2
Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.
2010-10-14Hopefully fix the logging rotation this time.Yohann Ferreira1-1/+51
Added an extension to the ResMan::exist() function in order to get file existence even not in search path. Reviewed-by: CodyMartin.
2010-05-30Copied basic Lua libs back from tmwserv-data and added dummy dataThorbjørn Lindeijer1-0/+3
The dummy data is currently mostly empty data though, so still nothing to see as far as the example content is concerned. Reviewed-by: Bertram
2010-05-29Only skip the UTF-8 BOM for Lua scriptsThorbjørn Lindeijer1-27/+2
libxml2 should be able to handle files with a BOM fine. Reviewed-by: Bertram
2010-05-21Added a package loader that goes through the resource managerThorbjørn Lindeijer1-1/+10
Fixes issues with finding Lua scripts after changing the way client and server data paths are set up. Lua scripts can now use 'require' with paths relative from the serverDataPath to include other Lua scripts. Reviewed-by: Jared Adams
2010-05-17Fixed CMake build by removing now unused defineThorbjørn Lindeijer1-2/+0
2010-05-16Changed and split up the default location for loading dataThorbjørn Lindeijer1-0/+117
Instead of loading data from a 'data' directory in the current working directory, the server now uses clientDataPath and serverDataPath as specified in the configuration. This removes the need to set up symbolic links in order to merge these two types of data. The default values point to example/clientdata and example/serverdata, where a minimal example world can be developed to make setting up an initial server quick and easy. The XML::Document convenience class was copied over from the client. Also, the ResourceManager is now shared between both servers, since the account client is reading items.xml. Reviewed-by: Jared Adams