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 / save states don't work on Switch #3

Open
agent-brannigan opened this issue Oct 13, 2024 · 0 comments
Open

Cheats / save states don't work on Switch #3

agent-brannigan opened this issue Oct 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@agent-brannigan
Copy link

Describe your bug here. And how to reproduce it.

Alright, here's the deal. In the /src/platform/switch/zelda3.ini file, under the [KeyMap] section, it only supports keyboard keys. So, when we try to change something like CheatLife = w to CheatLife = L1 (or Lr, L3, Start, or anything like that), it simply doesn't work.

Now, what can we tweak to make these features work on the Switch? I've got a potential workaround.

In main.c, under the static int RemapSdlButton(int button) function, we could modify the mapping like this:
case SDL_CONTROLLER_BUTTON_LEFTSTICK: return kKeys_CheatLife;
Then, recompile it. The "X" button isn't used anyway, so it's fair game.

  1. But I can't say for sure if this will work. Will it? 😅
  2. And yeah, this could easily break the game for everyone else. That's definitely not ideal.

What is your build target?

Nintendo Switch

@agent-brannigan agent-brannigan added the bug Something isn't working label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant