Guest User

Untitled

a guest
Jan 20th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. diff --git a/libretro-fceumm/libretro.c b/libretro-fceumm/libretro.c
  2. index 342ffe6..99740b3 100644
  3. --- a/libretro-fceumm/libretro.c
  4. +++ b/libretro-fceumm/libretro.c
  5. @@ -398,13 +398,8 @@ void retro_init(void)
  6. static void emulator_set_input(void)
  7. {
  8. // ?!?!?!?! Why does this matter?!
  9. -#if defined(__CELLOS_LV2__) || defined(_XBOX) || defined(GEKKO) // <-- big endian
  10. FCEUI_SetInput(0, SI_GAMEPAD, &JSReturn[0], 0);
  11. FCEUI_SetInput(1, SI_GAMEPAD, &JSReturn[0], 0);
  12. -#else
  13. - FCEUI_SetInput(0, SI_GAMEPAD, &JSReturn[0], 0);
  14. - FCEUI_SetInput(1, SI_GAMEPAD, &JSReturn[1], 0);
  15. -#endif
  16. }
  17.  
  18. static void emulator_set_custom_palette (void)
  19. @@ -487,13 +482,7 @@ static void update_input(void)
  20. pad[1] |= input_cb(1, RETRO_DEVICE_JOYPAD, 0, bindmap[i].retro) ? bindmap[i].nes : 0;
  21. }
  22.  
  23. - // This shouldn't matter. Why? Something very weird is going on.
  24. -#if defined(__CELLOS_LV2__) || defined(_XBOX360) || defined(GEKKO) // <-- big endian
  25. JSReturn[0] = pad[0] | (pad[1] << 8);
  26. -#else
  27. - JSReturn[0] = pad[0];
  28. - JSReturn[1] = pad[1];
  29. -#endif
  30. }
Add Comment
Please, Sign In to add comment