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

Fix variable name collision #142

Merged
merged 1 commit into from
Jun 16, 2024
Merged

Conversation

vaguerant
Copy link
Contributor

The extern bool joypad_state in FUSE's src/externs.h collides with RetroArch's own use of joypad_state. On certain platforms, this causes this core to either fail to build entirely or crash when anything joypad-related occurs (usually, immediately upon game start).

I've just renamed the FUSE variable from joypad_state to joyp_state, in line with the existing keyb_state which tracks the keyboard.

Fixes #138
Fixes #124

Might also fix the following: #133

Issue #121 was likely fixed by PR #139, but since the core stopped working on Wii U, this was not obvious until now. Regardless, that issue can also be closed.

@LibretroAdmin
Copy link
Contributor

Good catch. It's always important that global variables get named uniquely from whatever is defined in RetroArch for statically built targets.

@LibretroAdmin LibretroAdmin merged commit 9fc41a5 into libretro:master Jun 16, 2024
@vaguerant vaguerant deleted the joyp branch June 16, 2024 12:12
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.

Fuse core for WII U crashes after selecting joystick, and no on-screen keyboard. Crash on Wii U
2 participants