Commit Graph
51 Commits
Author SHA1 Message Date
Anders Jenbo 1d7a548cd7 Clean up nthread.cpp 2019-05-21 00:32:10 +01:00
galaxyhaxz 7fcbc7319c Fix merged function sound_update 2019-05-12 22:37:11 +01:00
Anders Jenbo faeb360c88 Revert multi.h to not include storm.h 2019-05-09 00:33:01 +02:00
Anders Jenbo 790197cae5 Define SEVTHANDLER 2019-05-08 19:15:27 +01:00
Anders Jenbo 8a142d3c46 Clean up multi_event_handler 2019-05-08 08:33:52 +01:00
galaxyhaxz cef65ea0b6 Implement Critical section constructor 2019-04-15 01:16:43 +02:00
galaxyhaxz 4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
Anders Jenbo fda317a24e Clean up storm/sound_update (#663) 2019-03-18 11:23:24 +09:00
Anders Jenbo 3da71b2aee Correct signature of SFileGetFileArchive (#599) 2019-03-10 10:45:15 +09:00
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
2018-12-30 19:22:40 +01:00
Robin Eklind 8c73745e82 Compile movie.cpp as C 2018-12-30 18:36:28 +01:00
Anders Jenbo 47bf82b059 C compatability from a-d (#518) 2018-12-29 15:12:19 +01:00
Anders Jenbo 4804def593 Convert storm.h to C (#501) 2018-12-14 13:32:58 +01:00
Anders Jenbo f505809699 C compatible enum.h and struct.h 2018-11-26 14:19:27 +01:00
Anders Jenbo 197e729ab0 Use BOOLEAN in storm 2018-11-26 13:42:52 +01:00
galaxyhaxz 24285a220f WinMain+Direct file access from HDD (#456) 2018-11-09 16:22:56 -06:00
Andrew Dunstan 1430acc47f msg.cpp cleanup part #0 2018-10-18 02:37:33 +02:00
Anders Jenbo fff0a9161c movie.cpp (#378) 2018-10-03 01:02:16 +02:00
galaxyhaxz 1a2a695967 Fix "DiabloUI" for GCC + disclaim.cpp
Implemented disclaim.cpp, you can now call it to show the Battle.net Beta disclaimer (kinda funny).

DiabloUI now has preliminary support for compiling under GCC. Just have to update the Makefile
2018-09-26 18:13:43 -05:00
galaxyhaxz c4fffee8df Merge pull request #309 from squidcc/storm_fixes
Fix some storm ordinal names and remove incorrect function declarations
2018-09-20 18:11:44 -05:00
galaxyhaxz c7c528bb03 DiabloUI.dll now works for single player (#310) 2018-09-20 00:52:01 -05:00
Andrew Dunstan 2fe00515b1 Fix some storm ordinal names and remove incorrect function declarations 2018-09-20 14:16:52 +10:00
galaxyhaxz 5a7f38d562 Implement "hero list" in DiabloUI 2018-09-19 18:13:12 -05:00
galaxyhaxz 1224d01161 Sync with master (#301) 2018-09-19 14:41:22 -05:00
galaxyhaxz 71c2149d46 First "working" version of diabloui.dll ^_^ (#221) 2018-09-18 21:26:25 +02:00
galaxyhaxz cd17ca323d Implement "fade.cpp" in DiabloUI (#219) 2018-09-18 21:26:20 +02:00
galaxyhaxz e7aa782e06 Implement 'artfont.cpp' in DiabloUI (#218) 2018-09-18 21:26:18 +02:00
galaxyhaxz 05b1f90027 Implement Diablo UI code (#206) 2018-09-16 17:39:31 -05:00
galaxyhaxz 5ff8756116 Fix junk (#174) 2018-08-21 23:58:17 -05:00
galaxyhaxz dba5e3dd53 Fixed for gcc
Stupid __stdcall
2018-07-19 02:11:42 -05:00
galaxyhaxz f50dab25ba Several fixes for storm/msgcmd (#146) 2018-07-19 02:05:50 -05:00
galaxyhaxz 0b4a31d04e Optimized for minimum size by default (#113) 2018-07-01 10:10:22 -05:00
Adam Heinermann 0c01fc41ad Created VS 2017 solution file and project files. (#93) 2018-06-28 07:42:47 -05:00
galaxyhaxz 0db106a5b4 Add support for Visual C++ 5.10 (#12)
* Update stuff
2018-06-14 02:38:27 -05:00
mewmew a441cc00df Implement memset32 and fix compilation errors for storm.h
Now Golem works on Linux as well.

---

Source/../defs.h: In function ‘void memset32(void*, unsigned int, size_t)’:
Source/../defs.h:35:8: error: expected ‘(’ before ‘{’ token
  __asm {
        ^
Source/../defs.h:36:3: error: ‘mov’ was not declared in this scope
   mov ecx, n

---

Source/../3rdParty/Storm/Source/storm.h:1300:15: error: conflicting declaration of C function ‘int SNetGetProviderCaps(_SNETCAPS*)’
 int __stdcall SNetGetProviderCaps(struct _SNETCAPS *);

---

Source/../3rdParty/Storm/Source/storm.h:1297:18: error: conflicting declaration of C function ‘void* SNetRegisterEventHandler(int, void (__attribute__((__stdcall__)) *)(_SNETEVENT*))’
 void * __stdcall SNetRegisterEventHandler(int,void (__stdcall*)(struct _SNETEVENT *));

---

Source/../3rdParty/Storm/Source/storm.h:1299:15: error: conflicting declaration of C function ‘int SNetInitializeProvider(long unsigned int, _SNETPROGRAMDATA*, _SNETPLAYERDATA*, _SNETUIDATA*, _SNETVERSIONDATA*)’
 int __stdcall SNetInitializeProvider(unsigned long,struct _SNETPROGRAMDATA *,struct _SNETPLAYERDATA *,struct _SNETUIDATA *,struct _SNETVERSIONDATA *);

---

Source/multi.cpp:1046:75: error: cannot convert ‘_SNETPROGRAMDATA*’ to ‘client_info* {aka _client_info*}’ for argument ‘2’ to ‘BOOL SNetInitializeProvider(DWORD, client_info*, user_info*, battle_info*, module_info*)’
2018-06-11 09:09:41 +02:00
galaxyhaxz 81f360f8bb Update storm.dsp 2018-06-09 05:23:42 -05:00
galaxyhaxz 1a9cb74ede Delete StdAfx.h 2018-06-09 05:22:54 -05:00
galaxyhaxz 4d003de66b Delete StdAfx.cpp 2018-06-09 05:22:45 -05:00
galaxyhaxz ecb2747d24 Delete _storm.h 2018-06-09 05:22:37 -05:00
galaxyhaxz 8ab44ba18e Revert EOL for windows 2018-06-08 21:30:50 -05:00
galaxyhaxz 53da0929d3 Delete storm.def 2018-06-08 21:30:29 -05:00
galaxyhaxz e8bc617743 Fix compatibility with GNU/MSVC 2018-06-08 21:14:44 -05:00
galaxyhaxz 0e81dfa087 Fix EOL 2018-06-08 21:12:27 -05:00
galaxyhaxz 84e734e55b Make compatible with both GNU/MSVC 2018-06-08 21:09:45 -05:00
mewmew 445520a31d Copy storm.def and diabloui.def to work with VS and GCC
Updates #5.
2018-06-09 00:16:26 +02:00
mewmew f5f76f8b8a Fix build on Linux 2018-06-08 11:23:30 +02:00
galaxyhaxz b1ee40f6e7 Revert "Add preliminary support for compiling on Linux" 2018-06-07 22:00:35 -05:00
mewmew 1836399875 Fix linking against storm.dll and diabloui.dll
* add aliases for storm exports to handle __stdcall calling convention on Linux
* mark external functions as extern "C"
2018-06-08 01:28:20 +02:00
galaxyhaxz a775fe4fd5 Delete .gitignore 2018-06-06 21:30:07 -05:00
galaxyhaxz c4eb2b777c Add files via upload 2018-06-06 21:23:06 -05:00