Commit Graph

378 Commits

Author SHA1 Message Date
Anders Jenbo
29bef29a2b Fix enumeration values not handled in switch warning 2021-07-17 16:55:37 +02:00
Ladislav Zezula
c5fb5c7dfa Beautifying 2021-07-06 22:47:39 +02:00
Ladislav Zezula
48c3ae6215 Fixed ZLIB decompression 2021-07-06 18:29:52 +02:00
Ladislav Zezula
ce074eaf7a Fixed infinite loop in BZIP decompression 2021-07-02 23:53:06 +02:00
Ladislav Zezula
18e92b7592 Merge pull request #225 from ladislav-zezula/AlignmentAware
Alignment aware
2021-05-17 15:24:11 +02:00
Ladislav Zezula
26b2f0e8b6 PDWORD -> LPDWORD 2021-05-17 15:19:36 +02:00
Ladislav Zezula
b3c4fa29a1 Removed asserts 2021-05-17 13:01:38 +02:00
Ladislav Zezula
33bdae86c2 Added alignment-aware block encryption/decryption 2021-05-17 12:57:54 +02:00
Ladislav Zezula
a3332c7c9b nError -> dwErrCode 2021-05-17 10:04:06 +02:00
Ladislav Zezula
a7ebfbccb7 Merge pull request #223 from ladislav-zezula/CLANG_12_MAC
Clang 12 mac
2021-05-15 19:56:19 +02:00
Ladislav Zezula
05d3a57b8a Fixed #endif 2021-05-15 19:34:58 +02:00
Ladislav Zezula
026e9b23ad LTC_NO_PROTOTYPES splitted into multiple sub-macros 2021-05-15 19:32:17 +02:00
Ladislav Zezula
94e32487c1 Added C++11 support in MAKEFILE 2021-05-15 18:33:19 +02:00
Ladislav Zezula
013b12f860 Fixed thread_local 2021-05-15 17:49:53 +02:00
Ladislav Zezula
3d6095e1dd Created branch for CLANG 12 expeiments 2021-05-15 08:26:15 +02:00
Ladislav Zezula
1e9f1cb321 User data is returned only if there are any, actually 2021-05-11 16:39:21 +02:00
Ladislav Zezula
398f9b7f40 Fixed infinite loop 2021-05-06 12:17:26 +02:00
Ladislav Zezula
efbeff88a0 Merge pull request #219 from glebm/patch-1
Thank you for the contribution!
2021-05-01 23:20:21 +02:00
Gleb Mazovetskiy
81c796ece8 Make nLastError thread-local
Before this fix, `Get/SetLastError` on non-Windows behaved incorrectly when used from multiple threads.
2021-05-01 22:04:29 +01:00
Ladislav Zezula
62001d116a Minor fix 2021-04-16 08:56:16 +02:00
Ladislav Zezula
dc867243c0 Merge pull request #216 from glebm/patch-1
StormPort.h: Do not assume mmap support
2021-04-08 16:52:19 +02:00
Gleb Mazovetskiy
062868dcdf StormPort.h: Do not assume mmap support
Do not assume mmap by default for the fallback platform, unless it's in a list of platforms that we know have mmap

Refs #215
2021-04-08 14:24:34 +01:00
Ladislav Zezula
95fabe8c09 Merge pull request #214 from ladislav-zezula/MmapTest
munmap as well
2021-04-01 18:33:02 +02:00
Ladislav Zezula
ba5fe7b17e munmap as well 2021-04-01 18:32:40 +02:00
Ladislav Zezula
302ace05a1 Merge pull request #213 from glebm/fix-byte-swapping
Fix big endian on non-Mac
2021-04-01 18:01:16 +02:00
Gleb Mazovetskiy
172ed20dec Fix big endian on non-Mac
Mac-specific functions aren't all that useful, simply replaces them with
a platform-agnostic implementation.
2021-04-01 16:41:02 +01:00
Ladislav Zezula
0a9057a09f Merge pull request #209 from ladislav-zezula/MmapTest
Mmap test
2021-03-31 17:40:34 +02:00
Ladislav Zezula
48f26f9f75 Linux fix 2021-03-31 17:40:00 +02:00
Ladislav Zezula
804b26bb85 Test 2021-03-31 17:22:23 +02:00
Ladislav Zezula
ce159e90bc * New platforms added
* These are now considered to be Mac compatible
2021-03-31 08:23:16 +02:00
Ladislav Zezula
c8063655be * Removed the Haiku-specific code
* The Haiku platform is now under STORMLIB_MAC
2021-03-31 08:06:04 +02:00
Ladislav Zezula
b8c83a5cd6 Merge pull request #208 from glebm/invalidate-handle
FileStream: Ensure file handle invalidation on error
2021-03-31 08:00:09 +02:00
Ladislav Zezula
bd4d6bdd41 Merge pull request #207 from glebm/macos-headers
Fix macOS build
2021-03-31 07:59:31 +02:00
Ladislav Zezula
e482d3847e Fixed SFileSetFilePointer on local files 2021-03-31 07:33:19 +02:00
Gleb Mazovetskiy
d7a3aec812 FileStream: Ensure file handle invalidation on error
If the file fails to open, the file handle must be invalidated.

Co-authored-by: Xadhoom <>
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
2021-03-31 04:16:14 +01:00
Gleb Mazovetskiy
c32b94022c Fix macOS build
Adds a few missing includes.

Co-authored-by: Anders Jenbo <anders@jenbo.dk>
2021-03-31 03:50:59 +01:00
Ladislav Zezula
7b3aadd499 Update README.md 2021-03-22 15:58:10 +01:00
Ladislav Zezula
669a3c702d Update README.md 2021-03-22 15:56:31 +01:00
Ladislav Zezula
fc59080e24 Update README.md 2021-03-22 15:55:51 +01:00
Ladislav Zezula
ef53ad5209 Update README.md 2021-03-22 15:54:07 +01:00
Ladislav Zezula
60c2dd0fa1 Merge pull request #200 from BogdanW3/master
Merged. Thanks for the contribution.
2021-02-27 12:31:12 +01:00
Bogdan Gligorijevic
f47c7c0aa6 Add more file extensions 2021-02-27 11:42:36 +01:00
Ladislav Zezula
173d20cefa Merge pull request #198 from nvs/fix-rud-win32
Merged. Thanks for the bugfix.
2020-12-26 07:47:08 +01:00
NVS
041aad3adb Ensure ReleaseUD for Win32 uses Unicode 2020-12-25 12:24:46 -08:00
Ladislav Zezula
1f11e8fba7 _countof macro should now work for all builds 2020-12-21 09:24:54 +01:00
Ladislav Zezula
7a0fcab2d2 Yet another NP_Protect version 2020-12-20 11:05:08 +01:00
Ladislav Zezula
383e1572ee Added support for amternative MPQ markers 2020-12-13 12:32:25 +01:00
Ladislav Zezula
866269d740 * Better checks for MPQ header v 4.0 2020-12-06 11:28:10 +01:00
Ladislav Zezula
b6102b2600 Removed trailing whitespace 2020-11-23 12:56:00 +01:00
Ladislav Zezula
809005c7f0 * Release 9.23
* Fixed regressions
* Fixed test program
v9.23
2020-11-21 04:27:09 +01:00