Skip to content

Commit 232da78

Browse files
committed
Merge branch 'main' into headless_sh
2 parents e50eec4 + 8e5bb95 commit 232da78

File tree

757 files changed

+1854
-110745
lines changed

Some content is hidden

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

757 files changed

+1854
-110745
lines changed

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/WWDebug/wwdebug.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343

4444

4545
#include "wwdebug.h"
46-
#include <windows.h>
4746
//#include "win.h" can use this if allowed to see wwlib
4847
#include <stdlib.h>
4948
#include <stdarg.h>
@@ -53,6 +52,11 @@
5352
#include <signal.h>
5453
#include "Except.h"
5554

55+
#ifdef _WIN32
56+
#include <windows.h>
57+
#else
58+
#include <errno.h>
59+
#endif
5660

5761
static PrintFunc _CurMessageHandler = NULL;
5862
static AssertPrintFunc _CurAssertHandler = NULL;
@@ -79,7 +83,11 @@ void Convert_System_Error_To_String(int id, char* buffer, int buf_len)
7983

8084
int Get_Last_System_Error()
8185
{
86+
#ifdef _WIN32
8287
return GetLastError();
88+
#else
89+
return errno;
90+
#endif
8391
}
8492

8593
/***********************************************************************************************

Core/Libraries/Source/WWVegas/WWDebug/wwmemlog.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
#include "wwdebug.h"
4444
#include "Vector.H"
4545
#include "FastAllocator.h"
46-
#include <windows.h>
4746

4847
#define USE_FAST_ALLOCATOR
4948

@@ -70,7 +69,8 @@
7069
** Enable one of the following #defines to specify which thread-sychronization
7170
** method to use.
7271
*/
73-
#ifndef _UNIX
72+
#ifdef _WIN32
73+
#include <windows.h>
7474
#define MEMLOG_USE_MUTEX 0
7575
#define MEMLOG_USE_CRITICALSECTION 1
7676
#define MEMLOG_USE_FASTCRITICALSECTION 0
@@ -289,6 +289,10 @@ WWINLINE void * Get_Mem_Log_Mutex(void)
289289
return _MemLogCriticalSectionHandle;
290290

291291
#endif
292+
293+
#if DISABLE_MEMLOG
294+
return NULL;
295+
#endif
292296
}
293297

294298
WWINLINE void Lock_Mem_Log_Mutex(void)

Core/Libraries/Source/WWVegas/WWDebug/wwprofile.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
#include "wwprofile.h"
5454
#include "FastAllocator.h"
5555
#include "wwdebug.h"
56-
#include <windows.h>
5756
//#include "systimer.h"
5857
#include "systimer.h"
5958
#include "RAWFILE.H"

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

0 commit comments

Comments
 (0)