empserver/src/lib
Markus Armbruster 0fcd935999 Clean up how game state file sizes are checked
New struct empfile member nent replaces ef_open() parameter nelt.
Cleaner, because the expected size is a property of the file, not of
how it's used.  Also fixes empdump to check file sizes.

Complication: with EFF_CREATE, ef_open() creates an empty file, to be
extended to the correct size.  Callers passed nelt argument -1 along
with EFF_CREATE, to make ef_open() accept the empty file.  Can't do
the same for empfile member nent.  Instead, make ef_open() not check
the (zero) size then.

Replaces commit 5750107b, v4.3.15.
2011-06-25 16:50:06 +02:00
..
commands Drop superfluous parameter vec[] of build_ship() & friends 2011-05-29 15:45:11 +02:00
common Clean up how game state file sizes are checked 2011-06-25 16:50:06 +02:00
empthread Update known contributors comments 2011-04-14 20:21:23 +02:00
gen Update known contributors comments 2011-04-14 20:21:23 +02:00
global Better document how .config must match compiled-in UIDs 2011-06-25 16:45:29 +02:00
lwp Update known contributors comments 2011-04-14 20:21:23 +02:00
player Belatedly update designate's c_form 2011-04-17 17:52:31 +02:00
subs Clean up how game state file sizes are checked 2011-06-25 16:50:06 +02:00
update Update known contributors comments 2011-04-14 20:21:23 +02:00
w32 Fix compile under Window MinGW environment 2011-04-18 19:17:12 +02:00