Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
ec3065b
Build: Add missing quote around TRINITY_BUILD_HOST_SYSTEM_RELEASE var…
trueorfalse666 Mar 21, 2026
db85525
Core/Transmog: Update transmog system to 12.0
Shauren Mar 21, 2026
db69834
DB: Fix base auth_database.sql
Shauren Mar 21, 2026
02e4fb5
Core/GameObjects: Initialize gameobject type before creating its model
Traesh Mar 21, 2026
92b9410
Core/GameObjects: Implement "EnableDoodadSets" for phaseableMO gameob…
Traesh Mar 21, 2026
e7b57e2
Core/Transmog: Fixed character select screen transmog when no transmo…
Shauren Mar 21, 2026
1984bd4
Core/Players: Fixed custom playercreateinfo_item using 0 in race/clas…
Shauren Mar 21, 2026
ddf40a6
DB/MaisaraCaverns: Added spawns up to Muro'jin and Nekraxx
Naddley Mar 22, 2026
db123e2
DB/Stormwind: Added Envoy Manat spawn at Stormwind Embassy
Naddley Mar 22, 2026
a738e69
Core/Transmog: Implemented TransmogHoliday.db2 transmog conditions
Shauren Mar 23, 2026
201f4e0
Scripts/Commands: Set worldstate when using .debug worldstate instead…
mdX7 Mar 23, 2026
3950890
Core/Transmog: Fix crash happening when trying to apply artifact over…
Shauren Mar 24, 2026
ed3d722
Core: Updated allowed build to 12.0.1.66562
Shauren Mar 25, 2026
b81a6d1
Core: Updated allowed build to 12.0.1.66666
Shauren Mar 26, 2026
4b6e6e1
Core/Commands: Refactor chat command internals to slightly reduce tem…
Shauren Mar 27, 2026
d5b62a0
Core/Utils: Fixed Trinity::GetTypeName return value when given std::t…
Shauren Mar 27, 2026
068c215
Core: Updated allowed build to 12.0.1.66709
Shauren Mar 28, 2026
8826872
Scripts/Spells: Implement Feral Lunge (#31746)
M1rix Mar 29, 2026
ba43c0e
Core/Commands: Fix copypaste
Shauren Mar 29, 2026
62a459d
Core/Spells: Changed SpellEffectInfo::CalcBaseValue return type to do…
Shauren Mar 30, 2026
28a73b6
Scripts/IsleOfDorn: Scripted on quest accept conversations for Bringe…
Naddley Mar 30, 2026
b1f3448
Core/WorldStates: Fixed thread unsafe access to realm wide world states
Shauren Mar 31, 2026
9e76613
Core/Spells: Suppress a few float/double/int conversion warnings in P…
Shauren Apr 1, 2026
94088a3
Core/Players: Define new CharacterFlags4
Shauren Apr 2, 2026
ed71522
Scripts/Darkflame Cleft: Implement The Candle King encounter (#31701)
aquadeus Apr 2, 2026
373c920
DB/DarkflameCleft: Fix areatrigger ids of recent custom areatrigger f…
mdX7 Apr 3, 2026
d3ed40a
Scripts/DarkflameCleft: Add Normal/Heroic difficulties and door data …
aquadeus Apr 3, 2026
1f68a6c
DB/Misc: Fix file name
mdX7 Apr 3, 2026
920ac54
Core/Chat: Define new chat msg types: CHAT_MSG_PING, CHAT_MSG_ENCOUNT…
mdX7 Apr 4, 2026
7eb491a
Core/Auras: Define new aura type
Shauren Apr 4, 2026
b3d246e
Dep/jemalloc: Fix build on arm64
Shauren Apr 5, 2026
bba0de5
Core/Network: Fix build with msvc versions < 19.43 (vs 2022 17.13)
Shauren Apr 5, 2026
0fe1c04
DB/Misc: Fix file name (for real this time)
Shauren Apr 5, 2026
1b4567e
Core/Auras: Split SpellModifierByClassMask into separate flat/pct types
Shauren Apr 6, 2026
cbd8123
Core: Updated allowed build to 12.0.1.66838
Shauren Apr 7, 2026
5579f44
DB/TheDreamrift: Added init. spawns
Naddley Apr 7, 2026
8371ebb
DB/DenOfNalorakk: Added init. spawns
Naddley Apr 7, 2026
8225b5b
Core/Spells: Change spell effect value type to double
Shauren Apr 8, 2026
7292714
Scripts/MurderRow: Implement Kystia Manaheart encounter (#31722)
aquadeus Apr 8, 2026
e063373
Scripts/Spells: Fixed crash in mage Ignite script
Shauren Apr 9, 2026
77e549c
Core/Spells: Fixed crashes happening when aura remove or proc script …
Shauren Apr 9, 2026
be5bc28
Core/Spells: Fix spell effect value calculation
Shauren Apr 9, 2026
325509b
Core/Random: Rename roll_chance_x functions to roll_chance
Shauren Apr 9, 2026
f947838
Scripts/ExilesReach: Update quests 55174/59932 Cooking Meat (#31771)
Saburo-Arasaka Apr 10, 2026
7bbf993
Scripts/Spell: Implement priest talent Tithe Evasion (#31764)
cristianvnt Apr 10, 2026
26de9d1
Scripts/EcoDomeAldani: Implement Azhiccar encounter (#31364)
aquadeus Apr 11, 2026
fa57c03
Core/Misc: TaskScheduler internal improvements
Shauren Apr 11, 2026
d538abf
Core/Players: Add more granular teleport state tracking, fixes delaye…
Shauren Apr 12, 2026
188a46f
Core/Items: Add missing comma in ItemTransmogrificationSlots array
VoxCore84 Apr 12, 2026
e1c4f98
Core/Units: Define new npc flag UNIT_NPC_FLAG_2_PERKS_VENDOR (#31786)
stevebone Apr 12, 2026
c703fac
Core/Players: Fixed fatigue timer appearing in some situations where …
Shauren Apr 13, 2026
9697588
DB/Harandar: Added createobject2 spawns for phase 26622
Naddley Apr 13, 2026
6b00763
DB/Harandar: Added some more spawns to Haranir allied race hub
Naddley Apr 13, 2026
37c2b1f
DB/Harandar: Implement Quest: "Initiation Day"
Naddley Apr 13, 2026
f82e03a
Scripts/Spells: Fix priest talent Translucent Image (#31763)
cristianvnt Apr 13, 2026
daae038
Core/Misc: Pass TaskContext by reference
Shauren Apr 14, 2026
5bd241a
Core/Auras: Update absorb aura priority ordering
Shauren Apr 14, 2026
a1105cc
Core/Misc: Update languages defines (#31794)
notwonderful Apr 15, 2026
2fa9207
Core/Misc: Change Float*chrono* typedefs to double to match return ty…
Shauren Apr 16, 2026
baad151
Core/PacketIO: Increase max packets allowed for CMSG_CHECK_IS_ADVENTU…
mdX7 Apr 17, 2026
aceba59
DB/Quest: Added queststarter for Quest: "A Voice from the Light"
Naddley Apr 17, 2026
362fd32
DB/Silvermoon: Added Lor'themar and Scouting Map spawns
Naddley Apr 17, 2026
907b221
Dep/gSOAP: Upgrade to 2.8.141
Shauren Apr 17, 2026
e9cb7be
Dep/gSOAP: Disable unused openssl integration
Shauren Apr 17, 2026
6f8a815
Core/Crypto: Support OpenSSL 4.0
Shauren Apr 17, 2026
71e48b5
CI/GitHub: Copy openssl dlls using pattern
Shauren Apr 17, 2026
e5a3693
CI/GitHub: Copy possibly other version of openssl dlls required for l…
Shauren Apr 17, 2026
fbdc1a1
Core/Misc: Update SkillType enum for 12.0.1 (#31796)
notwonderful Apr 17, 2026
afe55fe
Core/Bnet: Fixed bnetserver getting stuck on shutdown when running as…
Shauren Apr 18, 2026
3f3de8b
DB/Valdrakken: Add ambient flying dragons scene (#31797)
notwonderful Apr 18, 2026
400617e
DB/EversongWoods: Added graveyards (#31798)
notwonderful Apr 18, 2026
bc85732
DB/Zul'Aman: Added graveyards (#31799)
notwonderful Apr 19, 2026
a06e4f8
DB/Harandar: Added graveyards (#31802)
notwonderful Apr 19, 2026
3aa2ac2
DB/Voidstorm: Added graveyards (#31801)
notwonderful Apr 19, 2026
641fbfc
Core/PacketIO: Add missing SMSG_DISPLAY_PLAYER_CHOICE bit
Shauren Apr 19, 2026
780174a
Scripts/Silvermoon: Implement Intro skip for Midnight (#31804)
Naddley Apr 19, 2026
8f4e7ac
Core/Misc: Support arrays in RaceMask util
Shauren Apr 20, 2026
20a27b1
DB/EversongWoods: Implement Quest: "Harandar"
Naddley Apr 20, 2026
ed2a08d
Core/Spells: improve random radius calculation by reducing the chance…
Ovahlord Apr 21, 2026
4c14988
Core: Updated to 12.0.5
Shauren Apr 22, 2026
a23aeaf
SQL: Fix missing ;
Shauren Apr 22, 2026
def2ecb
Core/Players: Fixed use after free in loading transmog outfit slots
Shauren Apr 22, 2026
f8823d6
Core/Network: Build fix for boost 1.91
Shauren Apr 22, 2026
5423f36
Core/Misc: Apply random position selection improvements from ed2a08dc…
Shauren Apr 23, 2026
fdcf1d7
Core/Quests: Fix adding and removing quests
Shauren Apr 23, 2026
d551e5b
Core: Updated allowed build to 12.0.5.67114
Shauren Apr 23, 2026
4590f44
Core/PacketIO: Fix some housing updatefield structures
Shauren Apr 23, 2026
c5f2137
Core: Updated allowed build to 12.0.5.67186
Shauren Apr 24, 2026
9f9dd2a
Core/Misc: Update QuestInfo enum for (#31806)
notwonderful Apr 25, 2026
9f638c5
Core/Misc: Update Emote and TextEmotes enums for 12.0.5 (#31814)
notwonderful Apr 25, 2026
20bccaf
Scripts/Spells: Implement Reap (#31735)
aquadeus Apr 25, 2026
0c51d83
Core/Players: Move loading transmog outfits before loading items and …
Shauren Apr 25, 2026
16755f2
Scripts/Azjol-Nerub: Fixed Anub'ar Assassin jump pos selection after …
Shauren Apr 26, 2026
f02ac75
Core/Spells: Add SpellRange structure to replace std::pair<float, flo…
Shauren Apr 26, 2026
7ac98ef
Core/Spells: Implemented RadiusMin (targets must be between RadiusMin…
Shauren Apr 26, 2026
f4c0cc8
Scripts/Spells: Implement demon hunter talent "Moment of Craving" (#3…
aquadeus Apr 26, 2026
8577c2e
Core/Players: Fixed crash happening on character creation when StartP…
Shauren Apr 27, 2026
97a2b42
Core/Players:: Improve trait config validation and implement new cond…
Shauren Apr 27, 2026
14f2802
DB/Hotfixes: Updated hotfixes to 12.0.5.67186
meji46 Apr 28, 2026
47f4122
DB/Hotfixes: Updated deDE hotfixes to 12.0.5.67186
meji46 Apr 28, 2026
b6794b9
DB/Hotfixes: Updated esES hotfixes to 12.0.5.67186
meji46 Apr 28, 2026
ec4e600
DB/Hotfixes: Updated esMX hotfixes to 12.0.5.67186
meji46 Apr 28, 2026
6eb22aa
DB/Hotfixes: Updated frFR hotfixes to 12.0.5.67186
meji46 Apr 28, 2026
85be9a9
DB/Hotfixes: Updated itIT hotfixes to 12.0.5.67186
meji46 Apr 28, 2026
0795fd4
DB/Hotfixes: Updated koKR hotfixes to 12.0.5.67186
meji46 Apr 28, 2026
ef63589
DB/Hotfixes: Updated ptBR hotfixes to 12.0.5.67186
meji46 Apr 28, 2026
bbc7469
DB/Hotfixes: Updated ruRU hotfixes to 12.0.5.67186
meji46 Apr 28, 2026
c93745c
DB/Hotfixes: Updated zhCN hotfixes to 12.0.5.67186
meji46 Apr 28, 2026
d29eae3
DB/Hotfixes: Updated zhTW hotfixes to 12.0.5.67186
meji46 Apr 28, 2026
1db74d1
Core/Players: Correct new trait condition check
Shauren Apr 28, 2026
ef8de83
Core: Updated allowed build to 12.0.5.67235
Shauren Apr 28, 2026
edbe168
DB: Remove use of CREATE FUNCTION (requires SUPER privilege)
Shauren Apr 29, 2026
4c86cfa
DB: Fix base/characters_database.sql
Shauren Apr 30, 2026
6c50ffb
Core: Updated allowed build to 12.0.5.67314
Shauren May 1, 2026
c720cf7
Core/Spells: Define new spell effect type
Shauren May 1, 2026
e2e48c6
Core/Spells: Set private object owner for vehicle summon spells
mdX7 May 1, 2026
a905ed6
Core/Spells: Pass private object owner to SummonCreature for vehicles…
mdX7 May 1, 2026
37ee631
Scripts/WanderingIsle: Implement yak delivery carts (#31807)
stevebone May 1, 2026
d43f44a
Core/Misc: Fix build
mdX7 May 1, 2026
f555d99
Dep/jemalloc: Update to 5.3.1
Shauren May 1, 2026
534388a
DB/Creatures: Add vendor data for 12.0.5 void assault npcs
Shauren May 2, 2026
e80b570
Core/DataStores: Add id to assertion message in DB2Storage::AssertEntry
Shauren May 2, 2026
5fb8040
Core/DataStores: Skip MapDifficulty rows that don't point to a valid …
Shauren May 3, 2026
a308782
Core/Units: Do not remove feign death flags when IMMUNE_TO_PC/NPC is …
mdX7 May 3, 2026
7567653
DB/Harandar: Added conversation after teleport to harandar (Quest: Th…
Naddley May 3, 2026
56b347c
DB/Harandar: Added some more spawns
Naddley May 3, 2026
cf3c136
Scripts/EversongWoods: Implement Quest "The Root Cause" (#31831)
Naddley May 3, 2026
a2d9179
Core/Vehicles: Remove incorrect passenger->vehicle threat redirection
Shauren May 4, 2026
d0f1a7d
Core/Objects: Private objects are no longer able to see non-private o…
Shauren May 4, 2026
eaa4ac7
Core/Commands: FIx .character deleted commands outputting full guid s…
Shauren May 4, 2026
99c44f1
DB/K'aresh: Added graveyards (#31800)
notwonderful May 5, 2026
9a4ca01
Core/Movement: Implement FadeObject spline flag for playing smooth de…
Shauren May 6, 2026
e704dc7
Core/Spells: Removed incorrect generated proc data for different diff…
Shauren May 7, 2026
2371cab
Dep/g3d: Build fix for gcc on windows
Shauren May 7, 2026
a4cdde8
Dep/g3d: Fix warnings with gcc 16
Shauren May 7, 2026
6653ab1
Core: Updated allowed build to 12.0.5.67403
Shauren May 7, 2026
d949df5
DB/Hallowfall: Added graveyards (#31833)
notwonderful May 8, 2026
f2ad44a
Core/Movement: Move ValidateMovementInfo back to WorldSession class t…
Shauren May 8, 2026
6f98fc4
Core: Updated allowed build to 12.0.5.67451
Shauren May 8, 2026
f057d89
Core/Position: Add StringFormat support for Position and WorldLocation
Shauren May 9, 2026
648343e
Core/Misc: Update QuestSort enum for 12.0.5 (#31838)
notwonderful May 9, 2026
e49105c
Core/Misc: Changed compiler detection to better support compilers tha…
Shauren May 10, 2026
1d029b8
Core/Objects: Silence clang warning on windows
Shauren May 10, 2026
d800dad
Build: Remove compiler flags not supported by clang-cl
Shauren May 10, 2026
7279bff
Core/Misc: Remove old msvc warning suppression workarounds for do {} …
Shauren May 10, 2026
61030fd
Core/Misc: Nopch build fix for msvc
Shauren May 10, 2026
df1eb62
Core/Misc: Fix linker errors with clang-cl
Shauren May 10, 2026
5b092d8
Core/Misc: Reorder function definitions in MiscPackets.cpp to match d…
Shauren May 10, 2026
e00b80c
Core/CrashHandler: Replace unsafe pointer dereferences wrapped in __t…
Shauren May 11, 2026
e6af961
Core/CrashHandler: Update enums from DIA SDK
Shauren May 11, 2026
b909bca
Core/CrashHandler: Fix formatting single `char` variables
Shauren May 11, 2026
72dc4d9
Core/Spells: Sync enum name with 3.3.5 branch
Shauren May 11, 2026
ea204f9
Core/PacketIO: Use default compiler generated copy and move operation…
Shauren May 11, 2026
fbc7929
Core/Misc: Port some 3.3.5 cherry-pick refactors
Shauren May 14, 2026
d6bfa63
DB/RingingDeeps: Added graveyards (#31839)
notwonderful May 15, 2026
8915d3d
Core: Updated allowed build to 12.0.5.67602
Shauren May 15, 2026
a4cdedf
DB/WorldState: Named active Awakened raid worldstate for Dragonflight…
MoltenCrystal May 17, 2026
6324222
Core/Misc: Port some 3.3.5 cherry-pick refactors
Shauren May 17, 2026
ec42465
SQL: Move update file to correct directory
Shauren May 18, 2026
b2d6776
Core/Battlegrounds: Fixed "not enough players" message being incorrec…
Shauren May 18, 2026
bfee095
Core/Achievements: Suppress achievement earned messages and visuals o…
Shauren May 18, 2026
96c7cd3
Core/Loot: Add new function argument to AutoStoreLoot that changes me…
Shauren May 19, 2026
9c738b1
Core/Items: Remove outdated reagent bank check
Shauren May 21, 2026
84261ff
Core/Items: Fixed item level and stat calculation
Shauren May 21, 2026
b3830b1
Core/Movement: Allow using all chrono types to MotionMaster::MovePath…
Shauren May 22, 2026
0f95225
DB/Westfall: Update some more creature to createobject2
Naddley May 23, 2026
7e84b53
Core/Misc: Update CreatureFamily enum for 12.0.5 (#31851)
notwonderful May 23, 2026
d7de55a
DB/Westfall: Update more creatures to createobject2
Naddley May 23, 2026
c5b1e9e
DB/Westfall: Pooled some more copper veins
Naddley May 23, 2026
3961330
Core/Misc: Port some 3.3.5 cherry-pick refactors
Shauren May 24, 2026
3880509
DB/Creature: Update "Lunchbox" modelid
Aokromes Apr 5, 2023
f798c1d
DB/Creature: Update Prince Tortheldrin spawn coordinates
Aokromes Apr 5, 2023
39f4f96
Scripts/Spells: Update Fury Warrior Enrage to midnight (#31856)
Golrag May 25, 2026
a41ed0e
Scripts/Spells: Remove unused spells from WarriorSpells enum
Shauren May 25, 2026
9588ceb
Merge TrinityCore master to gomove_master
Rochet2 May 25, 2026
b0615dc
Fix GOMove command script for upstream ChatCommand API
Rochet2 May 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .github/workflows/win-x64-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ jobs:
run: |
cd ${{ steps.strings.outputs.build-output-dir }}/bin/${{ env.CMAKE_BUILD_TYPE }}
copy "${{ env.MYSQL_ROOT_DIR }}/lib/libmysql.dll" libmysql.dll
copy "${{ env.OPENSSL_ROOT_DIR }}/bin/libssl-3-x64.dll" libssl-3-x64.dll
copy "${{ env.OPENSSL_ROOT_DIR }}/bin/libcrypto-3-x64.dll" libcrypto-3-x64.dll
copy "${{ env.OPENSSL_ROOT_DIR }}/bin/legacy.dll" legacy.dll
# mysql may depend on a different version of openssl so copy its dlls first (override later with openssl's own if same version)
Copy-Item -Path "${{ env.MYSQL_ROOT_DIR }}/bin/*" -Include libcrypto*,libssl* -Destination .
Copy-Item -Path "${{ env.OPENSSL_ROOT_DIR }}/bin/*" -Include libcrypto*,libssl*,legacy* -Destination .

- name: Check binaries
run: |
cd ${{ steps.strings.outputs.build-output-dir }}/bin/${{ env.CMAKE_BUILD_TYPE }}
Expand Down
2 changes: 1 addition & 1 deletion cmake/compiler/msvc/settings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if("${CMAKE_MAKE_PROGRAM}" MATCHES "MSBuild")
target_compile_options(trinity-compile-option-interface
INTERFACE
/MP)
else()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# Forces writes to the PDB file to be serialized through mspdbsrv.exe (/FS)
# Enable faster PDB generation in parallel builds by minimizing RPC calls to mspdbsrv.exe (/Zf)
target_compile_options(trinity-compile-option-interface
Expand Down
2 changes: 1 addition & 1 deletion cmake/genrev.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ if(WIN32)
OUTPUT_STRIP_TRAILING_WHITESPACE
)
# Remove "Microsoft Windows" from the result
string(REGEX REPLACE "^.* Windows " "" TRINITY_BUILD_HOST_SYSTEM_RELEASE ${TRINITY_BUILD_HOST_SYSTEM_RELEASE})
string(REGEX REPLACE "^.* Windows " "" TRINITY_BUILD_HOST_SYSTEM_RELEASE "${TRINITY_BUILD_HOST_SYSTEM_RELEASE}")
endif()

if(CMAKE_SCRIPT_MODE_FILE)
Expand Down
4 changes: 2 additions & 2 deletions dep/PackageList.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ G3D (a commercial-grade C++ 3D engine available as Open Source (BSD License)

jemalloc (a general-purpose scalable concurrent malloc-implementation)
https://github.com/jemalloc/jemalloc
Version: 5.3.0
Version: 5.3.1

libreadline (command line editing library)
https://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
Expand All @@ -42,7 +42,7 @@ zlib (A Massively Spiffy Yet Delicately Unobtrusive Compression Library)

gSOAP (a portable development toolkit for C and C++ XML Web services and XML data bindings)
http://gsoap2.sourceforge.net/
Version: 2.8.117
Version: 2.8.141

recastnavigation (Recast is state of the art navigation mesh construction toolset for games)
https://github.com/recastnavigation/recastnavigation
Expand Down
87 changes: 87 additions & 0 deletions dep/g3dlite/G3D-v9.0 hotfix20.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
diff --git a/dep/g3dlite/include/G3D/platform.h b/dep/g3dlite/include/G3D/platform.h
index 9202fe41d0..400a81361e 100644
--- a/dep/g3dlite/include/G3D/platform.h
+++ b/dep/g3dlite/include/G3D/platform.h
@@ -52,8 +52,10 @@ These control the version of Winsock used by G3D.

#ifndef _MSC_VER
/// Fast call is a register-based optimized calling convention supported only by Visual C++
+#ifndef __fastcall
#define __fastcall
#endif
+#endif

/** \def G3D_WINDOWS*/
/** \def G3D_FREEBSD2*/
@@ -64,8 +66,10 @@ These control the version of Winsock used by G3D.
# define G3D_WINDOWS
#elif defined(__MINGW32__)
#define G3D_WINDOWS
- #undef __MSVCRT_VERSION__
- #define __MSVCRT_VERSION__ 0x0601
+ #if !defined(__MSVCRT_VERSION__) || __MSVCRT_VERSION__ < 0x0601
+ #undef __MSVCRT_VERSION__
+ #define __MSVCRT_VERSION__ 0x0601
+ #endif
#include <windows.h>
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
#define G3D_FREEBSD
diff --git a/dep/g3dlite/source/GThread.cpp b/dep/g3dlite/source/GThread.cpp
index 5f3f7ffd64..f6483a75d1 100644
--- a/dep/g3dlite/source/GThread.cpp
+++ b/dep/g3dlite/source/GThread.cpp
@@ -91,6 +91,11 @@ typedef struct tagTHREADNAME_INFO {
} THREADNAME_INFO;
#pragma pack(pop)

+static LONG ExceptionIgnorer(PEXCEPTION_POINTERS ex)
+{
+ return ex->ExceptionRecord->ExceptionCode == MS_VC_EXCEPTION ? EXCEPTION_CONTINUE_EXECUTION : EXCEPTION_CONTINUE_SEARCH;
+}
+
static void SetThreadName(DWORD dwThreadID, const char* threadName) {
THREADNAME_INFO info;
info.dwType = 0x1000;
@@ -98,9 +103,9 @@ static void SetThreadName(DWORD dwThreadID, const char* threadName) {
info.dwThreadID = dwThreadID;
info.dwFlags = 0;

- __try {
- RaiseException( MS_VC_EXCEPTION, 0, sizeof(info)/sizeof(ULONG_PTR), (ULONG_PTR*)&info );
- } __except(EXCEPTION_EXECUTE_HANDLER) {}
+ PVOID handler = AddVectoredExceptionHandler(1, &ExceptionIgnorer);
+ RaiseException( MS_VC_EXCEPTION, 0, sizeof(info)/sizeof(ULONG_PTR), (ULONG_PTR*)&info );
+ RemoveVectoredExceptionHandler(handler);
}
#endif

diff --git a/dep/g3dlite/source/System.cpp b/dep/g3dlite/source/System.cpp
index d6fbfa7567..213cec86d8 100644
--- a/dep/g3dlite/source/System.cpp
+++ b/dep/g3dlite/source/System.cpp
@@ -42,6 +42,7 @@
#ifdef G3D_WINDOWS

# include <conio.h>
+# include <crtdbg.h>
# include <sys/timeb.h>
# include "G3D/RegistryUtil.h"
#include <Ole2.h>
@@ -1725,7 +1726,7 @@ void System::cpuid(CPUIDFunction func, uint32& eax, uint32& ebx, uint32& ecx, ui
#if ! defined(__PIC__) || defined(__x86_64__)
// AT&T assembler syntax
asm volatile(
- "movl $0, %%ecx \n\n" /* Wipe ecx */
+ "xor %%ecx, %%ecx \n\n" /* Wipe ecx */
"cpuid \n\t"
: "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx)
: "a"(func));
@@ -1733,7 +1734,7 @@ void System::cpuid(CPUIDFunction func, uint32& eax, uint32& ebx, uint32& ecx, ui
// AT&T assembler syntax
asm volatile(
"pushl %%ebx \n\t" /* save ebx */
- "movl $0, %%ecx \n\n" /* Wipe ecx */
+ "xor %%ecx, %%ecx \n\n" /* Wipe ecx */
"cpuid \n\t"
"movl %%ebx, %1 \n\t" /* save what cpuid just put in %ebx */
"popl %%ebx \n\t" /* restore the old ebx */
35 changes: 35 additions & 0 deletions dep/g3dlite/G3D-v9.0 hotfix21.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
diff --git a/dep/g3dlite/include/G3D/platform.h b/dep/g3dlite/include/G3D/platform.h
index 400a81361e..a38e87a641 100644
--- a/dep/g3dlite/include/G3D/platform.h
+++ b/dep/g3dlite/include/G3D/platform.h
@@ -366,29 +366,14 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw) {\


// Bring in shared_ptr and weak_ptr
-#if (defined(__GNUC__) && defined(__APPLE__)) || defined(__linux__)
-#include <ciso646> // Defines _LIBCC_VERSION if linking against libc++ or does nothing
-#endif
-#if (!defined(_LIBCPP_VERSION) && defined(__APPLE__)) || (!defined(_LIBCPP_VERSION) && defined(__linux__))
-# include <tr1/memory>
-#else
-# include <memory>
-#endif
+#include <memory>

namespace G3D {
-#if (!defined(_LIBCPP_VERSION) && defined(__APPLE__)) || (!defined(_LIBCPP_VERSION) && defined(__linux__))
- using std::tr1::shared_ptr;
- using std::tr1::weak_ptr;
- using std::tr1::dynamic_pointer_cast;
- using std::tr1::static_pointer_cast;
- using std::tr1::enable_shared_from_this;
-#else
using std::shared_ptr;
using std::weak_ptr;
using std::dynamic_pointer_cast;
using std::static_pointer_cast;
using std::enable_shared_from_this;
-#endif

/** Options for initG3D and initGLG3D. */
class G3DSpecification {
2 changes: 2 additions & 0 deletions dep/g3dlite/Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ G3D-v9.0 hotfix16.diff - 2022-02-11 - Fix *BSD compile errors
G3D-v9.0 hotfix17.diff - 2023-03-25 - Fix macOS compile errors
G3D-v9.0 hotfix18.diff - 2024-02-17 - ARM64 support on MSVC
G3D-v9.0 hotfix19.diff - 2024-06-09 - clang build fix on windows
G3D-v9.0 hotfix20.diff - 2026-05-07 - gcc build fix on windows
G3D-v9.0 hotfix21.diff - 2026-05-07 - gcc 16 warning fix
25 changes: 7 additions & 18 deletions dep/g3dlite/include/G3D/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ These control the version of Winsock used by G3D.

#ifndef _MSC_VER
/// Fast call is a register-based optimized calling convention supported only by Visual C++
#ifndef __fastcall
#define __fastcall
#endif
#endif

/** \def G3D_WINDOWS*/
/** \def G3D_FREEBSD2*/
Expand All @@ -64,8 +66,10 @@ These control the version of Winsock used by G3D.
# define G3D_WINDOWS
#elif defined(__MINGW32__)
#define G3D_WINDOWS
#undef __MSVCRT_VERSION__
#define __MSVCRT_VERSION__ 0x0601
#if !defined(__MSVCRT_VERSION__) || __MSVCRT_VERSION__ < 0x0601
#undef __MSVCRT_VERSION__
#define __MSVCRT_VERSION__ 0x0601
#endif
#include <windows.h>
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
#define G3D_FREEBSD
Expand Down Expand Up @@ -362,29 +366,14 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw) {\


// Bring in shared_ptr and weak_ptr
#if (defined(__GNUC__) && defined(__APPLE__)) || defined(__linux__)
#include <ciso646> // Defines _LIBCC_VERSION if linking against libc++ or does nothing
#endif
#if (!defined(_LIBCPP_VERSION) && defined(__APPLE__)) || (!defined(_LIBCPP_VERSION) && defined(__linux__))
# include <tr1/memory>
#else
# include <memory>
#endif
#include <memory>

namespace G3D {
#if (!defined(_LIBCPP_VERSION) && defined(__APPLE__)) || (!defined(_LIBCPP_VERSION) && defined(__linux__))
using std::tr1::shared_ptr;
using std::tr1::weak_ptr;
using std::tr1::dynamic_pointer_cast;
using std::tr1::static_pointer_cast;
using std::tr1::enable_shared_from_this;
#else
using std::shared_ptr;
using std::weak_ptr;
using std::dynamic_pointer_cast;
using std::static_pointer_cast;
using std::enable_shared_from_this;
#endif

/** Options for initG3D and initGLG3D. */
class G3DSpecification {
Expand Down
11 changes: 8 additions & 3 deletions dep/g3dlite/source/GThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,21 @@ typedef struct tagTHREADNAME_INFO {
} THREADNAME_INFO;
#pragma pack(pop)

static LONG ExceptionIgnorer(PEXCEPTION_POINTERS ex)
{
return ex->ExceptionRecord->ExceptionCode == MS_VC_EXCEPTION ? EXCEPTION_CONTINUE_EXECUTION : EXCEPTION_CONTINUE_SEARCH;
}

static void SetThreadName(DWORD dwThreadID, const char* threadName) {
THREADNAME_INFO info;
info.dwType = 0x1000;
info.szName = threadName;
info.dwThreadID = dwThreadID;
info.dwFlags = 0;

__try {
RaiseException( MS_VC_EXCEPTION, 0, sizeof(info)/sizeof(ULONG_PTR), (ULONG_PTR*)&info );
} __except(EXCEPTION_EXECUTE_HANDLER) {}
PVOID handler = AddVectoredExceptionHandler(1, &ExceptionIgnorer);
RaiseException( MS_VC_EXCEPTION, 0, sizeof(info)/sizeof(ULONG_PTR), (ULONG_PTR*)&info );
RemoveVectoredExceptionHandler(handler);
}
#endif

Expand Down
5 changes: 3 additions & 2 deletions dep/g3dlite/source/System.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#ifdef G3D_WINDOWS

# include <conio.h>
# include <crtdbg.h>
# include <sys/timeb.h>
# include "G3D/RegistryUtil.h"
#include <Ole2.h>
Expand Down Expand Up @@ -1725,15 +1726,15 @@ void System::cpuid(CPUIDFunction func, uint32& eax, uint32& ebx, uint32& ecx, ui
#if ! defined(__PIC__) || defined(__x86_64__)
// AT&T assembler syntax
asm volatile(
"movl $0, %%ecx \n\n" /* Wipe ecx */
"xor %%ecx, %%ecx \n\n" /* Wipe ecx */
"cpuid \n\t"
: "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx)
: "a"(func));
#else
// AT&T assembler syntax
asm volatile(
"pushl %%ebx \n\t" /* save ebx */
"movl $0, %%ecx \n\n" /* Wipe ecx */
"xor %%ecx, %%ecx \n\n" /* Wipe ecx */
"cpuid \n\t"
"movl %%ebx, %1 \n\t" /* save what cpuid just put in %ebx */
"popl %%ebx \n\t" /* restore the old ebx */
Expand Down
8 changes: 1 addition & 7 deletions dep/gsoap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,9 @@ target_sources(gsoap

set_target_properties(gsoap PROPERTIES LINKER_LANGUAGE CXX)

target_compile_definitions(gsoap
PUBLIC
WITH_OPENSSL)

target_link_libraries(gsoap
PRIVATE
trinity-dependency-interface
PUBLIC
openssl)
trinity-dependency-interface)

set_target_properties(gsoap
PROPERTIES
Expand Down
Loading
Loading