> One problem with this is that DOS/Windows keeps the current directory on a per
> drive basis (at least from a user interface point of view, don't know how it is
> implemented internally).  Of course since you also know the current (aka
> default) drive as well as the current directory you can change the current
> UNIX dir when the drive is changed.  However I could see this causing problems
> if a process's current directory is a CD-ROM drive it will prevent the
> CD-ROM from being unmounted.  That is both good and bad.  Under DOS it is
> perfectly valid to eject the CD-ROM even if you are on that drive.  Under
> Windows it will generally give you a message about the drive being in use and
> ask if you want to eject it anyway.

> I am not exactly sure how to deal with this extremely screwed up behavior.  Of
> course that is the story of Wine so what else is new.

This problem is solved at least for the emulator. Current directory state
is maintained by WINE, the UNIX working directory is always /.
(So Diablo2 can change CDs ;)

WINELIB still uses the current UNIX directory.

Ciao, Marcus

Reply via email to