Anders Jenbo
38dbcf7641
Format source
5 years ago
Anders Jenbo
5a8f8eadb1
Clean up appfat.cpp
5 years ago
Gleb Mazovetskiy
ec329e645c
Fix all "no-write-strings" warnings
5 years ago
qndel
41fc140628
GetErrorStr cleanup
6 years ago
Colin Pitrat
0ea1b81772
Fix typos
6 years ago
Anders Jenbo
31ac716c3d
99 lines of documentation ( #2058 )
6 years ago
Robin Eklind
23dca91a95
docs: add function documentation to appfat.cpp
6 years ago
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
6 years ago
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 :/
6 years ago
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.
6 years ago
Anders Jenbo
2ec7c78eae
Format source
6 years ago
Anders Jenbo
c384711a5f
Backport cleanups from hellfire branch
6 years ago
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
6 years ago
Anders Jenbo
0f514f25de
Apply WinAPI enums and macros
6 years ago
Anders Jenbo
c39f668deb
Enable some asserts that are helpful for testing
6 years ago
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)
6 years ago
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).
6 years ago
Anders Jenbo
3777219600
[hellfire] jogging menu options
6 years ago
Anders Jenbo
9def907915
Revert correct appfat.cpp for VC5
...
Borken in c62a9086b7 .
6 years ago
Anders Jenbo
c62a9086b7
[hellfire] Fix broken data
6 years ago
Anders Jenbo
adbd08137f
Work around VC5 DialogBoxParam definition
7 years ago
Anders Jenbo
a8dd5dcd4a
Correct signature of FuncDlg
...
This reduces a lot of the casting in appfat.cpp
7 years ago
Anders Jenbo
a7788ccddf
Format bin exact code
7 years ago
Anders Jenbo
f07ae3e4ad
Clean up appfat.cpp
7 years ago
galaxyhaxz
b76156e206
Implement breakpoint handler
7 years ago
galaxyhaxz
540892ff9d
Preliminary support for fixed header files
7 years ago
galaxyhaxz
4e01e03711
Cleanup default calling conventions
7 years ago
Anders Jenbo
d2174e3454
Apply code style
7 years ago
galaxyhaxz
4cf4b15b33
TraceError DS/DD ( #796 )
7 years ago
galaxyhaxz
5238265702
Implement assert support ( #791 )
7 years ago
Max Desiatov
269aa345bd
Fix downstream 64-bit builds
7 years ago
Anders Jenbo
81a3e0051d
Clean up multi_init_single & multi_init_multi ( #587 )
7 years ago
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
7 years ago
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 .
7 years ago
Anders Jenbo
77849aea72
Remove unused init ( #533 )
7 years ago
Anders Jenbo
47bf82b059
C compatability from a-d ( #518 )
7 years ago
Anders Jenbo
4a62a7c678
Code style
7 years ago
galaxyhaxz
86f00145f8
Remove empty_string garbage
7 years ago
Anders Jenbo
b1f6d3698f
Update style to use tabs
7 years ago
Anders Jenbo
fcc4e19287
Format debug related code
8 years ago
Andrew Dunstan
4c085a734b
clean wave.cpp
8 years ago
Andrew Dunstan
c2d49ff75f
add missing va_end "calls"
8 years ago
Anders Jenbo
b7b01e5a3b
Fix EOL
8 years ago
Andrew Dunstan
aedf7555d1
Remove A suffix from all string-related win32 API function names
8 years ago
galaxyhaxz
34938876e0
A few name corrections ( #203 )
8 years ago
galaxyhaxz
97360fca7c
Fix windows error dialogs ( #195 )
8 years ago
galaxyhaxz
775ae59e18
Fix function signatures and others ( #158 )
...
Fix InitObjects, themes.cpp, names
8 years ago
Robin Eklind
263f0aa360
Byte-identical version of appfat_cpp_init. ( #110 )
8 years ago
Adam Heinermann
128e9d89a2
Fixed a potential overflow in appfat ( #85 )
...
Refactored massive switch statements into something probably closer to reality.
8 years ago
galaxyhaxz
49a6f4f9fc
Add include guards, prepare for XRef ( #28 )
...
Add definitions, other junk.
8 years ago