summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_file.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove stuffNicholas Feinberg2014-07-291-1/+1
| | | | | | | .cc, moving its contents into the new stepdown.cc and strings.cc. (The latter also got many donations from libutil.h.) Down with stuff! Up the new flesh!
* Axe a buttload of useless #includes.Adam Borowski2013-11-031-1/+0
| | | | | Can't test Android, MSVC or Mac, but a very brief glance at the diff suggests it's unlikely they're affected.
* Drop a lot of unnecessary braces.Adam Borowski2012-10-241-2/+0
| | | | | The perl one-liner I use for this had a bug where it didn't match "else" at the end of a line (ie, most of the time).
* Remove unnecessary includes from header files.Jay3.14152012-10-231-0/+1
| | | | | | | | | | For most header files, this only saves on having to recompile a small number of source files, but there are also a few headers where small changes would now take significantly less time. This is most obvious for the Tiles build for which the dependencies have been greatly reduced, so that the only additional includes when compared to console are strictly library or tile related.
* Use std namespace.Raphael Langella2012-08-261-16/+13
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-10/+10
|
* Update marker save compatibility, wrapper for TAG_MAJOR_VERSION.Jude Brown2011-11-111-0/+7
|
* Fix broken fog machine loading (Elynae).Jude Brown2011-11-021-0/+10
| | | | | | | | | | | | This now introduces the capacity to check the minor version of a save file via file.minor_version(th). Unfortunately, the enum in tag-version.h isn't accessible, so you have to go off the numeric values. This may introduce issues on updating the major version. Don't forget to clear lm_fog.lua too! May cause other bugs, but none I've noticed so far.
* Use FunctionWrapper objects instead of raw functions for all markers.Darshan Shaligram2011-01-091-22/+2
| | | | | | | All markers that use function parameters now take FunctionWrappers instead of raw functions. FunctionWrappers are saved by name instead of saving the function's Lua bytecode, thus fixing the save incompatibility issue due to Lua bytecode being incompatible across platforms.
* Massive spacing fixes: "( spaces after parentheses )".Adam Borowski2010-10-151-7/+7
| | | | | | I did review it manually to find places where they made sense (like some tables), but for a massive sed job like this there might be places that I missed.
* Make file_unmarshall_boolean Lua-accessible.Robert Vollmert2010-07-301-0/+1
|
* s/marshallLong/marshallInt/, since this confusion tends to cause bugs.Adam Borowski2010-06-201-2/+2
| | | | | | | Actually, it should be named marshallInt32_t as that's what it does, but that's hard to read, no architecture with smaller ints can conceivably run Crawl and the only architecture with bigger ints is long dead. And in even in such a case, everything will be fine except for name confusion...
* Bring sanity to enums by making them diffable/patchable.Adam Borowski2010-06-081-1/+1
|
* Protect against symlink attacks when writing morgues and dumps.Adam Borowski2010-03-041-1/+1
|
* Move .des files to dat/des, and allow them to be placed in subdirectories of ↵Darshan Shaligram2010-01-211-0/+22
| | | | dat/des.
* Remove libutil.h from AppHdr.h and include explicitly.Robert Vollmert2010-01-201-0/+1
| | | | | | | Also extract unwind_var template to unwind.h. The latter is now included from AppHdr.h, though it needn't really be. This means it's now possible to use coord_def in libutil.h.
* Add -script option to Crawl to run a Lua script. Scripts are similar to ↵Darshan Shaligram2010-01-091-1/+18
| | | | | | tests, but can be parameterised. Add a script to generate 150 level at a named place and report on all the monsters generated there.
* loadmaps.lua auto-loads .des files in dat.Darshan Shaligram2009-11-011-7/+33
|
* cosmetic: strip trailing whitespaceSteven Noonan2009-10-201-2/+2
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Move remaining libraries from clua.cc.Robert Vollmert2009-10-201-1/+23
| | | | That's l_file.cc, l_food.cc, l_global.cc.
* Move clua crawl_lib from clua to l_crawl.cc.Robert Vollmert2009-10-201-1/+1
| | | | To avoid name clashes, rename dlua libs from *_lib to *_dlib.
* Split file_lib out.Robert Vollmert2009-10-191-0/+139
Move lua library headers to separate l_libs.h, fixing another compilation error...