Commit Graph

245 Commits

Author SHA1 Message Date
Zezula Ladislav
67fde87202 + Fixed build warnings in VS 2015 2018-04-03 15:13:41 +02:00
Ladislav Zezula
008a48ed99 + Proper version in CMakeLists.txt 2017-12-23 17:06:31 +01:00
Ladislav Zezula
be4c064ae4 Merge pull request #124 from pali/master
Merged. Thank you for the contribution.
2017-12-23 17:05:31 +01:00
Pali Rohár
4e79ab4ac4 Fix compiling storm_test executable
Compile it really only if STORM_BUILD_TESTS is enabled and link it against
compiled StormLib library instead of compiling all source files again.
2017-12-22 23:21:55 +01:00
Ladislav Zezula
bd203c036b + Added uncommited file v9.22 2017-11-12 12:47:42 +01:00
Ladislav Zezula
60c3132e2a + All 4 test builds without errors 2017-11-11 16:14:34 +01:00
Ladislav Zezula
40d952839e + missing file 2017-11-11 16:09:05 +01:00
Ladislav Zezula
a7987cdaff + Updated VS 2008 workspace files 2017-11-11 16:06:42 +01:00
Ladislav Zezula
08a362935e + Full support for VS 2015
+ Removed support for VS 2012
+ Fixed bug on ANSI buids (Mac)
2017-11-11 16:00:12 +01:00
Ladislav Zezula
f0f124580a + LPCTSTR for Linux+Mac 2017-11-11 11:26:06 +01:00
Zezula Ladislav
375da4d9b5 + Pre-release 9.22 2017-11-10 08:58:03 +01:00
Ladislav Zezula
66015947a9 + Fixed Linux build 2017-11-09 20:13:03 +01:00
Zezula Ladislav
1cfb8f58c4 + UTF-8 UNICODE name of the listfile directory for the Linux testing folder 2017-11-09 20:02:41 +01:00
Zezula Ladislav
626030abc4 + Fixed Linux build 2017-11-09 19:52:42 +01:00
Ladislav Zezula
e549b5db4c + Tilde can now be a part of file name in the MPQ 2017-11-08 18:17:52 +01:00
Zezula Ladislav
251c47d320 Merge branch 'master' of https://github.com/ladislav-zezula/StormLib 2017-11-08 15:33:46 +01:00
Zezula Ladislav
dae0b690f7 + SFileAddListFile and SFileCompactArchive now take "const TCHAR *" instead of "const char *"
+ Fixed some bugs
2017-11-08 15:31:45 +01:00
Ladislav Zezula
6469885f29 + Fixed small bug 2017-11-07 21:38:56 +01:00
Zezula Ladislav
0ff84d5aed Merge branch 'master' of https://github.com/ladislav-zezula/StormLib 2017-10-30 14:32:10 +01:00
Zezula Ladislav
454776ae4e + Fixed an AlwaysTrue condition 2017-10-30 14:31:52 +01:00
Ladislav Zezula
962a737ba2 Merge pull request #115 from Lectem/fix_cmake
CMake: Remove misleading opts add DLL support - fixes #114
Merged. Thank you for the contribution.
2017-10-23 12:29:38 +02:00
Ladislav Zezula
1de5fee2b6 Merge branch 'master' of https://github.com/ladislav-zezula/StormLib 2017-10-17 20:07:08 +02:00
Ladislav Zezula
723099c90e + Cosmetics 2017-10-17 20:06:49 +02:00
Lectem
4fb5d2c7f4 CMake: Remove misleading opts add DLL support
This commit fixes #114

The options UNICODE and BUILD_DYNAMIC_MODULE were only changing the name
of the libraries and not the flags used for compilation.
I removed them for now, but if we want to add Unicode/Runtime version to
CMake it will be possible later.
This fixes #114 as the .lib created by CMake on windows can no more be
mistaken for another one. If people need to build a specific version of
the library, they can for now use the cmake cache to change the /M(D/T)
flag and/or add the UNICODE and _UNICODE defines.

I changed the option name for the test executable so that it won't
conflict with other projects, and made sure BUILD_TESTING is checked.
When BUILD_TESTING (the official option for CTest) is ON,
STORM_BUILD_TESTS is by default ON. If BUILD_TESTING is set to OFF, then
STORM_BUILD_TESTS can only be set to OFF.

I also added the stormlib_dll/StormLib.def file to the source list when
using MSVC, which means you can now correctly create StormLib.dll and
its associated .lib and .exp by setting BUILD_SHARED_LIBS to ON.
2017-09-19 11:18:52 +02:00
Ladislav Zezula
17c1dd1a6a Merge pull request #113 from Lectem/STORMLIB_NO_AUTO_LINK
Stormlib no auto link
2017-09-18 10:33:14 +02:00
Lectem
2d529bcb82 Add STORMLIB_NO_AUTO_LINK define to disable linking with pragma 2017-09-17 14:46:43 +02:00
Lectem
000b3a6635 cmake target_* requires v2.8.12 2017-09-17 14:27:09 +02:00
Zezula Ladislav
1ab0ad9c18 Merge branch 'master' of https://github.com/ladislav-zezula/StormLib 2017-08-29 15:08:20 +02:00
Zezula Ladislav
431570180b + Fixed patching bug 2017-08-29 15:08:02 +02:00
Ladislav Zezula
0b72bdfa3a Merge pull request #110 from Lectem/patch-2
SFileSetFilePointer error when new pointer is <0
2017-08-28 11:06:20 +02:00
Lectem
951f416398 SFileSetFilePointer error when new pointer is <0
The standard behaviour for fseek / SetFilePointer when the new pointed value would be negative is to not move the pointer and return an error.
See : https://msdn.microsoft.com/en-us/library/windows/desktop/aa365541(v=vs.85).aspx `If a new file pointer is a negative value, the function fails, the file pointer is not moved, and the code returned by GetLastError is ERROR_NEGATIVE_SEEK.`
2017-08-28 00:08:54 +02:00
Zezula Ladislav
adac4aa0f5 + Fixed issue "Internal Files Creation Settings #96" 2017-08-17 10:20:11 +02:00
Zezula Ladislav
2576998c88 + Fixed bug in processing Huffmann compression 2017-08-17 09:21:25 +02:00
Zezula Ladislav
76976e56a2 + Space and tab can both be part of the file name 2017-08-07 08:43:37 +02:00
Zezula Ladislav
80021e4a67 + Fixed bug when SFileAddFileEx could add a file with MPQ_FILE_SINGLE_UNIT to a Warcraft III map 2017-07-28 10:43:49 +02:00
Ladislav Zezula
f813753a66 Added support for PG1.11.973 protector 2017-07-26 20:34:02 +02:00
Ladislav Zezula
6fc99332b5 Merge pull request #100 from namreeb/master
Updated CMakeLists.txt to accurately name output file under Windows
2017-03-31 15:08:28 +02:00
namreeb
10fa5dded1 Updated CMakeLists.txt to accurately name output file under Windows 2017-03-09 08:39:29 -10:00
Zezula Ladislav
69c5b0682b + Removed DEFINE from CMakeLists.txt
+ Fixed paths to include files
2017-03-09 13:12:34 +01:00
Ladislav Zezula
ee273364aa + Fixed leaked handle when _stat fails 2017-01-17 20:41:26 +01:00
Zezula Ladislav
9915997070 + By "2 GB", I really mean 2 GB. 2017-01-12 04:58:27 +01:00
Ladislav Zezula
57f87e898d + BZIP2 updated 2017-01-11 20:05:27 +01:00
Ladislav Zezula
e9f9b9bc58 + Updated subversion number in CMakeLists.txt 2016-12-18 16:38:12 +01:00
Ladislav Zezula
0e138c27d3 + bzip2 upgraded to 1.0.6 2016-12-16 20:25:59 +01:00
Ladislav Zezula
2ab12329c1 + Release 9.21 v9.21 2016-12-12 23:01:36 +01:00
Ladislav Zezula
ecf46db123 + Fixes by Pali Rohar 2016-11-20 22:27:12 +01:00
Ladislav Zezula
6ce23ad12f Merge pull request #92 from Lectem/patch-1
Merged.
2016-11-13 09:51:18 +01:00
Lectem
5e668b69a4 use DWORD for get/setlasterror 2016-11-13 02:35:46 +01:00
Ladislav Zezula
64e6101777 + Define put back 2016-11-08 20:56:56 +01:00
Ladislav Zezula
5727880a5a + CMakeLists.txt fixed. 2016-11-08 15:25:58 +01:00