summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/package.h
Commit message (Collapse)AuthorAgeFilesLines
* Port to OpenSolaris (Dyson/Illumos).Adam Borowski2013-05-051-33/+33
| | | | | | This might be portability for portability sake (Solaris is so dead), but come on, we can't disappoint Igor Pashev by porting our stuff later than several hours after the first installable build of Dyson is released :)
* Don't fsync() --no-save saves.Adam Borowski2012-09-221-0/+1
| | | | | The temp file is still needed because the "game" might move through levels, but a pre-deleted file is quite unlikely to require durable storage.
* Use std namespace.Raphael Langella2012-08-261-20/+20
| | | | | | | | | | | | | 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.
* An undocumented command-line option, --no-save.Adam Borowski2012-07-101-0/+1
| | | | | | | | It uses a temporary file for the save file. This fixes canned tests breaking if a run has been aborted (and thus a save by that name exists), and also allows concurrently running multiple instances of the same test. Implies wizmode.
* Allow deleting/overwriting save chunks while they're being read.Adam Borowski2012-06-121-3/+3
| | | | | | | | | | | Crawl itself doesn't ever read and write at the same time (I doubt it ever does more than one operation at once, too), but it just feels wrong to have a known data-loss bug in code that's separable from the rest of Crawl. By reusing already instantiated STL templates, this actually reduces binary size somewhat. This reverts commit ed9508da27c3ef0803bfd1e600465a5eb6566441.
* Do the whole of X[] save handling as one transaction.Adam Borowski2012-06-111-0/+2
| | | | | | | | | Actually, not even one as it won't be committed until the next time you go to a new level. Subsequent writes of a given level in a transaction overwrite the old uncommitted version. This sadly can double the size of saves, if someone views all existing levels in a game.
* Make cppcheck a bit happier.Adam Borowski2011-07-051-1/+1
|
* Try to fight fragmentation by choosing the best-fitting block.Adam Borowski2011-06-081-1/+1
| | | | | | Unlike my attempt a year ago, this version actually tries a block that fits, rather than one that's just below what we need, so a tiny new fragment is created in most cases, making things worse :p
* Show some internal info about saves.Adam Borowski2011-06-081-0/+7
|
* Merge branch 'master' into unicodeAdam Borowski2011-01-111-1/+3
|\ | | | | | | Conflicts galore...
| * Adjust the max chunk name in --edit-save as well.Adam Borowski2011-01-081-0/+2
| |
| * Allow handling old save package formats.Adam Borowski2011-01-071-1/+1
| |
* | Merge branch 'master' into unicodeAdam Borowski2010-10-151-0/+3
|\|
| * Don't leak file descriptors when trying to open a save file fails.Adam Borowski2010-10-071-0/+1
| | | | | | | | | | | | The save browser is likely to open many, especially if you have a lot of old saves after a compat break. Actually running out of descriptors would require a bizarre case, but a bug is a bug...
| * Move unlinking save files to the save code itself.Adam Borowski2010-10-071-0/+2
| | | | | | | | | | | | This fixes --edit-save foo repack on Windows, and is safer in case the player's name ever changes (might be possible if we add that "read morgue" functionality).
* | Fix tiles compilation.Adam Borowski2010-09-261-1/+0
|/ | | | | | I went the lazy way and just stuck stdint.h at the beginning, we include it from a number of basic and/or platform-dependent headers so was pulled by AppHdr.h anyway.
* Store the "lua" subfile as a chunk.Adam Borowski2010-09-041-0/+1
|
* Use a pointer instead of a reference, since you.save will be everywhere.Adam Borowski2010-09-031-3/+3
|
* Allow "aborting" a save file, to bail out safely, or prepare for discarding.Adam Borowski2010-09-031-0/+2
| | | | | It effectively reverts to the last commit. This is the safest thing to do in an error, and if we're going to delete the save file, it doesn't matter.
* Add public constructors for chunk readers/writers, so no ref handling is needed.Adam Borowski2010-09-021-2/+4
|
* The transactional save packager.Adam Borowski2010-08-201-0/+96