Enno Rehling
c2634bd095
move readorders to orderfile module.
2017-10-07 19:44:23 +02:00
Enno Rehling
ecce8e5d91
Revert "refactor: extract a read_order function."
...
This reverts commit 8b39133dbf
.
2017-10-07 18:06:54 +02:00
Enno Rehling
8b39133dbf
refactor: extract a read_order function.
2017-09-26 17:07:49 +02:00
Enno Rehling
4e5f1d05ce
Be very strict about C standards.
...
Compile with -std=c89 in gcc.
remove all // comments (they are nice, but unnecessary).
variables only declared at start of block.
various pedantery.
backwards compatible va_copy for pre-C99 gcc.
2017-02-18 21:15:14 +01:00
Enno Rehling
9e9cd6ae79
try loading config.lua and custom.lua files, if they exist.
2017-01-22 18:01:09 +01:00
Enno Rehling
cbb18edb8f
declutter config.h, use it sparingly.
2016-11-17 10:38:09 +01:00
Enno Rehling
360776f8b9
eliminate data_version variables, issue #479
2016-11-15 23:45:14 +01:00
Enno Rehling
03a94d1264
remove unused and broken backup functionality
2016-11-14 01:35:45 +01:00
Enno Rehling
0472ac761e
declutter save.h (items, spellbooks)
2016-11-14 01:22:50 +01:00
Enno Rehling
d28d3f4690
move read/write_items to item.c.
...
fix bad memset in attrib.test.c.
2016-11-14 01:00:48 +01:00
Enno Rehling
0eaa750ef4
move read/write_attribs to attrib.h, too
2016-11-13 19:47:36 +01:00
Enno Rehling
11b122048b
reduce dependency on save.h
...
moving a_write* functions to attrib.h, which was most of the reason everyone and their mom include save.h
2016-11-13 19:40:38 +01:00
Enno Rehling
663ad17b5a
extract read_region and test that it fixes bad names.
2016-11-12 01:03:07 +01:00
Enno Rehling
ec787743f0
extract read_faction and test that it repairs bad names
2016-11-12 00:47:25 +01:00
Enno Rehling
5032d44af4
refactor: extract read_/write_ship functions.
...
add test: bad names are cleaned up (failing).
2016-11-11 22:25:56 +01:00
Enno Rehling
599c422852
refactor: extract read_/write_building.
...
add a failing test for conversion of bad names.
2016-11-11 21:41:25 +01:00
Enno Rehling
55df24ffb8
all code review nitpicks fixed.
2016-09-16 16:54:41 +02:00
Enno Rehling
e200952e87
new version numbering in version.h
...
eliminate buildno.h
TODO: update build scripts
2016-09-10 17:41:44 +02:00
Enno Rehling
01ecc72f2d
fix a FIXME: include gamedata.h directly, not through save.h
2016-04-09 18:22:20 +02:00
Enno Rehling
81a2dd9d21
extract read_game and write_game (take a gamedata argument, not filenames)
2016-02-25 19:12:38 +01:00
Enno Rehling
2e41c4972c
read_spellbook, use gamedata.version
...
github issue #479
2016-02-24 11:48:46 +01:00
Enno Rehling
7f6ced99b9
attrib.read gets a gamedata object (remove dependency on global.data_version)
2016-02-24 11:44:18 +01:00
Enno Rehling
6ca81646eb
extract gamedata into a separate file.
2016-02-24 11:38:09 +01:00
Enno Rehling
e6f3dc8b85
Merge branch 'master' into develop
...
Conflicts:
scripts/run-turn.lua
src/buildno.h
src/kernel/group.c
src/kernel/save.c
src/kernel/save.test.c
src/kernel/version.h
src/util/password.c
src/util/password.test.c
tests/run-turn.sh
2016-02-23 10:47:33 +01:00
Enno Rehling
9ac05666ea
add a test for succesful read/write of password
...
TODO: do this for different datafile versions (BADCRYPT, etc)
2016-02-21 10:10:26 +01:00
Enno Rehling
abc3caa6d1
optimized storage of attribs.
...
save the hash instead of the name and save a few bytes.
2016-02-09 00:28:23 +01:00
Enno Rehling
024e4c45ca
fix a bug introduced by f78fe842
(CID 22443)
2015-11-04 10:40:53 +01:00
Enno Rehling
9b9e038438
press F3 to save game in editor.
2015-05-12 17:18:51 -07:00
Enno Rehling
c54cbfd472
fix copyright notice
2015-01-30 22:10:29 +01:00
Enno Rehling
abca25d1d5
fix indentation in every file
...
fix copyright date
remove vi ts=2 code
remove a couple of superfluous extern declarations
2015-01-30 20:37:14 +01:00
Enno Rehling
dbf60a7ce5
update to latest version of storage library.
2014-11-03 22:29:04 +01:00
Enno Rehling
27f94783bc
fix gcc build, forward-declare structs in the header.
...
MSVC allows structs to be declared in a function signature, gcc wants
to know about them earlier.
2014-11-01 13:10:22 +01:00
Enno Rehling
2bec7e2bbe
save game id in the data file, not name of XML file
2014-07-23 11:54:51 +02:00
Enno Rehling
46f6628a08
remove obsolete commands (PRAY) and parameters
2014-06-21 07:34:36 -07:00
Enno Rehling
a9f0538d8e
keyword_t and direction_t are moving into their own module.
...
direction parser gets new initialization function, for use in jsonconf later.
add unit tests for directions.
2014-06-15 18:34:39 -07:00
Enno Rehling
03c247c788
I am killing the core/ directory.
...
Lots of files are moving to a new location in src/
Some intersting CMake changes.
2014-02-18 05:45:00 +01:00