New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to confirm image unplug #1219
Comments
Hi!
On Sat, Apr 29, 2023 at 1:08 PM TomCh ***@***.***> wrote:
Just to check what you are requesting...
I think you are saying that when you unplug a hard disk image from the
Config UI, you get prompted with:
[image: image]
<https://user-images.githubusercontent.com/6696896/235314864-38dee0f2-47bf-499b-b6c1-4dfd86056c22.png>
And you are asking for this be be optional, correct?
Yes. But, I'm looking for more. Here's what I posted on c.e.a2:
"Out of curiosity I checked the backups of my now deceased Windows XP
system to see how long I've been using AppleWin and CiderPress. It's been
about 14 years if not longer. My debug process involves updating the source
file with Notepad then disconnecting the target image file from Applewin
before replacing the source file. Then, if I remember to close the image
image file in CiderPress I can reconnect the image file to AppleWin. Now
that I'm sure I can't avoid the 'disconnect, replace, reconnect' cycle I
have a suggestion. The debugger in Applewin allows one to disable or enable
breakpoints. Having the ability to disable or enable disk images in a
similar way sure would be nice."
I guess I should post this as an enhancement on your github page...
Willi
—
… Reply to this email directly, view it on GitHub
<#1219 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE7KVCQX6BGZ2NITEFDQGMTXDVDI3ANCNFSM6AAAAAAXQH6BDM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Let me check that I understand what you are asking for... So a (debugger) command to "disable hard disk 1 attached to slot 7" would:
Then later you could issue a command to "re-enable hard disk 1 attached to slot 7", which would:
Something like that? And are you talking just about hard disk images? Or floppy images too? |
Hi!
On Sat, Apr 29, 2023 at 2:18 PM TomCh ***@***.***> wrote:
Let me check that I understand what you are asking for...
So a (debugger) command to "disable hard disk 1 attached to slot 7" would:
- unplug the hard drive from the HDD controller from the Apple II's
point of view
- "unlock" the disk image association with AppleWin, so that
CiderPress can read/write to the disk image file
- but AppleWin would still have the image associated with that drive
(albeit "disabled")
Then later you could issue a command to "re-enable hard disk 1 attached to
slot 7", which would:
- re-connect the hard disk to the HDD controller (from the Apple II's
POV)
- "lock" the disk image association with AppleWin, so that CiderPress
only has read-only access to the disk image file
Something like that?
And are you talking just about hard disk images? Or floppy images too
Yes, but not in the debugger, on the 'Disk' page of 'AppleWin
Configuration'. Hypothetical session: 1) Use CiderPress to insert a large
source file into an '.HDV' image file. 2) Start Applewin and use the
'Disk' page of 'AppleWin Configuration' to specify the '.HDV' file as slot
7, drive 1. 3) Assuming you've properly named the image file the name
appears next to 'HDD 1:'. 4) Boot Applewin and issue commands to compile a
source only to see syntax errors in the source file. 5) Correct the syntax
errors in the source file with an external editor. 6) Use a new feature on
the 'Disk' page that dims the name of the '.HDV' file and disables access
to that file by AppleWin. 7) Use CiderPress to update the source file in
the '.HDV' file. 8) Use a new feature on the 'Disk' page that undims the
name of the '.HDV' file and enables access to that file by AppleWin.
Of course, this would be a major enhancement to AppleWin. "unplugging"
gets the job done. I'm just trying to avoid making a mistake when
re-entering the name of the '.HDV' file after massaging a source file in
the image.
Willi
Willi
—
… Reply to this email directly, view it on GitHub
<#1219 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE7KVCTVOEVEAPUAXYIKYLDXDVLQFANCNFSM6AAAAAAXQH6BDM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sounds like eject would be easier (with the warning disabled) and re-insert easier perhaps from the drive right-click menu. |
Sort of an ancillary request but being able to select recently mounted images from the HDD dropdown menu would be great for me. |
@tomcw We could have Part of the problem is we don't have drive icons for hard drive images and perhaps we should. Having to constantly using the dialog box to juggle hard drive images makes the whole process far more clunky then it needs to be. Adding hard drive icons means Which hotkeys does someone use to access them? since every function key is currently being used. (Ideally the user could "slide" the icons in the order THEY use them but we're far from that.) Looking at WinFrame's WM_KEYUP I see One way I see
Additionally, we could also display the last N floppy/hard disk file names in the pop-up menu so people could quickly re-mount previous disk images. I envision the new pop-up looking like this
Edit: Add pop-up ASCII art. |
Tech info on a file watch dog "thread." There are various solutions:
|
For the OP use case, where the user is switching between apps, it could also make sense to just close all disk image files when the emulator is paused, and reopen them when un-paused ("Pause for External I/O"). It might be prudent to disallow that if a disk is spinning or otherwise engaged in an I/O operation. I'm a little nervous about allowing a file edit free-for-all because data can be cached on the CiderPress side, though that can be mitigated with the use of file change watchers. (Right now you can use File > Reopen, but that seems unreliable.) I just realized that you can have the same disk image open for writing in two instances of CiderPress. Not great. :-| If we want to get carried away, we also have the option of coordinating the programs. CiderPress says "let me borrow that disk image for a bit", makes some changes, and then hands it back. The disk would be unavailable to the emulated system for the duration (transparently if the emulator is also paused). AppleWin would need to advertise a "disk image sharing service" that applications interested in making live updates could subscribe to. |
Instead of pause, what if AppleWin had a power off/on for the virtual Apple II. EG:
|
NB. if a disk's file data were cached on the Apple II system (eg. by the OS or resident program), then a power off completely eradicates that as a problem. |
My comment about "power-off -> CiderPress writes to image -> power-on" only relates to HD images (ie. for a real Apple II you'd power off to change HD). As for FD images, it's possible to eject / write (eg. SD card for FloppyEmu) / insert. And also you may want the Apple II machine state to remain as-is (so no power-off/on). Of course you can already unplug-HD/eject-FD from AppleWin, but this is a longwinded process. Really it's about reducing workflow friction. |
Please make it optional
The text was updated successfully, but these errors were encountered: