Commit Graph
45 Commits
Author SHA1 Message Date
galaxyhaxz f89204e7dd Fix function/var names (effects/sound) 2020-03-24 00:22:36 -05:00
Anders Jenbo 0383f9abcd Add documentation to more files 2020-03-02 02:29:28 +01: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 JenboandGitHub 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
qndelandAnders Jenbo a6a89bca3a apply TRUE/FALSE 2020-01-31 19:22:51 +01:00
Mathieu MaretandAnders Jenbo bfe4759745 Loading screen (#1836) 2019-11-01 12:59:46 +01:00
galaxyhaxzandAnders Jenbo 67fedd9e99 Fix unknown struct field and drawpanflag 2019-10-31 22:57:15 +01:00
Anders Jenbo 6597688eac Rename cell functions 2019-10-13 13:31:56 +02:00
Robin EklindandAnders Jenbo 0e4d4104a7 interfac: rename progress_bar_colours and progress_bar_screen_pos to BarColor and BarPos
Rationale described in sanctuary/notes@cb8812d1a6
as included below:

Note, the BarColor and BarPos globals don't have
PSX debug info. However, the progress bar is
referred to as "barfoo" in other parts of the
PSX debug info, e.g.

	// register: 21
	register unsigned char barr;
	// register: 16
	register unsigned char barg;

Thus, we apply a similar naming convention for BarColor
and BarPos, using CamelCase as is conventional for global
variables in Diablo 1.
2019-08-18 07:45:07 +02:00
Anders Jenbo 3bc8ba66b0 Use defines for more screen geometry values 2019-07-20 17:10:49 +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 a7788ccddf Format bin exact code 2019-06-17 04:55:41 +02:00
Manuel KandAnders Jenbo df1d049ae3 Use SCREEN_Y 2019-06-02 18:08:09 +01:00
Anders Jenbo 1fd057a368 Clean up interfac.cpp 2019-05-02 00:16:46 +01:00
Anders Jenbo 55a0396f8f Clean up mem_free_dbg style 2019-04-22 13:22:57 +02:00
galaxyhaxzandAnders Jenbo 540892ff9d Preliminary support for fixed header files 2019-04-21 17:20:38 +02:00
galaxyhaxzandAnders Jenbo 740e91e881 rename screen_y_times_768 2019-04-19 04:05:55 +02:00
galaxyhaxz fd53ad06ba Rename lock_buf 2019-04-16 20:16:35 -05:00
Anders Jenbo 5d3252a870 Clean up DrawCutscene 2019-04-09 18:01:04 +02:00
galaxyhaxzandAnders Jenbo 4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
galaxyhaxzandAnders Jenbo 319b6c1915 InitCutscene 2019-04-08 18:25:35 +02:00
Anders Jenbo d2174e3454 Apply code style 2019-04-05 21:54:45 +02:00
galaxyhaxzandGitHub 5238265702 Implement assert support (#791) 2019-03-29 21:26:37 -05:00
galaxyhaxzandAnders Jenbo 804ff38a0a DRLG_WillThemeRoomFit & ShowProgress 2019-03-29 09:14:11 +01:00
Anders JenboandRobin Eklind ae2630cc46 Mem free dbg (#685)
* FreeQuestText

* DRLG_FreeL2SP

* GetHall

* FreeGMenu

* FreeObjectGFX

* DRLG_FreeL1SP

* FreeControlPan

* FreeLightTable

* Clean up DRLG_LoadDiabQuads

* DRLG_FreeL4SP

* FreeInterface
2019-03-19 15:37:07 +09:00
galaxyhaxzandRobin Eklind 81f3f5daa2 Cleaning Engine CEL functions (#652)
* Cleaning Engine CEL functions

* Fix C functions
2019-03-14 10:47:39 +09:00
Anders JenboandRobin Eklind efec32bcd5 Compile files as C (#527)
* Compile files as C

* Provide fallback for qmemcpy

Enable C compilation for:
Source/gendung.cpp
Source/inv.cpp
Source/minitext.cpp
Source/pack.cpp
2018-12-30 13:16:11 +01:00
Anders JenboandRobin Eklind b5f69dccdc C compatability from d-p (#519) 2018-12-29 17:54:22 +01:00
galaxyhaxzandAnders Jenbo c4c6572f06 Correct name diablo_init_menu 2018-11-10 01:39:28 +01:00
galaxyhaxzandAnders Jenbo a11b924a51 LoadGameLevel bin exact (#455) 2018-11-08 17:52:26 +01:00
Anders Jenbo b1f6d3698f Update style to use tabs 2018-10-25 22:53:04 +02:00
Anders Jenbo 355ae33a1e Format menu related fiels 2018-10-22 01:58:35 +02:00
Anders Jenbo 6576954831 Clean up types used in gamemenu.cpp 2018-10-21 03:50:52 +02:00
Anders Jenbo f1c8439c64 Change setlvlnum to BYTE 2018-10-18 20:14:58 +02:00
Anders JenboandRobin Eklind 4d8ceea32d Types (#395)
* Apply plr_class

* Apply attribute_id

* NetSendCmd*(BOOL)
2018-10-08 14:17:05 +02:00
Robin EklindandGitHub 3103da7f1d Add missing arg to j_lock_buf_priv and j_unlock_buf_priv (#374) 2018-10-06 14:42:52 +02:00
Andrew Dunstan aedf7555d1 Remove A suffix from all string-related win32 API function names 2018-09-16 02:52:51 +10:00
Anders JenboandDennis Duda 3a0e40597b Clean up InitPlayer 2018-09-13 00:28:57 +02:00
galaxyhaxzandGitHub 38b498ac4b Add 'const' to data to match original binary (#200) 2018-09-09 15:40:23 -05:00
galaxyhaxzandGitHub 13126a90d6 Fix garbage structs, data in setmaps (#189) 2018-09-04 11:16:14 -05:00
galaxyhaxzandGitHub 5ff8756116 Fix junk (#174) 2018-08-21 23:58:17 -05:00
galaxyhaxzandGitHub 775ae59e18 Fix function signatures and others (#158)
Fix InitObjects, themes.cpp, names
2018-08-12 18:32:48 -05:00
galaxyhaxzandGitHub 49a6f4f9fc Add include guards, prepare for XRef (#28)
Add definitions, other junk.
2018-06-20 05:17:44 -05:00
galaxyhaxzandGitHub bb01c6f084 Remove the "fear factor" (#21)
Snakes, spiders, Demons, what scares you?
2018-06-18 19:16:32 -05:00
galaxyhaxzandGitHub dde68ff89e Add files via upload 2018-06-06 21:25:54 -05:00