Skip to content

Update GCF output string for encrypted GCFs#417

Merged
mnadareski merged 2 commits into
SabreTools:masterfrom
HeroponRikiBestest:smallGcfUpdate
Jun 27, 2026
Merged

Update GCF output string for encrypted GCFs#417
mnadareski merged 2 commits into
SabreTools:masterfrom
HeroponRikiBestest:smallGcfUpdate

Conversation

@HeroponRikiBestest

Copy link
Copy Markdown
Contributor

This is not even remotely a priority, this is a minor change and I just wanted to push it before I forgot about it. You obv have much more important things to work on at the moment.

Updates GCF output string to note when the GCF is encrypted. I was wrong that there aren't many encrypted GCFs, there's a bunch.

string fileName = Path.GetFileName(file);
uint depotId = _wrapper.Model.Header.CacheID;
uint manifestVersion = _wrapper.Model.Header.LastVersionPlayed;
uint depotVersion = _wrapper.Model.Header.LastVersionPlayed;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated terminology in code slightly; calling a steam2 version a manifest is possibly inaccurate.

uint manifestVersion = _wrapper.Model.Header.LastVersionPlayed;
uint depotVersion = _wrapper.Model.Header.LastVersionPlayed;

// At the moment, all samples of GCF files on redump are unencrypted. Combined with being uncertain about

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was wrong, there are plenty of encrypted GCFs on redump already.

Comment thread BinaryObjectScanner/FileType/GCF.cs Outdated
// string returnString = $"{fileName} - {depotId} (v{manifestVersion}, {encryptedString})";

string returnString = $"{fileName} - {depotId} (v{manifestVersion})";
// Only note encryption status if the GCF is encrypted

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If you feel otherwise, let me know, but it seems redundant to put a string saying it's unencrypted, imo it's better to just only note it when it's encrypted.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't really have a good enough grasp on the file type to know if stating that it is unencrypted is valuable or not. At the very least, it can be tweaked here if necessary.

@mnadareski mnadareski merged commit 8ca25c6 into SabreTools:master Jun 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants