Skip to content

Conversation

@OmniBlade
Copy link

Memory detection would be incorrect on systems with > 4GB. Verson info detection is incorrect on Windows 8 and later and if manifested for an earlier version than currently running on.

Copy link
Collaborator

@barefootlogician barefootlogician left a comment

Choose a reason for hiding this comment

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

currently the max specs it checks are such that pretty much any pc we would use today would more than quilify for the highest preset. I'd just replace everything with stubs that return the highest result and later refactor all the places where the stub functions are called.

@xezon xezon changed the title fix(cpudetect): Fix version and memory detection (non VC6). fix(cpudetect): Fix version and memory detection for modern builds Aug 1, 2025
Copy link

@xezon xezon left a comment

Choose a reason for hiding this comment

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

Just some minor things. Otherwise, looks good.

Memory detection would be incorrect on systems with > 4GB.
Verson info detection is incorrect on Windows 8 and later and if manifested for an earlier version than currently running on.
@OmniBlade OmniBlade force-pushed the fix/cpudetect_deprecation branch from 7eb4130 to 213447f Compare August 1, 2025 21:49
@OmniBlade OmniBlade requested a review from xezon August 1, 2025 21:50
@OmniBlade
Copy link
Author

currently the max specs it checks are such that pretty much any pc we would use today would more than quilify for the highest preset. I'd just replace everything with stubs that return the highest result and later refactor all the places where the stub functions are called.

The info cpudetect returns isn't just used for check in the game itself, is also used for outputting system information in the debug log and crash report if I remember rightly.

@xezon xezon added Minor Severity: Minor < Major < Critical < Blocker Fix Is fixing something, but is not user facing labels Aug 1, 2025
@xezon xezon changed the title fix(cpudetect): Fix version and memory detection for modern builds fix(cpudetect): Fix version detection for Windows 8+ and memory detection for systems with more than 4 GB of RAM Aug 2, 2025
@xezon xezon changed the title fix(cpudetect): Fix version detection for Windows 8+ and memory detection for systems with more than 4 GB of RAM fix(cpudetect): Fix version and memory detection Aug 2, 2025
@xezon xezon merged commit d042104 into TheSuperHackers:main Aug 2, 2025
16 checks passed
@xezon xezon deleted the fix/cpudetect_deprecation branch August 2, 2025 10:46
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Nov 10, 2025
Memory detection was incorrect on systems with > 4GB. Version info detection was incorrect on Windows 8 and later and if manifested for an earlier version than currently running on.
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 Minor Severity: Minor < Major < Critical < Blocker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants