• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › General Discussion v
« Previous 1 ... 5 6 7 8 9 ... 369 Next »

How does Dolphin change the currently inserted disc?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
How does Dolphin change the currently inserted disc?
05-09-2022, 12:13 AM
#1
Markix Offline
Junior Member
**
Posts: 3
Threads: 1
Joined: May 2022
HI!

So, I'm working on a "DYI" Wii that utilizes Dolphin, and to make it as authentic as possible. I want to make a udev rule/python script combo that does the following:

- Detect when a DVD is inserted
- Read the contents of the DVD
- If it finds an ISO with a valid name, switch the currently inserted disc in Dolphin to that ISO

But I'm kind of stuck at that last part.

Running Dolphin from the CLI doesn't seem to offer any options, nor does dolphin-tool. I tried digging through the source code but I quickly realized that I suck at reading C++.

So, is it even possible to change the currently inserted disc from the CLI? And if so, how?
Find
Reply
05-09-2022, 12:24 AM
#2
JosJuice Online
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,946
Threads: 7
Joined: Oct 2014
You can't do this through the CLI.

If you want to know where in Dolphin's source code it's handled, here it is: https://github.com/dolphin-emu/dolphin/blob/299d5c0141b1954583ef3cfad8f361bd10dbabd0/Source/Core/Core/HW/DVD/DVDInterface.cpp#L542
Find
Reply
05-09-2022, 02:56 AM
#3
Markix Offline
Junior Member
**
Posts: 3
Threads: 1
Joined: May 2022
(05-09-2022, 12:24 AM)JosJuice Wrote: You can't do this through the CLI.

If you want to know where in Dolphin's source code it's handled, here it is: https://github.com/dolphin-emu/dolphin/blob/299d5c0141b1954583ef3cfad8f361bd10dbabd0/Source/Core/Core/HW/DVD/DVDInterface.cpp#L542

That's a shame.

I think I know the answer to this question, but would it be possible to make my own implementation of what I originally wanted to make with that udev rule/python script combo inside Dolphin and recompile it? 
Find
Reply
05-09-2022, 03:13 AM
#4
JosJuice Online
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,946
Threads: 7
Joined: Oct 2014
Probably? I don't know the exact details of what you're doing, but if you can do it in Python you can probably do it in C++ in one way or another.
Find
Reply
05-14-2022, 10:40 PM
#5
Jb2k Offline
Junior Member
**
Posts: 3
Threads: 0
Joined: Jul 2021
Thats not very nice to answer, you know most of us don’t know have the know how to actively participate with the source code and asking for an api to change disc’s is one of the most requested feature imo.
Find
Reply
05-15-2022, 01:06 AM
#6
JosJuice Online
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,946
Threads: 7
Joined: Oct 2014
Sorry, I assumed you did have that kind of knowledge since you were talking about making your own implementation.

While I do think it would be nice to have this as a feature, this is actually the first time I've seen someone request it, and personally I'm too busy with other tasks to work on it or to explain in detail how to implement it. But maybe at some point in the future!
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode