Anders Jenbo
3bc8ba66b0
Use defines for more screen geometry values
2019-07-20 17:10:49 +02:00
Anders Jenbo
55b5ce883d
Clean up unformatted files
2019-07-08 04:28:31 +02:00
Anders Jenbo
7883043adc
Clean up files with dirty headers
2019-07-08 04:28:31 +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
f31cac0ee0
Clean up Cl2DecodeFrm3, Cl2DecodeFrm5, Cl2DecodeLightTbl & Cl2DecodeFrm6
2019-06-13 21:55:18 +01:00
Sergey Semushin
2b816ff9a8
Make CelDrawHdrLightRed bin exact.
2019-06-13 11:57:03 +01:00
Anders Jenbo
0397dbe9e3
Allign similar code in engine.cpp
2019-06-11 11:08:50 +02:00
Anders Jenbo
85651c015a
Consistent var naming in engine.cpp
2019-06-10 23:23:30 +02:00
Manuel K
97c1edd3a0
Use BUFFER_WIDTH
2019-06-05 20:13:34 +02:00
Manuel K
df1d049ae3
Use SCREEN_Y
2019-06-02 18:08:09 +01:00
Manuel K
896933f55e
Replace magic number 352 with VIEWPORT_HEIGHT ( #1232 )
2019-06-02 17:51:33 +01:00
Sergey Semushin
a87f1450e7
Add algorithm description comment for DrawLine.
2019-05-06 02:04:07 +01:00
Sergey Semushin
b971d8a2cb
Make DrawLine bin exact by copying from its original source.
2019-05-05 21:12:07 +01:00
galaxyhaxz
5e10dcb912
diablo_reload_proc & Xiaolin Wu ref
2019-05-04 17:29:21 +01:00
galaxyhaxz
75a150d142
DrawLine ( #1084 )
2019-05-01 05:32:05 -05:00
galaxyhaxz
5d4918eea0
LoadWithMem
2019-04-30 22:47:53 -05:00
galaxyhaxz
3a636fdcc6
Add missing functions for MI_Dummy ( #1004 )
2019-04-22 20:21:52 -05:00
galaxyhaxz
777c517b8e
Change ASM macro
2019-04-22 02:23:12 -05:00
galaxyhaxz
540892ff9d
Preliminary support for fixed header files
2019-04-21 17:20:38 +02:00
galaxyhaxz
740e91e881
rename screen_y_times_768
2019-04-19 04:05:55 +02:00
Robin Eklind
aefddd13d1
Merge pull request #866 from AJenbo/CelDecodeHdrLightTrans
...
Clean up CelDrawHdrLightRed
2019-04-16 01:42:51 +09:00
galaxyhaxz
cef65ea0b6
Implement Critical section constructor
2019-04-15 01:16:43 +02:00
Anders Jenbo
a592838d42
Clean up CelDecodeHdrLightTrans
2019-04-09 13:51:19 +02:00
galaxyhaxz
4e01e03711
Cleanup default calling conventions
2019-04-09 12:04:00 +02:00
galaxyhaxz
63b0a9fb04
Cel2DrawHdrLightRed
2019-04-08 18:56:23 +02:00
Anders Jenbo
8387d0fb97
Align code style in engine.cpp
2019-04-08 03:42:50 +02:00
Anders Jenbo
53cd38a8e8
Clean up Cel2DecodeHdrLight
2019-04-08 03:42:34 +02:00
Anders Jenbo
eb90aa182a
Clean up CelDecodeHdrLightTrans
2019-04-08 00:56:33 +02:00
Anders Jenbo
46f83455be
Clean up variable naming in engine.cpp
2019-04-08 00:32:33 +02:00
Anders Jenbo
1af8fc330f
Clean up Cel2DecodeLightTrans
2019-04-08 00:10:07 +02:00
Anders Jenbo
4d6d0d8592
Clean up CelDecodeHdrLightOnly
2019-04-08 00:00:09 +02:00
Anders Jenbo
e7d5aac5dc
Clean up engine and scrollrt attribute naming
2019-04-07 21:17:59 +02:00
Anders Jenbo
d2174e3454
Apply code style
2019-04-05 21:54:45 +02:00
galaxyhaxz
d879a325e1
Fix dTransVal and pLightTbl ( #825 )
2019-04-02 14:19:28 -05:00
galaxyhaxz
5238265702
Implement assert support ( #791 )
2019-03-29 21:26:37 -05:00
galaxyhaxz
9afd45cbea
Fix crash in draw town ( #692 )
2019-03-20 00:48:36 +09:00
galaxyhaxz
f388472713
ENG_set_pixel + engine_draw_pixel ( #691 )
2019-03-19 18:57:23 +09:00
galaxyhaxz
befd52c003
Fix type for 'gpBuffer' ( #672 )
2019-03-18 22:28:38 +09:00
galaxyhaxz
0bb9f666b3
Clean remaining .CEL functions ( #657 )
2019-03-17 15:56:53 -05:00
galaxyhaxz
9e4885a955
Cleanup CL2 functions ( #656 )
2019-03-15 21:56:04 -05:00
galaxyhaxz
81f3f5daa2
Cleaning Engine CEL functions ( #652 )
...
* Cleaning Engine CEL functions
* Fix C functions
2019-03-14 10:47:39 +09:00
Max Desiatov
269aa345bd
Fix downstream 64-bit builds
2019-03-08 03:07:21 +01:00
Anders Jenbo
9b7da61dcf
Auto format src
2019-01-13 18:55:59 +01:00
Anders Jenbo
54247a076c
C init ( #549 )
...
* Make initializers C compatible
* Compile more files as C
dthread.cpp dx.cpp init logging.cpp fault.cpp msgcmd.cpp nthread.cpp
* Update defs.h
2019-01-10 21:39:28 +01:00
Anders Jenbo
ca64011eb9
Replace __ROR4__ stdlib, make _ROR2__ C frindly ( #540 )
...
* Use stdlib _rotr instead of inline asm
* Compile control.cpp as C
This also makes qmemcpy avalible to the C compiler
2019-01-06 03:23:43 +01:00
Anders Jenbo
fd2a45ff9a
Engine.cpp ( #548 )
...
* Clean up DiabloAllocPtr
* Clean up mem_free_dbg
* Clean up GetDirection
* Clean up PlayInGameMovie
* 18 directions
2019-01-03 02:29:31 +01:00
Anders Jenbo
19f1bd6b61
Clean up LoadFileInMem ( #547 )
2019-01-03 01:13:59 +01:00
Anders Jenbo
e795b6116a
Make use of atexit() C compatible ( #537 )
2019-01-01 03:05:29 +01:00
Anders Jenbo
77849aea72
Remove unused init ( #533 )
2018-12-31 04:26:51 +01:00
Robin Eklind
8ed5573766
engine: clean up CelDecDatLightEntry and Cel2DecDatLightEntry ( #524 )
...
Now, these functions no longer use references. Instead they
use pointer to pointer. Furthermore, they've been simplified
to for loops, as essentially, the decompiled functions were
unrolled loops (as seen in the memset function).
2018-12-30 03:52:50 +01:00