@Markus
I get same results on most recent version of AppGameKit on steam and my TGC account, I don't really use the steam version much as the folders in TGC version are more accessible (right click>>open file location)
@Paul
I only seem to get the windows warning for a short while after taking the disk out as again now its not showing when error mode is not 2, like windows ignores the drive if it has not been used in a while, this must be a Windows 10 thing because I expect to see the "No disk in drive" warning when attempting to access a ROM drive with no media present its been a bugbear of windows for years, a google of the warning retrieves over 40 million results, if I load up a disk and take it out and run the code again the warning shows again
in PureBasic I would avoid any windows warning by using the following
Define.q BytesFreeToCaller, TotalBytes, TotalFreeBytes
Define drive$ = "D:\"
If GetDriveType_(drive$) = #DRIVE_CDROM
If GetDiskFreeSpaceEx_(@drive$, @BytesFreeToCaller, @TotalBytes, @TotalFreeBytes) > 0
MessageRequester("","Drive is ready! ("+Str(TotalBytes)+")",0)
Debug TotalBytes
Else
MessageRequester("","Drive not ready!",0)
EndIf
EndIf
does it not make sense to be able to check for this result in code rather than relying on a error dialog, if you added
GetDriveType() and
GetDiskFreeSpaceEx() then we could check this ourselves, when we encounter a DRIVE_CDROM (5) we can check the size of the media and by doing so avoid any agk or Windows errors or warnings when attempting to call OpenRawFolder() on a empty drive letter
I can do this from a plugin easy enough as it only applies to windows anyway, just would be nice to have it all as part of native code, not only that, if a user published a game to disk these functions would help with media retrieval when loading game data from disk, I know that's all a bit 1990's but you never know