Commit Graph
161 Commits
Author SHA1 Message Date
Anders Jenbo 2fdbd39bb0 Clang-tidy: modernize-raw-string-literal 2021-06-27 01:38:34 +02:00
Anders Jenbo 5bb8f184db Clang-tidy: modernize-use-nodiscard 2021-06-27 01:15:19 +02:00
Anders Jenbo bf221f4322 Clang-tidy: readability-simplify-boolean-expr 2021-06-26 23:12:22 +02:00
Anders Jenbo 2bdb6caa07 Cleanup majority of remaning implicit bool conversions (#2234) 2021-06-26 21:05:45 +02:00
Gleb Mazovetskiy 4ea7ba0f5f 🚚 engine.h: Extract LoadLE32 and LoadBE32 2021-06-21 02:34:28 -07:00
Anders Jenbo a095bc0bf7 ♻️Migrate more code away from miniwin 2021-05-13 02:30:18 +02:00
obligaron a64f94d580 Move creation of file stream to new helper CreateFileStream 2021-05-10 08:34:12 +02:00
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.
2021-05-02 05:52:11 +02:00
Vladimir Olteanu bea21a5e20 Replace LOAD_LE32 & LOAD_BE32 with signedness- and endian-agnostic equivalents 2021-04-28 20:11:51 +02:00
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
2021-04-27 04:19:07 +02:00
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