Anders Jenbo
ba595451ec
Fix build warning
5 years ago
Kalebe Alves
0461529176
Move byte from engine.h
5 years ago
Anders Jenbo
a095bc0bf7
♻️ Migrate more code away from miniwin
5 years ago
Jmgr
c33182d6de
Modernize deprecated headers
5 years ago
Anders Jenbo
7912e510f0
🎨 Clean up overuse of SDL types
5 years ago
Anders Jenbo
f004c78824
🧹 performance-unnecessary-value-param
5 years ago
Anders Jenbo
c89bd9c001
🚨 Fix remaning warnings for clang and gcc
5 years ago
Anders Jenbo
5fdb9ce459
🎨 Format code
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
e7ae8ddd04
🚚 Move all enums to there respective headers
5 years ago
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
5 years ago
Anders Jenbo
433edc63ea
♻️ Consistently use pragma once to guard the headers
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Anders Jenbo
a2656637e4
🎨 Format source
5 years ago
Anders Jenbo
06b7c78406
Notes of untimly header cleanups
5 years ago
Anders Jenbo
f2f4de8e33
Reorder mpqapi.cpp
5 years ago
Anders Jenbo
4b46361442
Remove some unused variables
6 years ago
Joel Falcou
c4223d4c29
Per file basis use of extern C
6 years ago
Joel Falcou
64d26a7934
Sanitize use of namespace
...
Wrap individual headers in dvl namespace to prevent
including standard header in another namespace.
6 years ago
Anders Jenbo
cd18914026
Avoid void pointers
6 years ago
Gleb Mazovetskiy
82845004cc
Ensure _HASH/BLOCKENTRY are 16-bytes and aligned
6 years ago
Anders Jenbo
0383f9abcd
Add documentation to more files
6 years ago
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
6 years ago
Anders Jenbo
7f699dbad2
Remove more legacy savegame code
...
This code was only active in versions prior to 1.08
6 years ago
Anders Jenbo
40cea40aa4
Remove windows call types collisions
6 years ago
Anders Jenbo
7c071924ad
Format recently cleaned code
7 years ago
Anders Jenbo
2270bad1b9
Correct type of dwChar in mpqapi.cpp
7 years ago
Robin Eklind
2bc0fe09d8
mpqapi_alloc_block bin exact ( #1250 )
7 years ago
Sergey Semushin
af687e8fd8
Clean up mpqapi_flush_and_close.
7 years ago
Anders Jenbo
ee1f79dae7
Clean up mpqapi.cpp
7 years ago
Anders Jenbo
8af652c4e1
Clean up mpqapi_parse_archive_header
7 years ago
Anders Jenbo
0d36767304
Clean up mpqapi_write_header
7 years ago
galaxyhaxz
3a636fdcc6
Add missing functions for MI_Dummy ( #1004 )
7 years ago
Anders Jenbo
c0ec5a134c
Clean up mpqapi_can_seek
7 years ago
Anders Jenbo
bdc8786542
Clean up mpqapi_write_hash_table
7 years ago
Anders Jenbo
e0d3a5f9f0
Clean up mpqapi_write_block_table
7 years ago
galaxyhaxz
4e01e03711
Cleanup default calling conventions
7 years ago
JustAnotherGuid
51d6a71c87
mpqapi_reg_load_modification_time bin exact
7 years ago
JustAnotherGuid
449cfd4497
mpqapi_write_file bin exact ( #777 )
7 years ago
JustAnotherGuid
820e70cd94
Clean-up mpqapi_reg_store_modification_time ( #623 )
...
* Clean-up AddChest.
* (Work in progress) Clean-up InitL1Triggers
* Clean-up InitL1Triggers (Binary-exact version)
* Add /FAs flag.
* Rebase
* Accidental add.
* Minor modifications.
* Clean-Up mpqapi_reg_store_modification_time.
* Change to DWORD.
7 years ago
Anders Jenbo
cfbe27f3b8
Clean up ( #568 )
...
* Clean up mana checks
* Don't expose static globals
7 years ago
Anders Jenbo
9b7da61dcf
Auto format src
7 years ago
Anders Jenbo
98b0b5e71f
Compile mpqapi.cpp as C ( #554 )
...
* Fix mpqapi header
* Compile mpqapi.cpp as C
7 years ago
JustAnotherGuid
694be2da8d
Clean-up mpqapi_set_hidden ( #552 )
...
* Clean-up mpqapi_set_hidden
Co-Authored-By: JustAnotherGuid <46401660+JustAnotherGuid@users.noreply.github.com>
7 years ago
Anders Jenbo
77849aea72
Remove unused init ( #533 )
7 years ago
Anders Jenbo
b5f69dccdc
C compatability from d-p ( #519 )
7 years ago
Anders Jenbo
ab3a6208d2
Use "BOOLEAN" instead of "bool"
...
bool is not defined in C
7 years ago
Anders Jenbo
c46d92be7a
Format save game related files
8 years ago