Commit Graph

231 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Bogdan Gligorijevic
f47c7c0aa6 Add more file extensions 2021-02-27 11:42:36 +01: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
2020-11-21 04:27:09 +01:00
Ladislav Zezula
b13aaed6d0 Fixed some variants of NP_Protect-ed maps 2020-11-18 19:12:53 +01:00
Ladislav Zezula
725327a23b Added missing header file 2020-11-02 12:36:16 +01:00
Ladislav Zezula
fe0e63449b Added missing files 2020-11-02 12:09:59 +01:00
Ladislav Zezula
080158ee13 Added universal makefile for Visual Studio 2020-10-26 10:41:57 +01:00
Ladislav Zezula
f3560fa9af Name conflict with Unreal Engine 4: TBitArray 2020-10-26 08:11:00 +01:00
Ladislav Zezula
ece4f1ad66 TBitArray: Changed struct to class 2020-10-25 16:26:18 +01:00
Ladislav Zezula
738444bddc Changed PLATFORM_* to STORMLIB_* 2020-10-24 09:21:20 +02:00
Ladislav Zezula
51d49e2e16 TBitArray made private 2020-10-24 08:19:07 +02:00
Ladislav Zezula
ce0ae9aff3 Migrated to VS 2019 2020-10-07 12:32:05 +02:00
Ladislav Zezula
4fc81fbbe7 Merge branch 'master' of https://github.com/ladislav-zezula/StormLib 2020-09-22 17:03:08 +02:00
Ladislav Zezula
4a07a5851c Added support for NP_Protect protector (SC2 Maps) 2020-09-22 17:02:57 +02:00
Маша
73f9d0e1bb change ERROR_NEGATIVE_SEEK to ESPIPE
looks better if we want to differ INVALID_PARAMETER and incorrect seek I think
2020-09-02 20:34:25 +04:00
Ladislav Zezula
29fcb13cba Fixed type cast 2020-08-31 14:01:38 +02:00
Ladislav Zezula
65784a4ee9 Fixed missing hash table in case when HET table exists 2020-08-31 07:36:54 +02:00
Ladislav Zezula
f438d59c5c * Removed sprintf as source of incompatibilities
* Fixed bug
2020-08-26 10:17:05 +02:00
Lajos.Meszaros
aff1f7d644 Removed if statement, which always evaluates to true 2020-08-14 16:52:14 +02:00
Ladislav Zezula
ac0dfb94b0 Loading of MPQs v 4.0 with fake MPQ headers 2020-08-09 11:24:16 +02:00
Ladislav Zezula
efa7e50ef7 Fixed cdecl problem 2020-06-29 16:30:36 +02:00
Ladislav Zezula
0c05d9196b Fixed calling convention 2020-06-17 17:37:16 +02:00
Ladislav Zezula
0bed08c704 Merge branch 'master' of https://github.com/ladislav-zezula/StormLib 2020-06-17 17:19:32 +02:00