Anders Jenbo
2fdbd39bb0
Clang-tidy: modernize-raw-string-literal
5 years ago
Anders Jenbo
5bb8f184db
Clang-tidy: modernize-use-nodiscard
5 years ago
Anders Jenbo
bf221f4322
Clang-tidy: readability-simplify-boolean-expr
5 years ago
Anders Jenbo
2bdb6caa07
Cleanup majority of remaning implicit bool conversions ( #2234 )
5 years ago
Gleb Mazovetskiy
4ea7ba0f5f
🚚 engine.h: Extract `LoadLE32` and `LoadBE32`
5 years ago
Anders Jenbo
a095bc0bf7
♻️ Migrate more code away from miniwin
5 years ago
obligaron
a64f94d580
Move creation of file stream to new helper CreateFileStream
5 years ago
Gleb Mazovetskiy
f33f7ae7eb
💨 Do not zero-initalize arrays we write to
...
`std::make_unique<T[]>(size)` always zero-initalizes the array.
C++20 has `std::make_unique_for_overwrite` to avoid that, while
older C++ versions can use the approach applied here.
5 years ago
Vladimir Olteanu
bea21a5e20
Replace LOAD_LE32 & LOAD_BE32 with signedness- and endian-agnostic equivalents
5 years ago
Gleb Mazovetskiy
ff03f932bf
Add messages to `static_assert`
...
Single-argument version is allegedly not supported by GCC < 9.1, though
it seemed to work fine.
https://www.gnu.org/software/gnulib/manual/html_node/assert_002eh.html
5 years ago
Jmgr
17c85814bf
Fix a few remaining C-style format in Log calls
5 years ago
Jmgr
1b7e0d2cb3
Migrate existing log entries
5 years ago
Anders Jenbo
a32ac83090
🎨 cleanup trivial trype comparisons
5 years ago
Anders Jenbo
2969b80163
🎨 Run readability-identifier-naming on all src sub-folders
5 years ago
Anders Jenbo
1e3ed903be
🎨 strip redundant else
5 years ago
Anders Jenbo
f004c78824
🧹 performance-unnecessary-value-param
5 years ago
Anders Jenbo
373f28736f
🎨 Acceptable parts of modernize-*
5 years ago
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
5 years ago
Anders Jenbo
c89bd9c001
🚨 Fix remaning warnings for clang and gcc
5 years ago
Gleb Mazovetskiy
4c0581ca5e
🧹 C++17: Use std::make_unique
5 years ago
Anders Jenbo
8c821e98d3
🚚 Restructure files
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
f450d6a125
🚚 Move defines to there proper files
5 years ago
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.
5 years ago
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
5 years ago
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Anders Jenbo
cee6029da0
🔥 Rely less on storm.h
5 years ago
Anders Jenbo
fbd86cd3c5
🎨 Mark noreturn functions as such
5 years ago
Anders Jenbo
1284333765
♻️ Use explicit types and remove globals from save file logic
5 years ago
Anders Jenbo
d37fb68809
Make header checks portable
5 years ago
pionere
2cbe239d6d
Revert "bugfix for vanilla diablo (set archive size to zero in case the file did not exists)"
...
This reverts commit 5fb3b6fa66 .
5 years ago
pionere
d5a0fa8e85
get rid of a few warnings
5 years ago
pionere
5fb3b6fa66
bugfix for vanilla diablo (set archive size to zero in case the file did not exists)
5 years ago
Anders Jenbo
e2a98b75fe
Clean up some magic values
5 years ago
Anders Jenbo
c833d55cc1
Clean up mpqapi_write_file_contents
5 years ago
Anders Jenbo
0bf9b1bfe6
Fix mpqapi_get_hash_index
5 years ago
qndel
bb54ed00e4
mpqapi_get_hash_index bin exact
5 years ago
qndel
8255c27f21
mpqapi_find_free_block bin exact ( #2182 )
5 years ago
qndel
e1406e241a
mpqapi_new_block bin exact
5 years ago
Anders Jenbo
f2f4de8e33
Reorder mpqapi.cpp
5 years ago
Anders Jenbo
a3505ab904
Remove the std namespace from uint32_t
...
Again to help older compileres that aren't C++11 aware.
6 years ago
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
6 years ago
Anders Jenbo
5641e2bdec
Fix MSVC build
6 years ago
Anders Jenbo
cd18914026
Avoid void pointers
6 years ago
Anders Jenbo
c384711a5f
Backport cleanups from hellfire branch
6 years ago
Gleb Mazovetskiy
82845004cc
Ensure _HASH/BLOCKENTRY are 16-bytes and aligned
6 years ago
Anders Jenbo
5c02333fc0
Only log savegame read/write in debug mode
6 years ago
Anders Jenbo
0383f9abcd
Add documentation to more files
6 years ago