Commit Graph
62 Commits
Author SHA1 Message Date
Gleb Mazovetskiy a091a56e8e Remove MAX_PATH restriction (#898)
Do not limit filesystem paths to 259 chars for MPQs, save files, and diablo.ini.

The MAX_PATH constant remains but now only limits path lengths within the MPQs.
2020-10-26 13:39:27 +01:00
Anders Jenbo d8367365d8 Apply fade out to all colors
Fixes #795
2020-09-28 07:57:35 +02:00
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 4b46361442 Remove some unused variables 2020-05-14 11:44:15 +02:00
Anders Jenbo 69ad34f58f Consistently use NULL instead of nullptr
While nullptr does have extra checking, most of the code uses NULL and
nullptr makes it harder to port the code to some targets like the
original XBox
2020-05-14 11:44:15 +02:00
Anders Jenbo 3c5982083f Merge branch 'master' of github.com:diasurgical/devilution 2020-04-06 12:05:13 +02:00
Anders Jenbo 10febf7e15 Decompose a few numbers 2020-04-06 05:43:20 +02:00
Anders Jenbo c540f74709 Clean up calls to WriteFile 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
Anders Jenbo 776ab10476 Merge branch 'master' of github.com:diasurgical/devilution 2020-03-29 23:40:05 +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 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 a9e955578a Correctly apply the red palette when taking screenshots 2020-02-08 23:07:19 +01:00
Anders Jenbo 08aa6a860a Move generic helpers out of miniwin 2020-02-01 13:56:08 +01:00
Anders Jenbo 913de17a56 Use SDL_Color nativly instead of converting betwen it and PALETTEENTRY 2020-01-31 01:20:10 +01:00
Anders Jenbo 6a0daa6217 Fix screen shot path 2020-01-27 00:46:38 +01:00
Anders Jenbo 4ff5c8987a Fix screen shots on big-endian 2020-01-27 00:46:38 +01:00
Gleb Mazovetskiy c8605f79bd capture.cpp: Replace WriteFile with <fstream> 2020-01-26 16:53:41 +01:00
Anders Jenbo 9a704ff2f0 Merge branch 'master' of github.com:diasurgical/devilution 2019-12-19 01:05:01 +01:00
Anders Jenbo 5fa0c5781b Backport cleanups from Hellfire branch 2019-12-15 06:14:57 +01:00
galaxyhaxz a0b0591826 Fix function order [capture.cpp] 2019-12-02 09:03:03 +01:00
Anders Jenbo 06bcd3c3f9 Handle file paths in a clean way
Belated birthday present for @mewmew

Functions for gettings paths have sensible names
It's using snprintf for safe? string concat
Paths don't use \ as path reporator, or magic marker
Drop code for copying pre 1.09 save games from the windows folder
2019-09-26 07:32:47 +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 1ebf8fe27d Remove unused fallbacks 2019-08-26 14:05:04 +02:00
Anders Jenbo 98ab9b9600 Merge branch 'master' of github.com:diasurgical/devilution 2019-08-18 08:07:33 +02:00
galaxyhaxz 86e552a9e7 Change PCX struct to match Z-Soft Manual 2019-07-22 21:09:56 +02:00
Pyr0Byt3 4f0252fcd6 fix screenshot paths 2019-07-22 04:59:58 +02:00
Anders Jenbo 60ee365dff Merge branch 'master' of github.com:diasurgical/devilution 2019-07-20 19:52:50 +02:00
Anders Jenbo 3bc8ba66b0 Use defines for more screen geometry values 2019-07-20 17:10:49 +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 e6f4e21631 Merge branch 'master' of github.com:diasurgical/devilution 2019-06-16 19:18:19 +02:00
Manuel K 97c1edd3a0 Use BUFFER_WIDTH 2019-06-05 20:13:34 +02: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 540892ff9d Preliminary support for fixed header files 2019-04-21 17:20:38 +02:00
galaxyhaxz fd53ad06ba Rename lock_buf 2019-04-16 20:16:35 -05:00
galaxyhaxz 4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
Robin Eklind 8e1a336afb Merge pull request #843 from mewpull/CapturePix
CapturePix bin exact
2019-04-08 10:43:54 +09:00
galaxyhaxzandmewmew a9b8ad1d88 Update Source/capture.cpp
Co-Authored-By: mewmew <[email protected]>
2019-04-08 10:35:46 +09:00
Robin Eklind b635b80981 CapturePal bin exact (#844) 2019-04-07 16:05:15 +02:00
Robin Eklind e57d5ae62b CapturePix bin exact 2019-04-07 16:31:55 +09:00
Anders Jenbo bc26a2f730 Merge branch 'master' of github.com:diasurgical/devilution 2019-03-18 21:52:35 +01:00
galaxyhaxz befd52c003 Fix type for 'gpBuffer' (#672) 2019-03-18 22:28:38 +09:00
Xadhoom 5283a9ffd1 Put everything into namespace dvl 2019-03-11 20:10:23 +00:00
Anders Jenbo 86018b174b Make DirecX usage C compatible 2018-12-31 03:17:08 +01:00
Anders Jenbo 4a62a7c678 Code style 2018-12-29 02:15:20 +01:00
Anders Jenbo 7dee72d446 C declaration (#498)
* Convert player.cpp functions to C
* Convert capture.cpp functions to C
2018-12-14 01:53:22 +01:00