Menu

#96 a changecd fix

open
nobody
None
5
2005-04-24
2005-04-24
Fred
No

I got to thinking about the ChangeCD issue, and I came
up with the follwoing solution. Instead of trying to
eject the cd when you want to change it, change it when
it is ejected. I simply borrowed some of the code from
main.cc in the ChangeCD function there and placed it in
cd.cc, in the function that is called when the cd is
ejected. It prompts you for a new cd location. Hitting
cancel or just closing the dialog leaves the existing
image loaded. The downside of this is that you can't
add a cd if there wasn't one there when you started
(impossible before) and that you can't not have a cd
inserted. Neither of these I view as real problems.

Usage:
Standard patching.

Guest OS Usage:
Inside OS X drag the cd to the trash bin.
Inside PPC Linux, use the console eject command.
Other guest OSes, as long as they know how to eject the
CD tray, you're OK.

Discussion

  • Fred

    Fred - 2005-04-24

    The ChangeCD patch.

     
  • Fred

    Fred - 2005-04-24

    Logged In: YES
    user_id=846982

    I forgot to say, patch src/io/ide/cd.cc

    Guru3

     
  • Alex Smith

    Alex Smith - 2005-04-24

    Logged In: YES
    user_id=1151901

    guru3, you're a genius!! this works brilliantly

     
  • Pradeesh

    Pradeesh - 2005-04-27

    Logged In: YES
    user_id=1181474

    Great one Guru3...I really like it very much..Kudos for
    ya...I am gonna compile this !

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.