Robin Eklind
66dacd0967
render: clean up inlined asm functions ( #553 )
...
* render: clean up inlined asm functions
Now, these functions no longer use references. Instead they
use pointer to pointer.
7 years ago
JustAnotherGuid
694be2da8d
Clean-up mpqapi_set_hidden ( #552 )
...
* Clean-up mpqapi_set_hidden
Co-Authored-By: JustAnotherGuid <46401660+JustAnotherGuid@users.noreply.github.com>
7 years ago
Anders Jenbo
57d7c99a8f
Stores.cpp ( #551 )
...
* Clean up FreeStoreMem
* Clean up AddSLine
* Clean up AddSText
* Clean up SmithSellOk
7 years ago
Anders Jenbo
3be6bda47e
Make inline statments C compatible ( #550 )
7 years ago
Anders Jenbo
fd2a45ff9a
Engine.cpp ( #548 )
...
* Clean up DiabloAllocPtr
* Clean up mem_free_dbg
* Clean up GetDirection
* Clean up PlayInGameMovie
* 18 directions
7 years ago
Anders Jenbo
19f1bd6b61
Clean up LoadFileInMem ( #547 )
7 years ago
galaxyhaxz
b048cac4fe
InitAutomap+ScrollView ( #545 )
7 years ago
galaxyhaxz
c3e8ff1c18
Add Assertion
7 years ago
galaxyhaxz
5bab5d12f7
cursor.cpp
7 years ago
Anders Jenbo
429185ef7a
Apply CURSOR_FIRSTITEM ( #541 )
7 years ago
Anders Jenbo
84f976bd00
Clean up control_set_gold_curs & CheckChrBtns ( #538 )
...
* Clean up control_set_gold_curs
* Clean up CheckChrBtns
7 years ago
Anders Jenbo
82d1f6c8e0
Clean up CheckChrBtns
7 years ago
Anders Jenbo
e795b6116a
Make use of atexit() C compatible ( #537 )
7 years ago
Anders Jenbo
30a394798b
Clean up control_set_gold_curs
7 years ago
Anders Jenbo
2c8cec0687
Clean up AddBarrel ( #535 )
7 years ago
Anders Jenbo
a00867949d
Clean up AddSarc ( #534 )
7 years ago
Anders Jenbo
77849aea72
Remove unused init ( #533 )
7 years ago
Anders Jenbo
344712a23b
Use SYSTEMTIME type instead of _SYSTEMTIME struct
7 years ago
Anders Jenbo
d900657201
Compile diablo.cpp as C
7 years ago
Anders Jenbo
86018b174b
Make DirecX usage C compatible
7 years ago
Anders Jenbo
06554e6db8
Make missiles.cpp compile as C ( #531 )
7 years ago
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
7 years ago
Robin Eklind
8c73745e82
Compile movie.cpp as C
7 years ago
Anders Jenbo
d0e3835ea1
Clean up gamemenu_enable_single ( #526 )
7 years ago
Anders Jenbo
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
7 years ago
aperturesecurity
839d4cdccf
changed build to automatically provide build copy everytime
7 years ago
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).
7 years ago
Anders Jenbo
87ea335ec4
Compile gamemenu.cpp, track.cpp & trigs.cpp as C ( #525 )
...
This enables processing pfile.h as a C header, this adds two minor
warnings to the compile process but should be fine (game works)
7 years ago
Robin Eklind
6817fecc34
cursor.h and objects.h no longer have collisions
7 years ago
Robin Eklind
e915623726
rename SetCursor to SetCursor_ to avoid collision with windows.h
...
Translation done automatically using:
$ find . -type f -name '*.h' | xargs -I '{}' sar -i "([ \t])(SetCursor)[(]" '${1}${2}_(' '{}'
$ find . -type f -name '*.h' | xargs -I '{}' sar -i "([ \t])(SetCursor)[(]" '${1}${2}_(' '{}'
7 years ago
Robin Eklind
a94ac659a7
rename DeleteObject to DeleteObject_ to avoid collision with windows.h
7 years ago
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 @
7 years ago
aperturesecurity
f88b32a834
added a halt to all channels if needed
7 years ago
ApertureSecurity
2ed093c0a6
Merge pull request #12 from Chance4us/master
...
Update sound.cpp
7 years ago
ApertureSecurity
85208ccb90
Merge branch 'master' into master
7 years ago
Anders Jenbo
db801ea4fd
Clean up MAI_Fireman ( #517 )
7 years ago
Anders Jenbo
024d99fc9e
C compatability from s ( #521 )
7 years ago
Chance4us
036d1cf9fe
Update sound.cpp
7 years ago
Anders Jenbo
9cb6f0748c
Merge branch 'nightly' into msg.cpp2
7 years ago
Anders Jenbo
b5f69dccdc
C compatability from d-p ( #519 )
7 years ago
Anders Jenbo
47bf82b059
C compatability from a-d ( #518 )
7 years ago
aperturesecurity
62357a25c7
removed more dependancies
7 years ago
ApertureSecurity
8a783f565d
Merge pull request #10 from Chance4us/master
...
Update sound.cpp
7 years ago
Anders Jenbo
4a62a7c678
Code style
7 years ago
Chance4us
62591c7be8
Update sound.cpp
...
line 104 / Mix_OpenAudio / third parameter had to be reverted
7 years ago
aperturesecurity
789aec38de
removed image and font dependancies from SDL now only SDL.h and SDL_Mixer should be needed
7 years ago
Chance4us
14ecc7d290
Update sound.cpp
...
great audio quality improvement from 8 to 16 bit format
7 years ago
aperturesecurity
ececadf59d
new game and difficulty selection added
7 years ago
aperturesecurity
e16df4f333
blacked out new game menu
7 years ago
aperturesecurity
3b84f7eeb1
Removed a game breaking feature with new game
7 years ago