Commit Graph
49 Commits
Author SHA1 Message Date
Anders Jenbo 0f514f25de Apply WinAPI enums and macros 2020-04-06 05:43:20 +02:00
Anders Jenbo c39f668deb Enable some asserts that are helpful for testing 2020-04-06 05:43:20 +02:00
Anders Jenbo 660405505f Remove C compat
It's unmaintained and clear that we won't be going back since some
functions can only be solved with C++
2020-04-06 05:43:20 +02:00
galaxyhaxz f89204e7dd Fix function/var names (effects/sound) 2020-03-24 00:22:36 -05: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 da74a3c3a9 snd_init cleanup 2019-12-13 20:39:02 +01:00
qndelandAnders Jenbo 6d4f4ded07 sound_DirectSoundCreate cleanup (#1877) 2019-12-13 19:35:56 +01:00
Anders Jenbo 195ac2a4a7 Apply music enums 2019-10-28 21:42:33 +01:00
Anders Jenbo 68d51e7d27 Implementing Spawned Shareware version 2019-08-12 16:04:20 +02:00
Anders Jenbo 6fba17eec5 Correct GLOBAL types based on PSX SYM 3 2019-07-21 04:10:31 +02:00
Sergey SemushinandAnders Jenbo 7e39fe457f Fix diff in snd_play_snd. 2019-06-15 11:20:25 +02:00
Anders Jenbo e5f4fdcec9 Clean up sound.cpp 2019-05-02 00:16:46 +01:00
galaxyhaxzandAnders Jenbo 540892ff9d Preliminary support for fixed header files 2019-04-21 17:20:38 +02:00
galaxyhaxzandAnders Jenbo 4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
galaxyhaxzandGitHub 5238265702 Implement assert support (#791) 2019-03-29 21:26:37 -05:00
Anders JenboandRobin Eklind fda317a24e Clean up storm/sound_update (#663) 2019-03-18 11:23:24 +09:00
Anders JenboandRobin Eklind f062ec0c93 Clean up sound.cpp (#655) 2019-03-15 10:42:09 +09:00
Anders Jenbo fb4686c9bb Revert incorrect fix of sound_file_reload 2019-03-11 01:49:36 +01:00
Anders JenboandGitHub f7c999830e Update sound.cpp 2019-03-10 19:38:55 +01:00
Anders JenboandRobin Eklind 3b7d3ac8a2 Clean up types in sound.cpp (#603) 2019-03-10 12:41:50 +09:00
Anders JenboandRobin Eklind 429ececce0 Fix debug build as C (#566)
* Clean up todo

* Fix debug build
2019-01-14 18:54:12 +01:00
Anders Jenbo 9b7da61dcf Auto format src 2019-01-13 18:55:59 +01:00
Anders Jenbo 86018b174b Make DirecX usage C compatible 2018-12-31 03:17:08 +01:00
Anders JenboandRobin Eklind 024d99fc9e C compatability from s (#521) 2018-12-29 21:15:33 +01:00
galaxyhaxzandGitHub 24285a220f WinMain+Direct file access from HDD (#456) 2018-11-09 16:22:56 -06:00
Anders Jenbo b1f6d3698f Update style to use tabs 2018-10-25 22:53:04 +02:00
Anders Jenbo c24569205d Format compleated files 2018-10-19 03:02:43 +02:00
Anders Jenbo 456d651f55 Clean up more bools related to sound.cpp 2018-10-18 20:32:44 +02:00
Anders Jenbo 8e2d0df643 Clean up some bools 2018-10-18 20:32:44 +02:00
Andrew DunstanandAnders Jenbo 5dd1153979 rename riff_chunk -> CKINFO 2018-10-18 13:26:59 +02:00
Andrew DunstanandAnders Jenbo 4c085a734b clean wave.cpp 2018-10-18 13:26:59 +02:00
Robin EklindandAnders Jenbo 7515655efb Run format.sh 2018-10-06 22:52:58 +02:00
Anders JenboandRobin Eklind f269f4561b PlaySFX_priv, stream_play (#371)
* PlaySFX_priv, stream_play

* Fix build warnings in player.cpp

* Clean up FreeMonsterSnd

* Added more enums and defines for sound and effects.
2018-10-02 00:02:12 +02:00
Anders JenboandGitHub 5df6a0d771 Sound.cpp (#353)
* Clean up of sound.cpp
* Fix builds that don't support max()
2018-10-01 03:31:39 +02:00
Andrew Dunstan aedf7555d1 Remove A suffix from all string-related win32 API function names 2018-09-16 02:52:51 +10:00
Dennis Duda 6792078180 Merge remote-tracking branch 'devilution/master' 2018-09-10 20:44:41 +02:00
galaxyhaxzandGitHub 38b498ac4b Add 'const' to data to match original binary (#200) 2018-09-09 15:40:23 -05:00
Anders JenboandDennis Duda fe3b0a9d09 Clean up DoEnding 2018-09-06 16:45:39 +02:00
galaxyhaxzandGitHub 13126a90d6 Fix garbage structs, data in setmaps (#189) 2018-09-04 11:16:14 -05:00
galaxyhaxzandGitHub 1120c0780d Update sound.cpp 2018-09-01 00:38:59 -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 be56d934ee Fix compilers that use DirectX8+ 2018-06-17 19:51:04 -05:00
galaxyhaxzandGitHub 0db106a5b4 Add support for Visual C++ 5.10 (#12)
* Update stuff
2018-06-14 02:38:27 -05:00
mewmew f5f76f8b8a Fix build on Linux 2018-06-08 11:23:30 +02:00
galaxyhaxzandGitHub b1ee40f6e7 Revert "Add preliminary support for compiling on Linux" 2018-06-07 22:00:35 -05:00
mewmew 20fdbf8aa2 Fix compile errors on Linux
Source/../types.h:35:10: fatal error: DiabloUI/_diabloui.h: No such file or directory
 #include "DiabloUI/_diabloui.h"

---

Source/../Source/init.h:43:109: error: fastcall and stdcall attributes are not compatible
 LRESULT (__stdcall *__fastcall SetWindowProc(void *func))(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);

---

Source/missiles.cpp:915:27: error: unable to find numeric literal operator ‘operator""i64’
  *(_QWORD *)&Dirs[0][2] = 0i64;

---

Source/world.cpp:38:1: error: narrowing conversion of ‘3937053354’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing]

---

Source/lighting.cpp:429:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned char’ inside { } [-Wnarrowing]

---

Source/objects.cpp:5459:62: error: unable to find numeric literal operator ‘operator""i64’
      while ( !(plr[v53]._pMemSpells[1] & ((unsigned __int64)(1i64 << v60) >> 32) | plr[v53]._pMemSpells[0] & (unsigned int)(1i64 << v60)) );

---

Source/control.cpp:488:9: error: unable to find numeric literal operator ‘operator""i64’
   v26 = 1i64;

---

Source/objects.cpp:243:1: error: narrowing conversion of ‘255’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]

---

Source/gamemenu.cpp:22:1: error: narrowing conversion of ‘2147483648’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing]

---

Source/sound.cpp:41:88: error: narrowing conversion of ‘240’ from ‘unsigned int’ to ‘char’ inside { } [-Wnarrowing]

---

Source/quests.cpp:46:1: error: narrowing conversion of ‘255’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]

---

Source/player.cpp:4666:8: error: unable to find numeric literal operator ‘operator""i64’
  v14 = 0i64;

---

Source/init.cpp:546:109: error: fastcall and stdcall attributes are not compatible
 LRESULT (__stdcall *__fastcall SetWindowProc(void *func))(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)

---

Source/items.cpp:114:1: error: narrowing conversion of ‘(item_effect_type)255’ from ‘unsigned int’ to ‘char’ inside { } [-Wnarrowing]

---

Source/items.cpp:307:1: error: narrowing conversion of ‘(unique_base_item)255’ from ‘unsigned int’ to ‘char’ inside { } [-Wnarrowing]

---

Source/items.cpp:854:8: error: unable to find numeric literal operator ‘operator""i64’
  v37 = 0i64;

---

Source/items.cpp:471:1: error: narrowing conversion of ‘(item_equip_type)255’ from ‘unsigned int’ to ‘char’ inside { } [-Wnarrowing]
2018-06-07 22:44:03 +02:00
galaxyhaxzandGitHub bcb3abe96b Add files via upload 2018-06-06 21:27:39 -05:00