8000 Avoid creating huge list of numbers for cheat-related settings by Skirlez · Pull Request #18049 · libretro/RetroArch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Avoid creating huge list of numbers for cheat-related settings #18049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2025

Conversation

Skirlez
Copy link
Contributor
@Skirlez Skirlez commented Jun 24, 2025

Description

This PR changes the "Value" and "Rumble Value" setting for cheats to bring up a keyboard for typing, rather than
creating a list of numbers to choose from. Previously, setting the cheat to be 32-bit would cause trying to select any of those settings to allocate a huge amount of memory, due to the option trying to create a list of all integers up to 2^32. Eventually this would crash RetroArch (and the entire system too, in my case).

I used Network->Netplay TCP Port as a reference for this implementation.

2025-06-25.01-00-14.mp4

Related Issues

This should fix #11431.

Related Pull Requests

None

Reviewers

None

@hizzlekizzle
Copy link
Contributor

That's great news. This is a common complaint among people trying to use the cheat search, so we very much appreciate the contribution.

@sonninnos and @LibretroAdmin are good reviewers for this sort of thing.

@LibretroAdmin LibretroAdmin merged commit c30d790 into libretro:master Jun 25, 2025
31 checks passed
@Skirlez Skirlez deleted the fix-32bit-cheats branch June 25, 2025 07:07
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.

Memory leak (?), crash when editing 32-bit cheats
3 participants
0