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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 12 13 14 15 16 ... 114 Next »

Bottlenose Development Thread
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Bottlenose Development Thread
12-07-2018, 04:10 PM
#1
qashto Offline
Texture Packer
***
Posts: 157
Threads: 7
Joined: Dec 2016
Hello dolphin devs! I have a quick question. How do I get the game id from a game .iso, .gcz, or .wad without using the dolphin UI?

I'm asking because I'm working on a front end called bottlenose for dolphin and other emulators.

https://github.com/quinton-ashley/bottlenose

Currently it matches games to the gamestdb wii games database via fuzzy search but it doesn't work well if people don't name their games using the official titles as the file name. If I could do it purely in node.js or command line dolphin that would be ideal.
Find
Reply
12-07-2018, 05:11 PM
#2
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,630
Threads: 7
Joined: Oct 2014
For ISO files: Read the first four or six bytes, depending on what you want.

For WAD files: Calculate the offset of the TMD, then add 0x190 to get the offset of the four-character game ID. If you want the publisher ID (equivalent to the fifth and sixth bytes of an ISO file), add 0x198 instead of 0x190.

For GCZ, WBFS and other container formats: I think you would need to implement support for the whole container format. Once that is done, treat it as an ISO file. Code is available at https://github.com/dolphin-emu/dolphin/tree/master/Source/Core/DiscIO (the files with names ending in Blob).

If you don't want to implement all of this yourself, wit can probably do it for you.
Find
Reply
12-08-2018, 05:26 AM (This post was last modified: 12-08-2018, 05:26 AM by qashto.)
#3
qashto Offline
Texture Packer
***
Posts: 157
Threads: 7
Joined: Dec 2016
Thanks!  I'll look into using the wit tool!
Find
Reply
01-06-2019, 11:48 AM
#4
qashto Offline
Texture Packer
***
Posts: 157
Threads: 7
Joined: Dec 2016
wit doesn't work for gamecube games and only seems to work with isos :/

I would be really grateful if you or another Dolphin Dev could help me out and make a command line feature for Dolphin that prints the game ID from a game file. This is already done in the UI with "Properties">"Info". I wish I could implement it myself but I wouldn't even know where to start.
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