10 May 2018, 10:46 | #1 |
Registered User
Join Date: Mar 2016
Location: Australia
Posts: 881
|
Open(xxx, MODE_NEWFILE) on CD-ROM doesn't return
I have only tried this on FS-UAE so far, as I couldn't work out how to mount an ISO with WinUAE and don't have a CDROM on any of my real Amigas.
Anyway, so I am doing an "Open(xxx, MODE_NEWFILE)" on a file that doesn't exist with "PROGDIR:" as part of the filename. The call to Open() doesn't fail, just never returns. I really just want to know that I can't write to this file. Anyone have any idea how to deal with this ? |
10 May 2018, 11:06 | #2 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
This can happen if you take over the display and a system requester appears (in your case, should be "volume is write protected").
So either you use an Intuition screen for your display, or you disable system requesters. |
10 May 2018, 11:30 | #3 | |
Registered User
Join Date: Mar 2016
Location: Australia
Posts: 881
|
Quote:
Is there a nice way to disable the system requesters that works back to early (1.3) kickstarts ? |
|
10 May 2018, 11:57 | #4 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 6,985
|
Set FindTask(NULL)->pr_WindowPtr to -1.
Don't forget to restore the old value before you leave your program. |
11 May 2018, 02:11 | #5 |
Registered User
Join Date: Mar 2016
Location: Australia
Posts: 881
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Open source small ROM parts | Don_Adan | Coders. System | 149 | 24 August 2018 09:49 |
grafx2 for Amiga OS 3.x doesn't open | Amiga1992 | support.Apps | 47 | 25 April 2018 00:56 |
Xxx | RokChild | Amiga scene | 3 | 31 August 2015 23:53 |
return to the roots settlers 2 remake open source | turrican3 | support.Games | 4 | 28 July 2014 11:54 |
Rom 1.2 doesn't work anymore | hitchhikr | support.WinUAE | 4 | 24 April 2010 15:05 |
|
|