From fd40b3227766a2ca96087e4ad9f5fb8c646bdd26 Mon Sep 17 00:00:00 2001 From: feos Date: Tue, 2 Jul 2024 21:38:42 +0300 Subject: [PATCH] uae: for testing writing to floppy --- src/BizHawk.Emulation.Cores/Computers/Amiga/PUAE.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Emulation.Cores/Computers/Amiga/PUAE.cs b/src/BizHawk.Emulation.Cores/Computers/Amiga/PUAE.cs index 54c41cbc95..a3875ec103 100644 --- a/src/BizHawk.Emulation.Cores/Computers/Amiga/PUAE.cs +++ b/src/BizHawk.Emulation.Cores/Computers/Amiga/PUAE.cs @@ -103,11 +103,12 @@ namespace BizHawk.Emulation.Cores.Computers.Amiga } else { - _exe.AddReadonlyFile(lp.Roms[index].FileData, FileNames.FD + index); + _exe.AddTransientFile(lp.Roms[index].FileData, FileNames.FD + index); if (index < Math.Min(LibPUAE.MAX_FLOPPIES, _syncSettings.FloppyDrives)) { AppendSetting($"floppy{index}={FileNames.FD}{index}"); AppendSetting($"floppy{index}type={(int)DriveType.DRV_35_DD}"); + AppendSetting($"floppy_write_protect=no"); } } }