Commit Graph
75 Commits
Author SHA1 Message Date
Anders Jenbo 893efd51ea Merge branch 'master' of github.com:diasurgical/devilution 2020-09-27 03:34:42 +02:00
Anders Jenbo 31ac716c3d 99 lines of documentation (#2058) 2020-07-07 19:36:18 +02:00
Anders Jenbo 7108145a04 Merge branch 'master' of github.com:diasurgical/devilution 2020-04-14 15:30:49 +02:00
Robin Eklind 23dca91a95 docs: add function documentation to appfat.cpp 2020-04-14 10:04:36 +02:00
Anders Jenbo af7db10bac Correct switch order for TraceErrorDD
This fixes the jump table at the end of the function
https://github.com/galaxyhaxz/devastation/blob/master/FIXES/appfat.cpp
2020-04-11 08:36:53 +02:00
Anders Jenbo f4c181dd70 Correct size of app_fatal
The call to ExitProcess(1) can be seen in the original ASM, but still
isen't emitted by the compiler for our code :/
2020-04-11 08:36:53 +02:00
Anders Jenbo 295dc35429 Renable delete operator
This aligns the first instructions, now that we only target C++ it's we
can safly enable it. Should be moved to storm.h.
2020-04-11 08:36:53 +02:00
Anders Jenbo 2ec7c78eae Format source 2020-04-08 22:28:53 +02:00
Anders Jenbo c384711a5f Backport cleanups from hellfire branch 2020-04-08 20:16:32 +02:00
Manuel Alfayate Corchete 03662be548 Remove atexit() calls and implement a diablo_deinit() function instea… (#694)
* Remove atexit() calls and implement a diablo_deinit() function instead that cleans up every subsystem if it has been init before.
2020-04-08 13:27:02 +02:00
Anders Jenbo 3c5982083f Merge branch 'master' of github.com:diasurgical/devilution 2020-04-06 12:05:13 +02:00
Anders Jenbo 2cdb83c8ff Fix signature of FuncDlg properly
Previous fix caused a small diff, see:
https://docs.microsoft.com/en-us/previous-versions/ms960202%28v%3dmsdn.10%29
2020-04-06 05:43:20 +02:00
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 776ab10476 Merge branch 'master' of github.com:diasurgical/devilution 2020-03-29 23:40:05 +02:00
Anders Jenbo c677e783c5 Correct typo in error message 2020-03-09 01:37:54 +01: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
Anders Jenbo 25993b4043 Merge branch 'master' of github.com:diasurgical/devilution 2020-02-14 23:03:31 +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
Anders Jenbo c26fa8fa3f Remove threading from miniwin 2020-02-11 01:24:43 +01:00
Anders Jenbo 08aa6a860a Move generic helpers out of miniwin 2020-02-01 13:56:08 +01:00
Anders Jenbo d4ff81ce90 Correct typo 2020-01-05 05:26:59 +01:00
Anders Jenbo 40cea40aa4 Remove windows call types collisions 2019-12-26 05:00:02 +01:00
Anders Jenbo 3d5d28d4ec Fix calling init_cleanup on shutdown
- Fixes saving audio volume
- Fix memeory leak warnings

Thanks to @de4me for pointing this out
2019-11-12 19:48:37 +01:00
Anders Jenbo a8e4db538f Display SDL error messages in UI dialog
This will also end the application in most cases
2019-10-12 23:02:04 +02:00
Anders Jenbo d840f388c7 Merge branch 'master' of github.com:diasurgical/devilution 2019-10-08 22:05:10 +02:00
Anders Jenbo ba9288c6cf Unify error dialogs, for looks and portability
- Use UiOkDialog() to display all error messages
- Add SDL simple message, and console fallbacks to UiOkDialog()
- Boot graphics early on to facilitate most error messages with build in
gui
- Some more miniwin clean ups
2019-10-06 01:27:11 +02:00
Anders Jenbo a8dd5dcd4a Correct signature of FuncDlg
This reduces a lot of the casting in appfat.cpp
2019-10-04 09:28:03 +02:00
Gleb Mazovetskiy 4ea3a4e941 Make Source/ dialogs call DiabloUI/dialogs.cpp
The diabdat.mpq absence error is handled by stubbing the art with solid
colors.
2019-10-03 08:17:32 +02:00
Anders Jenbo e88e574c5f Drop unimplemented code 2019-09-26 07:32:47 +02:00
Anders Jenbo 1d03064fee Clean up sound code 2019-09-25 11:32:30 +02:00
Anders Jenbo 88813c4042 Strip some now unused parts of miniwin and windows api 2019-09-25 01:18:42 +02:00
Anders Jenbo c1fb75d738 Remove check for Windows platform 2019-09-13 03:56:37 +02:00
Anders Jenbo 4e1e62d6e9 Remove inactive error logging
Not easy to port, little value, not in Mac port
2019-09-13 03:56:35 +02:00
Anders Jenbo f605138c79 Strip ASM code 2019-08-26 13:33:03 +02:00
Anders Jenbo f187fe7d3a Merge branch 'master' of github.com:diasurgical/devilution 2019-06-22 18:14:48 +02:00
Anders Jenbo a7788ccddf Format bin exact code 2019-06-17 04:55:41 +02:00
Anders Jenbo 23e7737c75 Merge branch 'master' of github.com:diasurgical/devilution
Fixes #92
2019-05-05 00:27:08 +02:00
Anders Jenbo f07ae3e4ad Clean up appfat.cpp 2019-05-02 00:16:46 +01:00
Xadhoom 6856fb74e2 Merge upstream beanch 'devilution/master' 2019-04-25 20:44:01 +00:00
Anders Jenbo 65b9fb87a8 Merge branch 'TownDead' 2019-04-24 14:08:25 +02:00
galaxyhaxz b76156e206 Implement breakpoint handler 2019-04-22 21:13:34 -05:00
galaxyhaxz 540892ff9d Preliminary support for fixed header files 2019-04-21 17:20:38 +02:00
galaxyhaxz 4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
Anders Jenbo d8bb37349e Merge branch 'master' of github.com:diasurgical/devilution 2019-04-06 04:34:49 +02:00
Anders Jenbo d2174e3454 Apply code style 2019-04-05 21:54:45 +02:00
Anders Jenbo a907a4d49b Merge branch 'master' of github.com:diasurgical/devilution 2019-04-05 15:21:53 +02:00
galaxyhaxz 4cf4b15b33 TraceError DS/DD (#796) 2019-03-30 11:31:35 +01:00
galaxyhaxz 5238265702 Implement assert support (#791) 2019-03-29 21:26:37 -05:00
Xadhoom 5283a9ffd1 Put everything into namespace dvl 2019-03-11 20:10:23 +00:00