Dolphin, the GameCube and Wii emulator - Forums

Full Version: [PATCH] .wbfs file support
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3

R.H.

I wanted to test some wii games in dolphin, but I stored them all in .wbfs files which dolphin doesn't support. While the tools to convert them back to isos are available I decided it would be more fun to just add support myself.

The patch adds trivial changes to a few files and includes two new 'WbfsBlob' files in Source/Core/DiscIO/Src. It's not very robust, using a couple of magic numbers, but handles all the files I've thrown at it. Also the code is pretty simple if any changes are needed.

Notably only .wbfs files are supported, you can't load full wbfs partitions. Also if you stripped the update partition during conversion you will need to provide a full NAND dump (I used bootmii to build it and one of the available tools to extract) from your Wii to avoid issues loading games.
(01-22-2012, 11:05 AM)R.H. Wrote: [ -> ]I wanted to test some wii games in dolphin, but I stored them all in .wbfs files which dolphin doesn't support. While the tools to convert them back to isos are available I decided it would be more fun to just add support myself.

The patch adds trivial changes to a few files and includes two new 'WbfsBlob' files in Source/Core/DiscIO/Src. It's not very robust, using a couple of magic numbers, but handles all the files I've thrown at it. Also the code is pretty simple if any changes are needed.

Notably only .wbfs files are supported, you can't load full wbfs partitions. Also if you stripped the update partition during conversion you will need to provide a full NAND dump (I used bootmii to build it and one of the available tools to extract) from your Wii to avoid issues loading games.

Whoops, forgot to attach the file.

lazzy

i stock all my wii game wbfs in HDD 500G formated NTFS, your patch can support it (we choose directory wbfs on HDD external it will show all of them) ?
I can't get the patch: It keeps me asking to log in... Huh
(01-23-2012, 11:17 PM)arthur117 Wrote: [ -> ]I can't get the patch: It keeps me asking to log in... Huh

Browser?
(01-23-2012, 11:42 PM)ExtremeDude2 Wrote: [ -> ]
(01-23-2012, 11:17 PM)arthur117 Wrote: [ -> ]I can't get the patch: It keeps me asking to log in... Huh

Browser?

Chrome. But never mind, I can't get the source to compile anyway (I suck with VC Express), and I use CISO format on my other storage drive so no use for this patch if I switch to that. The other one I wanted won't apply due to a patch format error, so unless the Devs can correct the DX9 lighting errors I'll have to cope with it.

lazzy

i cant down load this patch with FF , always require login!

R.H.

I've updated the patch to support split files (wbfs->wbf1->wbf2 etc), perform sanity checks, read the proper block sizes from the file, and remove the non-standard __attribute((packed)) requirement. It will handle pretty much any wbfs file, the only things that would need changed would be to support physical partitions.

I wrote and tested this on a Mac with the SConstruct build system, Visual C++ users will need to add the Source/Core/DiscIO/Src/WbfsBlob.(cpp,h) files into the project manually before building.

Since people are apparently having problems downloading I have put it on pastebin.

http://pastebin.com/bPWBMDPx

By the way, is it possible to edit posts on this forum?
(01-24-2012, 09:56 AM)R.H. Wrote: [ -> ]By the way, is it possible to edit posts on this forum?

Yep, just look under your post.
(01-24-2012, 09:56 AM)R.H. Wrote: [ -> ]By the way, is it possible to edit posts on this forum?

Not until you've written 10 posts.
(01-24-2012, 06:24 PM)neobrain Wrote: [ -> ]
(01-24-2012, 09:56 AM)R.H. Wrote: [ -> ]By the way, is it possible to edit posts on this forum?

Not until you've written 10 posts.

Ah, I thought that might be a problem too Tongue
Pages: 1 2 3