Skip to content

Commit cc9c95a

Browse files
committed
2 parents 4731bac + e53e4d2 commit cc9c95a

748 files changed

Lines changed: 1715 additions & 110711 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Core/Libraries/Source/Compression/Compression.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ enum CompressionType
3232
COMPRESSION_MIN = 0,
3333
COMPRESSION_NONE = COMPRESSION_MIN,
3434
COMPRESSION_REFPACK,
35-
COMPRESSION_MAX = COMPRESSION_REFPACK,
3635
COMPRESSION_NOXLZH,
3736
COMPRESSION_ZLIB1,
3837
COMPRESSION_ZLIB2,
@@ -45,6 +44,7 @@ enum CompressionType
4544
COMPRESSION_ZLIB9,
4645
COMPRESSION_BTREE,
4746
COMPRESSION_HUFF,
47+
COMPRESSION_MAX = COMPRESSION_HUFF,
4848
};
4949

5050
class CompressionManager

Core/Libraries/Source/Compression/CompressionManager.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ const char *CompressionManager::getCompressionNameByType( CompressionType compTy
4545
static const char *s_compressionNames[COMPRESSION_MAX+1] = {
4646
"No compression",
4747
"RefPack",
48-
/*
4948
"LZHL",
5049
"ZLib 1 (fast)",
5150
"ZLib 2",
@@ -58,7 +57,6 @@ const char *CompressionManager::getCompressionNameByType( CompressionType compTy
5857
"ZLib 9 (slow)",
5958
"BTree",
6059
"Huff",
61-
*/
6260
};
6361
return s_compressionNames[compType];
6462
}
@@ -69,7 +67,6 @@ const char *CompressionManager::getDecompressionNameByType( CompressionType comp
6967
static const char *s_decompressionNames[COMPRESSION_MAX+1] = {
7068
"d_None",
7169
"d_RefPack",
72-
/*
7370
"d_NoxLZW",
7471
"d_ZLib1",
7572
"d_ZLib2",
@@ -82,7 +79,6 @@ const char *CompressionManager::getDecompressionNameByType( CompressionType comp
8279
"d_ZLib9",
8380
"d_BTree",
8481
"d_Huff",
85-
*/
8682
};
8783
return s_decompressionNames[compType];
8884
}

Core/Libraries/Source/WWVegas/CMakeLists.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@ target_include_directories(core_wwcommon INTERFACE
1818
.
1919
WWDebug
2020
WWLib
21+
WWMath
22+
WWSaveLoad
2123
)
2224

2325
# add_subdirectory(WWAudio)
2426
add_subdirectory(WWDebug)
2527
add_subdirectory(WWLib)
26-
# add_subdirectory(WWMath)
28+
add_subdirectory(WWMath)
2729
# add_subdirectory(Wwutil)
28-
# add_subdirectory(WWSaveLoad)
30+
add_subdirectory(WWSaveLoad)
2931
add_subdirectory(WWStub)
3032
# add_subdirectory(WW3D2)
3133
# add_subdirectory(WWDownload)
@@ -40,10 +42,9 @@ target_include_directories(core_wwvegas INTERFACE
4042
WWDebug
4143
#WWDownload
4244
WWLib
43-
#WWMath
44-
#WWSaveLoad
45+
WWMath
46+
WWSaveLoad
4547
#Wwutil
46-
#wwshade
4748
)
4849

4950
target_link_libraries(core_wwvegas INTERFACE
@@ -52,7 +53,7 @@ target_link_libraries(core_wwvegas INTERFACE
5253
# core_wwdownload
5354
core_wwlib
5455
# core_wwmath
55-
# core_wwsaveload
56+
core_wwsaveload
5657
# core_wwshade
5758
# core_wwutil
5859
)

Core/Libraries/Source/WWVegas/WWLib/CMakeLists.txt

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ set(WWLIB_SRC
7171
#md5.h
7272
mempool.h
7373
mmsys.h
74-
mpu.cpp
75-
MPU.H
7674
multilist.cpp
7775
multilist.h
7876
mutex.cpp
@@ -91,8 +89,6 @@ set(WWLIB_SRC
9189
RANDOM.H
9290
rawfile.cpp
9391
RAWFILE.H
94-
rcfile.cpp
95-
rcfile.h
9692
readline.cpp
9793
readline.h
9894
realcrc.cpp
@@ -102,8 +98,6 @@ set(WWLIB_SRC
10298
refcount.h
10399
#regexpr.cpp
104100
#regexpr.h
105-
registry.cpp
106-
registry.h
107101
#search.h
108102
sharebuf.h
109103
Signaler.h
@@ -134,14 +128,10 @@ set(WWLIB_SRC
134128
uarray.h
135129
vector.cpp
136130
Vector.H
137-
verchk.cpp
138-
verchk.h
139131
visualc.h
140132
widestring.cpp
141133
widestring.h
142134
win.h
143-
WWCOMUtil.cpp
144-
WWCOMUtil.h
145135
wwfile.cpp
146136
WWFILE.H
147137
wwstring.cpp
@@ -152,6 +142,21 @@ set(WWLIB_SRC
152142
XSTRAW.H
153143
)
154144

145+
if(WIN32)
146+
list(APPEND WWLIB_SRC
147+
mpu.cpp
148+
MPU.H
149+
rcfile.cpp
150+
rcfile.h
151+
registry.cpp
152+
registry.h
153+
verchk.cpp
154+
verchk.h
155+
WWCOMUtil.cpp
156+
WWCOMUtil.h
157+
)
158+
endif()
159+
155160
# Targets to build.
156161
add_library(core_wwlib STATIC)
157162
set_target_properties(core_wwlib PROPERTIES OUTPUT_NAME wwlib)

Core/Libraries/Source/WWVegas/WWLib/CRC.H

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
#define CRC_H
4242

4343
#include <stdlib.h>
44-
#ifdef _UNIX
45-
#include "osdep.h"
46-
#endif
44+
45+
// TheSuperHackers @compile feliwir 17/04/2025 include _ltrotl macros
46+
#include <Utility/intrin_compat.h>
4747

4848
/*
4949
** This is a CRC engine class. It will process submitted data and generate a CRC from it.

Core/Libraries/Source/WWVegas/WWLib/FastAllocator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818

1919
#include "FastAllocator.h"
20-
#include <new.h>
20+
#include <new>
2121

2222
static FastAllocatorGeneral* generalAllocator; //This general allocator will do all allocations for us.
2323

Core/Libraries/Source/WWVegas/WWLib/Vector.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#include <assert.h>
6262
#include <stdlib.h>
6363
#include <string.h>
64-
#include <new.h>
64+
#include <new>
6565

6666
#ifdef _MSC_VER
6767
#pragma warning (disable : 4702) // unreachable code, happens with some uses of these templates

Core/Libraries/Source/WWVegas/WWLib/WWFILE.H

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
#ifndef WWFILE_Hx
4141
#define WWFILE_Hx
4242

43-
#ifdef _UNIX
44-
#include "osdep.h"
45-
#endif
46-
4743
#define YEAR(dt) (((dt & 0xFE000000) >> (9 + 16)) + 1980)
4844
#define MONTH(dt) ((dt & 0x01E00000) >> (5 + 16))
4945
#define DAY(dt) ((dt & 0x001F0000) >> (0 + 16))

Core/Libraries/Source/WWVegas/WWLib/always.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
#include <assert.h>
4444
#include <new>
4545

46+
// TheSuperHackers @compile feliwir 17/04/2025 include utility macros for cross-platform compatibility
47+
#include <Utility/compat.h>
48+
4649
// Disable warning about exception handling not being enabled. It's used as part of STL - in a part of STL we don't use.
4750
#pragma warning(disable : 4530)
4851

Core/Libraries/Source/WWVegas/WWLib/argv.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@
4747
#include "always.h"
4848
#endif
4949

50-
#ifdef _UNIX
51-
#include "osdep.h"
52-
#endif
53-
5450
// Used to parse command line that is passed into WinMain.
5551
// It also has the ability to load a file with values to append to the command line.
5652
// Normally in WinMain() there would be a call Argv::Init(lpCmdLine, fileprefix).

0 commit comments

Comments
 (0)