RetroPie-Setup/scriptmodules/emulators/amiberry/03_fix_crash_saving.diff
cmitu a233272b5c amiberry: upgrade to 5.7.2; handle dispmanx deprecation
The 5.7.1 version has a couple of regresions (one is a crash), fixed in version 5.7.2. However, DispmanX support was dropped starting with 5.7.2 so just bumping the version would break Buster based Pi installation.

Therefore the module was changed so that:
 - for DispmanX platforms cherry pick the post 5.7.2 fixes manually and lock the version to 5.7.1
 - for every other platform build the 5.7.2 version
2024-06-07 17:33:54 +01:00

13 lines
432 B
Diff

diff --git a/src/cfgfile.cpp b/src/cfgfile.cpp
index f96ee0d9..24bd58cb 100644
--- a/src/cfgfile.cpp
+++ b/src/cfgfile.cpp
@@ -2243,7 +2243,7 @@ void cfgfile_save_options (struct zfile *f, struct uae_prefs *p, int type)
#ifdef AMIBERRY
std::string mode;
std::string buffer;
- didata* did = &di_joystick[jp->id];
+ didata* did = &di_joystick[jp->id - JSEM_JOYS];
// custom options SAVING
for (int m = 0; m < 2; ++m)