You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Pull Request TheSuperHackers#2203 made by @fbraz3 on the upstream repository inspired a deeper audit of the legacy CD requirements in the engine. Beyond merely skipping the startup prompt, it was discovered that large portions of the engine's CD-management infrastructure have become vestigial in modern execution environments.
This commit implements a comprehensive modernization by pruning approximately 2,000 lines of dead code across the Core, Generals, and Zero Hour variants.
Community investigations (thanks to tomsons26) revealed that the Music.big handling was primarily a copy protection mechanism (SafeDisc) rather than for streaming audio. The engine attempted to read a specific file (often generalsa.sec) from the archive to verify a hash. Failure to read this file would trigger copy protection. This mechanism has been non-functional from the start and is now removed.
Tested all parts (init, singleplayer, skirmish) where this code was active, didn't find any problems.
Copy file name to clipboardExpand all lines: Core/GameEngine/Include/Common/FileSystem.h
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -155,9 +155,6 @@ class FileSystem : public SubsystemInterface
155
155
156
156
Bool createDirectory(AsciiString directory); ///< create a directory of the given name.
157
157
158
-
Bool areMusicFilesOnCD();
159
-
voidloadMusicFilesFromCD();
160
-
voidunloadMusicFilesFromCD();
161
158
162
159
static AsciiString normalizePath(const AsciiString& path); ///< normalizes a file path. The path can refer to a directory. File path must be absolute, but does not need to exist. Returns an empty string on failure.
163
160
static Bool isPathInDirectory(const AsciiString& testPath, const AsciiString& basePath); ///< determines if a file path is within a base path. Both paths must be absolute, but do not need to exist.
0 commit comments