Skip to content

Commit 33fef87

Browse files
committed
Merge branch 'main' into fix_airfield_takeoff_frames
2 parents 430b543 + fba5df7 commit 33fef87

File tree

198 files changed

+2352
-12208
lines changed

Some content is hidden

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

198 files changed

+2352
-12208
lines changed

Core/GameEngine/CMakeLists.txt

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ set(GAMEENGINE_SRC
33
# Include/Common/ActionManager.h
44
Include/Common/ArchiveFile.h
55
Include/Common/ArchiveFileSystem.h
6-
# Include/Common/AsciiString.h
7-
# Include/Common/AudioAffect.h
8-
# Include/Common/AudioEventInfo.h
9-
# Include/Common/AudioEventRTS.h
10-
# Include/Common/AudioHandleSpecialValues.h
11-
# Include/Common/AudioRandomValue.h
12-
# Include/Common/AudioRequest.h
13-
# Include/Common/AudioSettings.h
6+
Include/Common/AsciiString.h
7+
Include/Common/AudioAffect.h
8+
Include/Common/AudioEventInfo.h
9+
Include/Common/AudioEventRTS.h
10+
Include/Common/AudioHandleSpecialValues.h
11+
Include/Common/AudioRandomValue.h
12+
Include/Common/AudioRequest.h
13+
Include/Common/AudioSettings.h
1414
# Include/Common/BattleHonors.h
1515
# Include/Common/BezFwdIterator.h
1616
# Include/Common/BezierSegment.h
@@ -33,21 +33,21 @@ set(GAMEENGINE_SRC
3333
# Include/Common/DisabledTypes.h
3434
# Include/Common/DiscreteCircle.h
3535
# Include/Common/DrawModule.h
36-
# Include/Common/DynamicAudioEventInfo.h
36+
Include/Common/DynamicAudioEventInfo.h
3737
# Include/Common/encrypt.h
3838
# Include/Common/Energy.h
3939
# Include/Common/Errors.h
4040
Include/Common/file.h
4141
Include/Common/FileSystem.h
4242
# Include/Common/FunctionLexicon.h
43-
# Include/Common/GameAudio.h
43+
Include/Common/GameAudio.h
4444
# Include/Common/GameCommon.h
4545
Include/Common/GameDefines.h
4646
# Include/Common/GameEngine.h
4747
# Include/Common/GameLOD.h
4848
# Include/Common/GameMemory.h
49-
# Include/Common/GameMusic.h
50-
# Include/Common/GameSounds.h
49+
Include/Common/GameMusic.h
50+
Include/Common/GameSounds.h
5151
# Include/Common/GameSpyMiscPreferences.h
5252
# Include/Common/GameState.h
5353
# Include/Common/GameStateMap.h
@@ -69,7 +69,7 @@ set(GAMEENGINE_SRC
6969
# Include/Common/MapReaderWriterInfo.h
7070
# Include/Common/MessageStream.h
7171
# Include/Common/MiniLog.h
72-
# Include/Common/MiscAudio.h
72+
Include/Common/MiscAudio.h
7373
# Include/Common/MissionStats.h
7474
# Include/Common/ModelState.h
7575
# Include/Common/Module.h
@@ -100,7 +100,7 @@ set(GAMEENGINE_SRC
100100
# Include/Common/Science.h
101101
# Include/Common/ScopedMutex.h
102102
# Include/Common/ScoreKeeper.h
103-
# Include/Common/simpleplayer.h
103+
#Include/Common/simpleplayer.h # unused
104104
# Include/Common/SkirmishBattleHonors.h
105105
# Include/Common/SkirmishPreferences.h
106106
# Include/Common/Snapshot.h
@@ -124,10 +124,10 @@ set(GAMEENGINE_SRC
124124
# Include/Common/ThingSort.h
125125
# Include/Common/ThingTemplate.h
126126
# Include/Common/TunnelTracker.h
127-
# Include/Common/UnicodeString.h
127+
Include/Common/UnicodeString.h
128128
# Include/Common/UnitTimings.h
129129
# Include/Common/Upgrade.h
130-
# Include/Common/urllaunch.h
130+
#Include/Common/urllaunch.h # unused
131131
# Include/Common/UserPreferences.h
132132
# Include/Common/version.h
133133
# Include/Common/WellKnownKeys.h
@@ -552,12 +552,12 @@ set(GAMEENGINE_SRC
552552
# Include/GameNetwork/WOLBrowser/FEBDispatch.h
553553
# Include/GameNetwork/WOLBrowser/WebBrowser.h
554554
# Include/Precompiled/PreRTS.h
555-
# Source/Common/Audio/AudioEventRTS.cpp
556-
# Source/Common/Audio/AudioRequest.cpp
557-
# Source/Common/Audio/DynamicAudioEventInfo.cpp
558-
# Source/Common/Audio/GameAudio.cpp
559-
# Source/Common/Audio/GameMusic.cpp
560-
# Source/Common/Audio/GameSounds.cpp
555+
Source/Common/Audio/AudioEventRTS.cpp
556+
Source/Common/Audio/AudioRequest.cpp
557+
Source/Common/Audio/DynamicAudioEventInfo.cpp
558+
Source/Common/Audio/GameAudio.cpp
559+
Source/Common/Audio/GameMusic.cpp
560+
Source/Common/Audio/GameSounds.cpp
561561
#Source/Common/Audio/simpleplayer.cpp # unused
562562
#Source/Common/Audio/urllaunch.cpp # unused
563563
# Source/Common/Bezier/BezFwdIterator.cpp
@@ -576,7 +576,7 @@ set(GAMEENGINE_SRC
576576
# Source/Common/INI/INI.cpp
577577
# Source/Common/INI/INIAiData.cpp
578578
# Source/Common/INI/INIAnimation.cpp
579-
# Source/Common/INI/INIAudioEventInfo.cpp
579+
Source/Common/INI/INIAudioEventInfo.cpp
580580
# Source/Common/INI/INICommandButton.cpp
581581
# Source/Common/INI/INICommandSet.cpp
582582
# Source/Common/INI/INIControlBarScheme.cpp
@@ -587,7 +587,7 @@ set(GAMEENGINE_SRC
587587
# Source/Common/INI/INIMapCache.cpp
588588
# Source/Common/INI/INIMapData.cpp
589589
# Source/Common/INI/INIMappedImage.cpp
590-
# Source/Common/INI/INIMiscAudio.cpp
590+
Source/Common/INI/INIMiscAudio.cpp
591591
# Source/Common/INI/INIModel.cpp
592592
# Source/Common/INI/INIMultiplayer.cpp
593593
# Source/Common/INI/INIObject.cpp
@@ -632,7 +632,7 @@ set(GAMEENGINE_SRC
632632
# Source/Common/StatsCollector.cpp
633633
Source/Common/System/ArchiveFile.cpp
634634
Source/Common/System/ArchiveFileSystem.cpp
635-
# Source/Common/System/AsciiString.cpp
635+
Source/Common/System/AsciiString.cpp
636636
# Source/Common/System/BuildAssistant.cpp
637637
# Source/Common/System/CDManager.cpp
638638
# Source/Common/System/CriticalSection.cpp
@@ -665,7 +665,7 @@ set(GAMEENGINE_SRC
665665
Source/Common/System/StreamingArchiveFile.cpp
666666
# Source/Common/System/SubsystemInterface.cpp
667667
# Source/Common/System/Trig.cpp
668-
# Source/Common/System/UnicodeString.cpp
668+
Source/Common/System/UnicodeString.cpp
669669
# Source/Common/System/Upgrade.cpp
670670
Source/Common/System/Xfer.cpp
671671
Source/Common/System/XferCRC.cpp
@@ -815,7 +815,7 @@ set(GAMEENGINE_SRC
815815
# Source/GameClient/Statistics.cpp
816816
# Source/GameClient/System/Anim2D.cpp
817817
# Source/GameClient/System/CampaignManager.cpp
818-
# "Source/GameClient/System/Debug Displayers/AudioDebugDisplay.cpp"
818+
Source/GameClient/System/Debug/AudioDebugDisplay.cpp
819819
# Source/GameClient/System/DebugDisplay.cpp
820820
# Source/GameClient/System/Image.cpp
821821
# Source/GameClient/System/ParticleSys.cpp

GeneralsMD/Code/GameEngine/Include/Common/AudioSettings.h renamed to Core/GameEngine/Include/Common/AudioSettings.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,19 @@
3535

3636
enum { MAX_HW_PROVIDERS = 4 };
3737

38+
// TheSuperHackers @tweak xezon 23/07/2025 Adds setting to modify the volume of money deposit and withdraw sounds
39+
3840
struct AudioSettings
3941
{
42+
AudioSettings()
43+
#if RTS_GENERALS
44+
: m_defaultMoneyTransactionVolume(1.0f)
45+
#elif RTS_ZEROHOUR
46+
: m_defaultMoneyTransactionVolume(0.0f) // Uses zero volume by default because originally the money sounds did not work in Zero Hour
47+
#endif
48+
{
49+
}
50+
4051
AsciiString m_audioRoot;
4152
AsciiString m_soundsFolder;
4253
AsciiString m_musicFolder;
@@ -66,6 +77,7 @@ struct AudioSettings
6677
Real m_default3DSoundVolume;
6778
Real m_defaultSpeechVolume;
6879
Real m_defaultMusicVolume;
80+
Real m_defaultMoneyTransactionVolume;
6981
UnsignedInt m_defaultSpeakerType2D;
7082
UnsignedInt m_defaultSpeakerType3D;
7183

@@ -74,6 +86,7 @@ struct AudioSettings
7486
Real m_preferred3DSoundVolume;
7587
Real m_preferredSpeechVolume;
7688
Real m_preferredMusicVolume;
89+
Real m_preferredMoneyTransactionVolume;
7790

7891
//The desired altitude of the microphone to improve panning relative to terrain.
7992
Real m_microphoneDesiredHeightAboveTerrain;

0 commit comments

Comments
 (0)