Commit graph

55 commits

Author SHA1 Message Date
Anders Jenbo
c7b32ec4e4 Clean ups 2021-01-08 21:23:00 +01:00
Anders Jenbo
da908b83f2 [hellfire] pfile_read 2021-01-01 20:43:27 +01:00
Anders Jenbo
87c325ef31 [hellfire] pfile_write_save_file 2021-01-01 19:40:33 +01:00
Anders Jenbo
5169c054b6 [hellfire] pfile_archive_contains_game 2021-01-01 19:14:01 +01:00
Anders Jenbo
5bd15f28db [hellfire] pfile_read_hero 2021-01-01 15:52:54 +01:00
Anders Jenbo
363c37a447 [hellfire] pfile_get_file_name 2021-01-01 04:41:36 +01:00
Anders Jenbo
e46a0bff55 [hellfire] pfile_ui_set_hero_infos 2021-01-01 04:26:38 +01:00
Anders Jenbo
6cfc2862d6 [hellfire] pfile_get_save_path and frinds 2021-01-01 04:12:01 +01:00
Anders Jenbo
2de8282345 [hellfire] pfile_encode_hero 2021-01-01 02:54:45 +01:00
Anders Jenbo
043d15db66 [hellfire] PackPlayer and frinds 2021-01-01 01:34:54 +01:00
qndel
23c2108dff GetTempSaveNames/GetPermSaveNames 2020-11-12 15:14:47 +01:00
Anders Jenbo
3b8b5f9007 Reorder pfile.cpp 2020-11-05 02:29:00 +01:00
Anders Jenbo
7e04c63977 Merge branch 'hellfire' of github.com:diasurgical/devilution 2020-10-11 23:53:07 +02:00
Anders Jenbo
1ba96a6777 Add doxygen description to remaining engine files 2020-07-06 05:43:25 +02:00
Anders Jenbo
b040c04a18 Merge branch 'master' of github.com:diasurgical/devilution into hellfire 2020-04-04 07:56:06 +02:00
Anders Jenbo
3c276a3cd3 Add documentation
- Add file documentation to about 1/4 of the files in Source
- Copy over a lot of the documentation from the sanctuary/notes repo
- Standardise all the existing documentation
- Create a configuration for Doxygen
- Add more documentation (engine.cpp is now fully documented)
2020-03-01 22:18:00 +01:00
Anders Jenbo
20621a0642
add all.h and use in place of diablo.h (#2005)
Now diablo.h is treated in the same way as all other header files of
Source, as it only contains the declarations of global variables and
functions of diablo.cpp.

Besides consistency, this also enables mods to include diablo.h just
like any other header file without having to include every header file
(and without having to include C++ specific aspects of the now all.h).
2020-02-14 13:12:54 +01:00
qndel
7fd66b103b [hellfire] game_2_ui_class / pfile_get_player_class bin exact (#1792) 2019-10-07 23:45:00 +02:00
qndel
1b1b4e658d init_read_test_file clean up 2019-08-31 07:43:55 +02:00
Anders Jenbo
faebce4c26
BUGFIX comment for assert left overes 2019-08-18 08:51:23 +02:00
Anders Jenbo
68d51e7d27 Implementing Spawned Shareware version 2019-08-12 16:04:20 +02:00
Anders Jenbo
5ab9f4609a Clean up signedness 2019-07-21 00:57:53 +02:00
Anders Jenbo
e2bff090d6 Come up with names for all remaning arguments 2019-07-21 00:57:53 +02:00
Robin Eklind
4e09aeb3a8 pfile: add assert comments to pfile_rename_temp_to_perm
Based on @galaxyhaxz code in https://github.com/diasurgical/devilution/pull/1294#issuecomment-509018789

Also, per suggestion of @sskras.
2019-07-08 18:13:11 +02:00
Robin Eklind
964c17457b pfile: add BUGFIX comment for pfile_rename_temp_to_perm 2019-07-08 04:19:24 +02:00
Anders Jenbo
32a51d17ca Align function signatures with PSX symbols
Using
https://github.com/diasurgical/scalpel/tree/master/psx/_dump_/3/_dump_c_src_/diabpsx/source
as a reference
2019-07-08 04:12:12 +02:00
Anders Jenbo
ee1f79dae7 Clean up mpqapi.cpp 2019-05-12 17:23:52 +01:00
Anders Jenbo
4af67eab78
Update pfile.cpp 2019-05-12 14:52:37 +02:00
Anders Jenbo
8eecc53b41 Clean up pfile.cpp 2019-05-02 00:16:46 +01:00
galaxyhaxz
3a636fdcc6
Add missing functions for MI_Dummy (#1004) 2019-04-22 20:21:52 -05:00
galaxyhaxz
540892ff9d Preliminary support for fixed header files 2019-04-21 17:20:38 +02:00
galaxyhaxz
4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
galaxyhaxz
5238265702
Implement assert support (#791) 2019-03-29 21:26:37 -05:00
Anders Jenbo
841f5af199 Compile effects.cpp and wave.cpp as C (#530)
* Correct SFileReadFile signature

* Compile as C

Source/effects.cpp
Source/wave.cpp

* Make diabloui.h C frindly
2018-12-30 19:22:40 +01:00
Anders Jenbo
b5f69dccdc C compatability from d-p (#519) 2018-12-29 17:54:22 +01:00
galaxyhaxz
c302881060 Fix gszHero 2018-12-18 09:37:37 +01:00
Anders Jenbo
b1f6d3698f Update style to use tabs 2018-10-25 22:53:04 +02:00
Anders Jenbo
f1c8439c64 Change setlvlnum to BYTE 2018-10-18 20:14:58 +02:00
Robin Eklind
7515655efb Run format.sh 2018-10-06 22:52:58 +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
Anders Jenbo
837119d581 Merge branch 'master' of github.com:diasurgical/devilution into nightly 2018-09-28 23:16:16 +02:00
nomdenom
4bb6bde99b Use sizeof() for memset()
I checked that the sizes do match. (+1 squashed commits)
2018-09-27 19:23:21 -07: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
6769eb8baf
Implement hero selection in DiabloUI (P1) (#300) 2018-09-19 02:31:15 -05:00
Andrew Dunstan
aedf7555d1 Remove A suffix from all string-related win32 API function names 2018-09-16 02:52:51 +10:00
galaxyhaxz
38b498ac4b
Add 'const' to data to match original binary (#200) 2018-09-09 15:40:23 -05:00