Commit graph

135 commits

Author SHA1 Message Date
Anders Jenbo
c39f668deb Enable some asserts that are helpful for testing 2020-04-06 05:43:20 +02:00
Anders Jenbo
187a021b30
More documentation from sanctuary/notes (#2026) 2020-03-30 11:31:36 +02:00
galaxyhaxz
f89204e7dd Fix function/var names (effects/sound) 2020-03-24 00:22:36 -05:00
galaxyhaxz
71565b9c02
Several updates [enums+names] (#2002)
* Several updates

* Correct msg_get_next_packet

* Update enums.h

Co-Authored-By: Robin Eklind <mewmew@users.noreply.github.com>

Co-authored-by: Robin Eklind <mewmew@users.noreply.github.com>
2020-03-11 21:27:40 -05: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
galaxyhaxz
81ff8e6287 Metallic hydrogen neural array 2020-02-28 16:35:57 -06:00
qndel
34caded4de fix hotkeys 2020-02-22 00:27:12 +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
a1321539fb enums 2020-01-31 23:29:55 +01:00
qndel
a6a89bca3a apply TRUE/FALSE 2020-01-31 19:22:51 +01:00
qndel
c2587d9786 use enums (#1997) 2020-01-28 17:33:34 +01:00
galaxyhaxz
6605e1de5e Fix variable 'gbSelectProvider' 2020-01-17 21:07:10 +01:00
qndel
3008439bc7 enums and stuff 2020-01-15 15:46:21 +01:00
Anders Jenbo
aedf8c993b PressKey clean up 2020-01-12 23:20:36 +01:00
Anders Jenbo
8a2cd19d95 DisableInputWndProc clean up 2020-01-12 09:59:43 +01:00
Anders Jenbo
cee06d07a7 Correct spelling of color 2020-01-10 11:13:47 +01:00
Anders Jenbo
0c90ad0527 Set bool values TRUE/FALSE 2019-12-22 23:57:10 +01:00
Anders Jenbo
2ff16c34bb
Correct NetSendCmdLocParam1 input
Fixes #1838
2019-11-10 05:21:49 +01:00
Anders Jenbo
3638381b48
SetCursor CURSOR_NONE 2019-11-03 16:05:52 +01:00
galaxyhaxz
67fedd9e99 Fix unknown struct field and drawpanflag 2019-10-31 22:57:15 +01:00
Anders Jenbo
048429b4cd Apply more constants 2019-10-28 04:29:39 +01:00
Anders Jenbo
92ab05ea13 Decompose more magic numbers 2019-10-26 00:24:55 +02:00
Anders Jenbo
2348c3a8fd Documentations, enums and clean ups 2019-10-21 19:33:14 +02:00
qndel
57f1fcce4c some enums (#1816) 2019-10-20 20:40:35 +02:00
qndel
7129558d0b apply enums 2019-10-05 15:24:44 +02:00
Anders Jenbo
edbc23f144
Clean up diablo.cpp 2019-10-05 00:09:43 +02:00
Anders Jenbo
683a50527d Correct missmatched bool types 2019-10-04 09:26:26 +02:00
Anders Jenbo
1aa0b809e1 Clean up diablo_find_window 2019-08-27 17:23:39 +02:00
Robin Eklind
57213a4faa update names as per @galaxyhaxz suggestion, use info from assert strings 2019-08-18 07:45:56 +02:00
Robin Eklind
fe839e90d9 diablo: rename spszMsgTbl and spszMsgKeyTbl to NetMsgStr and NetMsgHotKey
Rationale described in sanctuary/notes@3cd6417cdf
as included below:

Infer the name of NetMsgStr and NetMsgHotKey from the
PSX debug names of:

	char *PanBtnHotKey[8];
	unsigned long PanBtnStr[8];

Note, the previous use of spsz hungarian notation has been removed
since searching for "spsz" gave no results in the merged output of
PSX debug info: https://github.com/diasurgical/scalpel/tree/master/psx/_dump_/_dump_merge_c_
2019-08-18 07:45:56 +02:00
Anders Jenbo
68d51e7d27 Implementing Spawned Shareware version 2019-08-12 16:04:20 +02:00
Anders Jenbo
9d3ce818f0 Correct BOOLS 2019-07-21 19:11:11 +02:00
Anders Jenbo
6fba17eec5 Correct GLOBAL types based on PSX SYM 3 2019-07-21 04:10:31 +02:00
Anders Jenbo
5ab9f4609a Clean up signedness 2019-07-21 00:57:53 +02:00
Anders Jenbo
aa50489569 Clean up generated comments 2019-07-21 00:57:53 +02:00
Anders Jenbo
3bc8ba66b0 Use defines for more screen geometry values 2019-07-20 17:10:49 +02:00
Robin Eklind
105a583ce0 Use TRUE and FALSE enums for setlevel.
Also simplify if conditions to make
use of boolean values.

(If the cleanup4 PR ends up increasing
inserts/deletions, then this commit is
probably at fault.)
2019-07-17 20:42:26 +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
f71471eab7 Correct types related to glSeedTbl
Reference:
https://github.com/diasurgical/scalpel/blob/master/psx/_dump_/3/_dump_c_src_/global_0.cpp#L2431
https://github.com/diasurgical/scalpel/blob/master/psx/_dump_/3/_dump_c_src_/diabpsx/source/drlg_l1.cpp#L542
https://github.com/diasurgical/scalpel/blob/master/psx/_dump_/3/_dump_c_src_/diabpsx/source/drlg_l2.cpp#L538
https://github.com/diasurgical/scalpel/blob/master/psx/_dump_/3/_dump_c_src_/diabpsx/source/drlg_l3.cpp#L499
https://github.com/diasurgical/scalpel/blob/master/psx/_dump_/3/_dump_c_src_/diabpsx/source/drlg_l4.cpp#L484
2019-07-06 19:33:30 +02:00
Anders Jenbo
a7788ccddf Format bin exact code 2019-06-17 04:55:41 +02:00
Anders Jenbo
334c06c6d3 Correct type in calls to AddPanelString 2019-06-08 13:06:26 +02:00
Manuel K
896933f55e Replace magic number 352 with VIEWPORT_HEIGHT (#1232) 2019-06-02 17:51:33 +01:00
Anders Jenbo
b6a2406d47 Clean up LeftMouseDown 2019-05-31 16:03:38 +01:00
Anders Jenbo
565bb5aa7d Adust dFlag enums 2019-05-29 16:23:08 +01:00
qndel
66f160a962 gmenu_left_mouse bin exact 2019-05-27 21:04:17 +01:00
galaxyhaxz
31cbaed01e fix name type 2019-05-22 08:30:59 +01:00
galaxyhaxz
0b1b4e8062 PressChar bin exact as C++ (#1136) 2019-05-07 02:16:29 +01:00
galaxyhaxz
8ead9a8606 run_game_loop 2019-05-05 12:30:39 +01:00
galaxyhaxz
5e10dcb912 diablo_reload_proc & Xiaolin Wu ref 2019-05-04 17:29:21 +01:00
Anders Jenbo
9504b5cf57 Clean up drlg_l3.cpp 2019-05-02 00:16:46 +01:00