Jmgr
17c85814bf
Fix a few remaining C-style format in Log calls
2021-04-26 23:11:15 +01:00
Jmgr
1b7e0d2cb3
Migrate existing log entries
2021-04-25 02:39:42 +02:00
Anders Jenbo
a32ac83090
🎨 cleanup trivial trype comparisons
2021-04-23 02:48:25 +02:00
Anders Jenbo
2969b80163
🎨 Run readability-identifier-naming on all src sub-folders
2021-04-22 03:53:35 +02:00
Anders Jenbo
1e3ed903be
🎨 strip redundant else
2021-04-22 00:39:48 +02:00
Anders Jenbo
f004c78824
🧹 performance-unnecessary-value-param
2021-04-22 00:08:19 +02:00
Anders Jenbo
373f28736f
🎨 Acceptable parts of modernize-*
2021-04-19 22:42:19 +02:00
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
2021-04-19 16:02:05 +02:00
Anders Jenbo
c89bd9c001
🚨 Fix remaning warnings for clang and gcc
2021-04-19 02:44:39 +02:00
Gleb Mazovetskiy
4c0581ca5e
🧹 C++17: Use std::make_unique
2021-04-18 20:08:17 +02:00
Anders Jenbo
8c821e98d3
🚚 Restructure files
2021-04-16 03:57:22 +02:00
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
2021-04-16 01:04:54 +02:00
Anders Jenbo
f450d6a125
🚚 Move defines to there proper files
2021-04-16 01:04:54 +02:00
Gleb Mazovetskiy
2f3e0cb18e
SDL1: Backport SDL2 logging
...
1. Backports SDL2 logging.
2. Adds a `--verbose` flag.
3. As an example, adds logging priority and category to a few log calls.
2021-04-12 08:24:38 +02:00
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
2021-04-09 15:13:02 +02:00
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
2021-04-09 15:13:02 +02:00
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
2021-04-06 15:21:25 +02:00
Anders Jenbo
630e507f63
🚚 Apply namespace
2021-04-06 15:21:25 +02:00
Anders Jenbo
cee6029da0
🔥 Rely less on storm.h
2021-03-27 17:46:09 +01:00
Anders Jenbo
fbd86cd3c5
🎨 Mark noreturn functions as such
2021-03-26 02:24:32 +01:00
Anders Jenbo
1284333765
♻️ Use explicit types and remove globals from save file logic
2021-03-09 22:27:11 +01:00
Anders Jenbo
d37fb68809
Make header checks portable
2021-03-02 12:17:13 +01:00
pionere
2cbe239d6d
Revert "bugfix for vanilla diablo (set archive size to zero in case the file did not exists)"
...
This reverts commit 5fb3b6fa66 .
2021-02-20 20:46:02 +01:00
pionere
d5a0fa8e85
get rid of a few warnings
2021-02-19 22:04:11 +01:00
pionere
5fb3b6fa66
bugfix for vanilla diablo (set archive size to zero in case the file did not exists)
2021-02-19 22:04:11 +01:00
Anders Jenbo
5bdbf18902
Merge branch 'master' of github.com:diasurgical/devilution
2021-01-05 22:44:11 +01:00
Anders Jenbo
e2a98b75fe
Clean up some magic values
2021-01-02 22:34:32 +01:00
Anders Jenbo
aa3c0242e7
Merge branch 'master' of github.com:diasurgical/devilution
2020-12-31 02:12:23 +01:00
Anders Jenbo
c833d55cc1
Clean up mpqapi_write_file_contents
2020-12-30 23:03:11 +01:00
Anders Jenbo
0bf9b1bfe6
Fix mpqapi_get_hash_index
2020-12-29 05:36:06 +01:00
qndel
bb54ed00e4
mpqapi_get_hash_index bin exact
2020-12-28 17:45:21 +01:00
qndel
8255c27f21
mpqapi_find_free_block bin exact ( #2182 )
2020-12-28 16:51:22 +01:00
qndel
e1406e241a
mpqapi_new_block bin exact
2020-12-28 16:50:47 +01:00
Anders Jenbo
fa3785a475
Merge branch 'master' of github.com:diasurgical/devilution
2020-11-04 03:02:48 +01:00
Anders Jenbo
f2f4de8e33
Reorder mpqapi.cpp
2020-11-04 00:01:29 +01:00
Anders Jenbo
a3505ab904
Remove the std namespace from uint32_t
...
Again to help older compileres that aren't C++11 aware.
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
5641e2bdec
Fix MSVC build
2020-04-14 16:05:29 +02:00
Anders Jenbo
7108145a04
Merge branch 'master' of github.com:diasurgical/devilution
2020-04-14 15:30:49 +02:00
Anders Jenbo
cd18914026
Avoid void pointers
2020-04-08 20:34:38 +02:00
Anders Jenbo
c384711a5f
Backport cleanups from hellfire branch
2020-04-08 20:16:32 +02:00
Anders Jenbo
776ab10476
Merge branch 'master' of github.com:diasurgical/devilution
2020-03-29 23:40:05 +02:00
Gleb Mazovetskiy
82845004cc
Ensure _HASH/BLOCKENTRY are 16-bytes and aligned
2020-03-16 02:19:49 +01:00
Anders Jenbo
5c02333fc0
Only log savegame read/write in debug mode
2020-03-09 00:19:31 +01:00
Anders Jenbo
0383f9abcd
Add documentation to more files
2020-03-02 02:29:28 +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
Gleb Mazovetskiy
4ed20e0607
mpqapi: Use format macros instead of literals
...
Testing if this builds on VS 2017
2020-02-22 23:44:30 +01:00
Gleb Mazovetskiy
768a07d7d0
mpqapi: Replace macro with template function
...
Fixes MSVC compatibility, where `__VA_ARGS__` is not implemented
correctly.
2020-02-22 23:07:52 +01:00
Gleb Mazovetskiy
c9c1c323cd
mpqapi cleanup ( #624 )
...
* mpqapi FStreamWrapper: Fix silly bugs
* mpqapi cleanup
1. Do not rely on stream positions for getting the initial file size.
2. Remove most `seek` calls that were unnecessary.
3. Replace magic numbers with constants.
4. A class to manage archive lifetime and all associated data.
* Revert "Revert "mpqapi: Log all fstream calls""
This reverts commit e08007670f .
* mpqapi: Fix saves on Amiga
Works around https://github.com/bebbo/libnix/issues/30
* mpqapi: Fix logging format specifiers
This fixes fstream logging on Amiga
* mpqapi: Do not ResizeFile unless it was modified
* Add tests for file_util
* mpqapi: Replace malloc/free with new[]/delete[]
* mpqapi: Keep track of size instead of using tellp
This reduces log noise and reliance on `tellp`.
* mpqapi: Refactor mpqapi_write_file_contents
* mpqapi: Ensure we don't seekp beyond EOF on Amiga
* mpqapi: Minor fixes
* mpqapi: Fix FSTREAM_CHECK on Windows
* mpqapi: Remove undefined methods from header
2020-02-22 19:19:13 +01:00
Anders Jenbo
e08007670f
Revert "mpqapi: Log all fstream calls"
...
This reverts commit c530b7f62b .
2020-02-16 02:57:19 +01:00