Jump to content
OGXbox.com

Checking for a disc in the drive with XML


datura
 Share

Recommended Posts

I've been writing and tweaking my UnleashX config for about a day or so and I think I have every feature that I personally want from my dashboard. The only issue is with the DVD copy function. It works as expected, except that when it is selected without a disc in the drive, it completes instantly and still says that ripping the disc was successful. I'd like to throw an error MessageBox if this is the case just to make it a bit more presentable. Do any XML wizards know if there's a way to check if there's a disc in the drive? Any help is greatly appreciated.

<List Text="Copy Disc to HDD" Sort="Off" Batch="True">
				<Item Action="AskUser" Arg1="Copy Disc To HDD">Proceed with copying the disc to the HDD?\nThe directory will be written to F:\games\[Title]</Item>
				<Item Action="CopyDVD">Error: failed to copy disc. The disc may be dirty or damaged</Item>
				<Item Action="TrayOpen"/>
				<Item Action="MessageBox" Arg1="Complete">Disc successfully copied to HDD!\nPlease remove the disc before continuing.</Item>
				<Item Action="TrayClose"/>
			</List>

 

config.xml

 

Edited by datura
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

Board Life Status


Board startup date: April 23, 2017 12:45:48
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.