Commit graph

15 commits

Author SHA1 Message Date
Anders Jenbo
8eecc53b41 Clean up pfile.cpp 2019-05-02 00:16:46 +01:00
galaxyhaxz
4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
Anders Jenbo
629dfa2083 Compile as c (#522)
* Reorder lib

This is the orhter that they appear in the exe imports

* Make includes C compatible

cursor.h: SetCursor conflicts with existing function
engine.h: CelDecDatLightEntry and Cel2DecDatLightEntry use by reference
*&
objects.h: DeleteObject conflicts with existing function

* Start compiling select files as C

* Clean up

pfile still emits warnings when parsed as C:
err:msvcrt:demangle_datatype Unknown type @
err:msvcrt:demangle_datatype Unknown type @
2018-12-30 01:47:51 +01:00
Anders Jenbo
c46d92be7a Format save game related files 2018-10-22 01:49:43 +02:00
Andrew Dunstan
22dc793b7d Clean remaining pfile.cpp functions
full file is binary exact except for pfile_create_player_description (minor diff)
2018-10-06 14:13:19 +02:00
squidcc
b9eca92474 pfile cleaning #2 (#373)
* clean GetSaveDirectory and pfile_read_hero
clean pfile_open_save_archive
clean pfile_archive_contains_game
clean pfile_get_player_class
clean pfile_get_file_name
clean GetTempSaveNames
clean GetPermSaveNames
clean pfile_update
clean pfile_init_save_directory
clean pfile_write_hero
clean pfile_open_archive
clean pfile_flush_W

* add stub for mpqapi_update_multi_creation_time
2018-10-01 18:45:25 +02:00
squidcc
df89dd7333 more pfile cleaning (#356)
* clean pfile_check_available_space
clean pfile_get_save_num_from_name
clean pfile_encode_hero
clean pfile_get_save_path
clean pfile_flush
clean game_2_ui_class and game_2_ui_player

* type fix-ups
2018-09-30 23:59:46 +02:00
squidcc
e2adda15ff fix function declarations (and some cosmetic changes) in preparation for pfile cleanup (#351) 2018-09-27 16:30:33 +02:00
nomdenom
1c279c3f89 Fix declaration of gbValidSaveFile (BOOL) (#331) 2018-09-24 15:58:43 +02:00
galaxyhaxz
1224d01161
Sync with master (#301) 2018-09-19 14:41:22 -05:00
galaxyhaxz
38b498ac4b
Add 'const' to data to match original binary (#200) 2018-09-09 15:40:23 -05:00
galaxyhaxz
6d07e15f4e
Fix itemhold and add pfile def (#199) 2018-09-08 17:17:00 -05:00
galaxyhaxz
49a6f4f9fc
Add include guards, prepare for XRef (#28)
Add definitions, other junk.
2018-06-20 05:17:44 -05:00
galaxyhaxz
bb01c6f084
Remove the "fear factor" (#21)
Snakes, spiders, Demons, what scares you?
2018-06-18 19:16:32 -05:00
galaxyhaxz
dde68ff89e
Add files via upload 2018-06-06 21:25:54 -05:00