Skip to content

fix(filesystem): Decouple File System from NameKeyGenerator and its CRC influence#1516

Merged
xezon merged 3 commits into
TheSuperHackers:mainfrom
xezon:xezon/decouple-filesystem-from-crc
Sep 4, 2025
Merged

fix(filesystem): Decouple File System from NameKeyGenerator and its CRC influence#1516
xezon merged 3 commits into
TheSuperHackers:mainfrom
xezon:xezon/decouple-filesystem-from-crc

Conversation

@xezon

@xezon xezon commented Aug 31, 2025

Copy link
Copy Markdown

This change decouples the File System from the NameKeyGenerator and its CRC influence. There are Name Key(s) somewhere used for CRC'ing and the File Existence Cache in File System influences the Name Keys on Engine Init.

I replaced the File Existence Map and preserved the 3 critical Name Keys for retail compatibility.

TODO

  • Replicate in Generals (verify ID's)

@xezon xezon added this to the Stability fixes milestone Aug 31, 2025
@xezon xezon added Major Severity: Minor < Major < Critical < Blocker System Is Systems related Fix Is fixing something, but is not user facing labels Aug 31, 2025
@xezon

xezon commented Aug 31, 2025

Copy link
Copy Markdown
Author

This was pain...

@xezon

xezon commented Aug 31, 2025

Copy link
Copy Markdown
Author

Generals is not compiling before replicating.

Comment thread GeneralsMD/Code/GameEngine/Source/GameClient/GlobalLanguage.cpp Outdated
@xezon
xezon force-pushed the xezon/decouple-filesystem-from-crc branch from 4e8f0bf to 8b30d8f Compare September 1, 2025 13:45

@OmniBlade OmniBlade left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay to me.

@xezon

xezon commented Sep 3, 2025

Copy link
Copy Markdown
Author

Replicated in Generals.

@xezon
xezon force-pushed the xezon/decouple-filesystem-from-crc branch from 2b1b9f0 to 21de822 Compare September 4, 2025 07:21
@xezon xezon added Gen Relates to Generals ZH Relates to Zero Hour labels Sep 4, 2025
@xezon
xezon force-pushed the xezon/decouple-filesystem-from-crc branch from 21de822 to a83350a Compare September 4, 2025 07:25
@xezon
xezon force-pushed the xezon/decouple-filesystem-from-crc branch from a83350a to 75a26a4 Compare September 4, 2025 07:28
@xezon

xezon commented Sep 4, 2025

Copy link
Copy Markdown
Author

I can confirm that this now also fixes the CRC mismatch in Generals.

@xezon
xezon merged commit 85fdc80 into TheSuperHackers:main Sep 4, 2025
17 checks passed
@xezon
xezon deleted the xezon/decouple-filesystem-from-crc branch September 4, 2025 07:43
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Nov 10, 2025
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Fix Is fixing something, but is not user facing Gen Relates to Generals Major Severity: Minor < Major < Critical < Blocker System Is Systems related ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generals is CRC mismatching

3 participants