English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 10 May 2018, 10:46   #1
alpine9000
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 ?
alpine9000 is offline  
Old 10 May 2018, 11:06   #2
meynaf
son of 68k
 
meynaf's Avatar
 
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.
meynaf is offline  
Old 10 May 2018, 11:30   #3
alpine9000
Registered User
 
Join Date: Mar 2016
Location: Australia
Posts: 881
Quote:
Originally Posted by meynaf View Post
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.
Ah yeah, that will be the problem. Thanks!

Is there a nice way to disable the system requesters that works back to early (1.3) kickstarts ?
alpine9000 is offline  
Old 10 May 2018, 11:57   #4
thomas
Registered User
 
thomas's Avatar
 
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.
thomas is offline  
Old 11 May 2018, 02:11   #5
alpine9000
Registered User
 
Join Date: Mar 2016
Location: Australia
Posts: 881
Quote:
Originally Posted by thomas View Post
Set FindTask(NULL)->pr_WindowPtr to -1.

Don't forget to restore the old value before you leave your program.
This did the trick!

Thanks
alpine9000 is offline  
 


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

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 18:16.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.11531 seconds with 15 queries