English Amiga Board Amiga Lore


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 18 March 2014, 13:19   #1
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,482
Master floppy write protection setting cleared on loading config

If I check the Master floppy write protection box (in the Miscellaneous panel) then save the config, on loading that config later the master write protection box is clear. Is that by design?
mark_k is offline  
AdSense AdSense  
Old 18 March 2014, 17:01   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,561
No, wrong config entry name was used when loading it...
Toni Wilen is online now  
Old 19 March 2014, 19:37   #3
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,482
Thanks the setting now loads correctly with 2.7.1b11. However I noticed another problem.

If I load a config which has master floppy write protection enabled, start emulation, then disable master write protection, the emulated machine thinks the disk is still write-protected (but the write-protected box on floppy drives page is unchecked).

However if I load the same config, disable master write protection and then start emulation, I can write to the disk.
mark_k is offline  
Old 19 March 2014, 20:39   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,561
I think it was by design, sort of, at least it was easiest solution.

What should happen when disk are inserted in one or more drives and master protection state gets changed? Should all disk(s) get removed and re-inserted to sync protection state to AmigaOS? Bad things can happen if hardware protection state changes when disk is already in drive.
Toni Wilen is online now  
Old 20 March 2014, 10:44   #5
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,482
Yep I understand you need to emulate a disk change when the write-protect state changes. But the current situation definitely has a bug (in the 4th point below):
  • Enable master write protection and start emulation. Boot a Workbench disk.
  • Once WB loads, disable master write protection and click OK. The emulated Amiga doesn't register a disk change. Even if the write-protected checkbox in floppy settings is clear, the disk is still write-protected.
  • Open settings window and check the write-protected checkbox in floppy settings and click OK. The emulated Amiga registers a disk change. The disk is still write-protected — which is correct at this point.
  • Open settings window again, un-check the write-protected checkbox and click OK. Emulated Amiga registers a disk change, but the disk is still write-protected. That's a bug I think.
I think the best way to handle master write protection being disabled after emulation has been started, is to set all floppy drive write-protected checkboxes. No disk changes would be needed when the user disables master write protection, since the disks remain write-protected. The user can then manually write-enable whichever drives they want.
mark_k is offline  
Old 21 March 2014, 16:30   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,561
I only said master protection can't be changed on the fly (does nothing) because it can cause bad side-effects.

Note that is has nothing to do with floppy write protection checkboxes (and won't and can't). It does exact same as real hardware switch that connects CIA write protection pin between ground (it is active low) and normal connection. Your floppy write protection tab won't magically move.
Toni Wilen is online now  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing write protection from files NovaCoder New to Emulation or Amiga scene 1 29 November 2008 04:37
Clock write protection fc.studio request.Other 0 14 June 2007 19:31
Write Protection Suggestion Djay support.WinUAE 0 03 September 2003 23:59
Write Protection BippyM support.WinUAE 0 15 June 2003 23:17
Amiga disk write protection Overdoc Retrogaming General Discussion 15 23 October 2001 01:02

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:29.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.12663 seconds with 11 queries