Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@agent-brannigan

Description

@agent-brannigan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions