View Single Post
Old 28 June 2009, 12:25   #4
Toni Wilen
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 46
Posts: 24,696
Originally Posted by Ed Cruse View Post
You're already doing this with "Auto mount removable drives".
It isn't the same thing. Actually it is totally different thing

Automount while emulation is running:

- Windows sends notification that drive X: is now available
- WinUAE scans all configured but unmounted real harddrive-style devices and checks if device name (that long "\\?\blahblah"-string) can be opened. If it opens -> it must be same device as drive X: -> do not mount as directory, only as an uaehf.device unit. If it does not open -> it is not same drive -> mount as a directory.

This does not solve the problem of not being able to match device names to drive letter(s).

ADDED: I guess this can be solved by comparing serial numbers but there are filesystem serial numbers, volume serial numbers and drive serial numbers, not yet sure how to find correct serial numbers..

Last edited by Toni Wilen; 28 June 2009 at 14:36.
Toni Wilen is online now  
Page generated in 0.07395 seconds with 11 queries