Skip to content
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

Cheats Options #339

Open
Xerlientt opened this issue Jun 7, 2022 · 8 comments
Open

Cheats Options #339

Xerlientt opened this issue Jun 7, 2022 · 8 comments

Comments

@Xerlientt
Copy link

I was wondering if it's possible to implement a "cheats" option

@Sanaki
Copy link
Member

Sanaki commented Jun 9, 2022

It's not terribly likely. RALibretro is intended for achievement developers first, not players, and there's a very limited value to cheats for developers who have access to memory edits via the memory inspector.

@SporyTike
Copy link

Actually as a developer I want to say that it's not that uncommon. Especially if cheats are encrypted I often use a non-RA emulator to use it and then import the save to the RA emulator again to see what memory was changed so I can mark it, doing it directly in the emulator would be great.

@redwizard42
Copy link

redwizard42 commented Jun 9, 2022

Yeah. I don't need them for cheating/making things easier exactly. I just want them to get decoded so I can see what memory they affect and maybe glean some extra knowledge without necessarily having to go to an external source to do so.

@Jamiras
Copy link
Member

Jamiras commented Jun 9, 2022

I can't picture how this would work. Things like Game Genie codes only work on some systems and have to be specifically decoded to be applied. RALibretro is an all-in-one frontend for many systems, so the per-system handling would have to be implemented by the cores, and there's nothing in the libretro API for system-specific cheat code support.

@leiradel
Copy link
Contributor

leiradel commented Jun 9, 2022

Cheats are indeed system-specific, but if you have the correct ones for the system you're emulating then it's just a matter of loading the cheat files into RALibretro, and then calling retro_cheat_set with the cheat codes that the user activates via the UI.

@Xerlientt
Copy link
Author

Cheats are indeed system-specific, but if you have the correct ones for the system you're emulating then it's just a matter of loading the cheat files into RALibretro, and then calling retro_cheat_set with the cheat codes that the user activates via the UI.

How do I do the last part? Activate via UI?

@Kinglink
Copy link

Kinglink commented Mar 30, 2023

If you want to understand cheats, look online, there's a number of sites that break down the mapping of Game Genie or other systems.

Something like this: https://games.technoplaza.net/ggencoder/ will do the conversion for you. I get not wanting a different source for it, but LibRetro doesn't really have anything to do with Game genie necessarily.

@leiradel
Copy link
Contributor

Cheats are indeed system-specific, but if you have the correct ones for the system you're emulating then it's just a matter of loading the cheat files into RALibretro, and then calling retro_cheat_set with the cheat codes that the user activates via the UI.

How do I do the last part? Activate via UI?

An UI would have to be implemented, where all cheats for the current game are listed, giving the player a way to activate/deactivate them individually.

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

No branches or pull requests

7 participants