summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEero Tamminen <oak@helsinkinet.fi>2020-06-07 18:30:18 (GMT)
committerEero Tamminen <oak@helsinkinet.fi>2020-06-07 18:37:17 (GMT)
commit04ca71c6ac601b0d139a4f578d0a2184aaa442c5 (patch)
treead2616d2c38087b5c3d2acc51bd02ab099b10823
parent1a0e5c7251c3bfc5bb60d9c91f4a61289db09f1d (diff)
downloadhatari-04ca71c6ac601b0d139a4f578d0a2184aaa442c5.zip
hatari-04ca71c6ac601b0d139a4f578d0a2184aaa442c5.tar.gz
Fix: run-time IDE byte swap change requires IDE re-init
Not just emulation reset. Reported by Uwe Seimet.
-rw-r--r--doc/release-notes.txt1
-rw-r--r--src/change.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/release-notes.txt b/doc/release-notes.txt
index 8bdda5b..5dc1eda 100644
--- a/doc/release-notes.txt
+++ b/doc/release-notes.txt
@@ -42,6 +42,7 @@ Emulator:
(instead of counting sectors)
- Add --lilo debug option for more convenient m68k Linux loading
- Support config file values with '=' in them
+- Fix: run-time IDE byte swap change requires IDE re-init
- GEMDOS HD emulation:
- Support FASTLOAD program flag with GEMDOS HD
- GEMDOS HD emulation cartridge assembly functionality is moved almost
diff --git a/src/change.c b/src/change.c
index 96211d0..d4f9d28 100644
--- a/src/change.c
+++ b/src/change.c
@@ -319,10 +319,11 @@ void Change_CopyChangedParamsToConfiguration(CNF_PARAMS *current, CNF_PARAMS *ch
if (bReInitHdcEmu)
HDC_UnInit();
- /* Did change IDE HD image? */
+ /* Did change IDE HD image or its settings? */
for (i = 0; i < MAX_IDE_DEVS; i++)
{
if (changed->Ide[i].bUseDevice != current->Ide[i].bUseDevice
+ || changed->Ide[i].nByteSwap != current->Ide[i].nByteSwap
|| (strcmp(changed->Ide[i].sDeviceFile, current->Ide[i].sDeviceFile)
&& changed->Ide[i].bUseDevice))
{