Commit Graph

60 Commits

Author SHA1 Message Date
Anders Jenbo 38dbcf7641 Format source 2020-12-02 00:52:38 +01:00
Anders Jenbo 5a8f8eadb1 Clean up appfat.cpp 2020-11-02 01:29:14 +01:00
Gleb Mazovetskiy ec329e645c Fix all "no-write-strings" warnings 2020-10-25 15:37:51 +01:00
qndel 41fc140628 GetErrorStr cleanup 2020-10-12 05:31:09 +02:00
Anders Jenbo 7e04c63977 Merge branch 'hellfire' of github.com:diasurgical/devilution 2020-10-11 23:53:07 +02:00
Colin Pitrat 0ea1b81772 Fix typos 2020-10-04 14:17:31 +02:00
Anders Jenbo 31ac716c3d 99 lines of documentation (#2058) 2020-07-07 19:36:18 +02:00
Anders Jenbo 659dc41aa5 Merge branch 'master' of github.com:diasurgical/devilution into hellfire 2020-04-26 22:10:34 +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 f066b57cd0 Merge master in to hellfire 2020-04-09 02:14:08 +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
Anders Jenbo cc0f92d45b Merge branch 'master' of github.com:diasurgical/devilution into hellfire 2020-04-06 06:09:30 +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 b040c04a18 Merge branch 'master' of github.com:diasurgical/devilution into hellfire 2020-04-04 07:56:06 +02: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 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 3777219600 [hellfire] jogging menu options 2020-01-09 23:58:25 +01:00
Anders Jenbo 9def907915 Revert correct appfat.cpp for VC5
Borken in c62a9086b7.
2019-12-15 07:16:44 +01:00
Anders Jenbo c62a9086b7 [hellfire] Fix broken data 2019-12-15 06:52:17 +01:00
Anders Jenbo adbd08137f Work around VC5 DialogBoxParam definition 2019-10-08 00:51:36 +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
Anders Jenbo a7788ccddf Format bin exact code 2019-06-17 04:55:41 +02:00
Anders Jenbo f07ae3e4ad Clean up appfat.cpp 2019-05-02 00:16:46 +01: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 d2174e3454 Apply code style 2019-04-05 21:54:45 +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
Max Desiatov 269aa345bd Fix downstream 64-bit builds 2019-03-08 03:07:21 +01:00
Anders Jenbo 81a3e0051d Clean up multi_init_single & multi_init_multi (#587) 2019-01-27 13:06:54 +01:00
Anders Jenbo f281178672 Clean up appfat.cpp (#585)
* Clean up appfat.cpp

GetErrorStr, TraceErrorDD, TraceErrorDS, TraceLastError, DDErrMsg,
DSErrMsg, ErrDlg, ErrOkDlg, DirErrorDlg, InsertCDDlg, FuncDlg,
init_cleanup, FreeDlg, center_window

* Fix style
2019-01-27 00:31:42 +01:00
Robin Eklind a969f5c6f3 Uncomment delete to make appfat.cpp compile as C.
Note, in the future, we want to figure out how the
delete operator was overloaded and included while
still compiling the project as C.

Most likely it was overloaded in the Storm header,
and being included by appfat.cpp (which is the first
file being compiled in alphabetic order), it was
included here.

Fixes #528.
2019-01-12 20:11:37 +01:00
Anders Jenbo 77849aea72 Remove unused init (#533) 2018-12-31 04:26:51 +01:00
Anders Jenbo 47bf82b059 C compatability from a-d (#518) 2018-12-29 15:12:19 +01:00
Anders Jenbo 4a62a7c678 Code style 2018-12-29 02:15:20 +01:00
galaxyhaxz 86f00145f8 Remove empty_string garbage 2018-11-06 09:42:27 +01:00
Anders Jenbo b1f6d3698f Update style to use tabs 2018-10-25 22:53:04 +02:00
Anders Jenbo fcc4e19287 Format debug related code 2018-10-22 01:45:27 +02:00
Andrew Dunstan 4c085a734b clean wave.cpp 2018-10-18 13:26:59 +02:00
Andrew Dunstan c2d49ff75f add missing va_end "calls" 2018-10-15 20:39:06 +02:00
Anders Jenbo b7b01e5a3b Fix EOL 2018-09-18 21:25:32 +02:00
Dennis Duda f83bceedfa Merge branch 'master' into win32_ansi 2018-09-16 20:58:15 +02:00
Andrew Dunstan aedf7555d1 Remove A suffix from all string-related win32 API function names 2018-09-16 02:52:51 +10:00