BizHawk icon indicating copy to clipboard operation
BizHawk copied to clipboard

Request: CHD file format support

Open psionx opened this issue 6 years ago • 17 comments

que+bin is unreliable and fails to load if the que isn't formatted correctly. hopefully having the game data as a single file will resolve the issue. also CHD being a mame file format should make it easier to include then other formats.

specifically sega saturn games need this because depending on the emulator some games load perfectly while others are broken.

psionx avatar Feb 08 '19 07:02 psionx

My issue with this, personally is how do I turn my physical Disc into a CHD? I know how to make Bin/Cue from a Physical Disc.

Another other issue is MAME's Code License compatible with BizHawk's?

hegyak avatar Feb 08 '19 15:02 hegyak

MAME is GPL now. BTW, potential use of this would be PCem whenever it's added as a core.

vadosnaprimer avatar Feb 08 '19 16:02 vadosnaprimer

I'll take a look at this in a few weeks maybe if no-one else picks it up.

A .NET native implementation of THIS that feeds into DiscSystem is probably what we need...

Asnivor avatar Feb 08 '19 17:02 Asnivor

My issue with this, personally is how do I turn my physical Disc into a CHD?

as far as I know no easy way exists to directly rip a CD/DVD to CHD but you can convert bin+que, toc, gdi, nrg and iso. http://wiki.batcom-it.netindex.php?title=Qt_CHDMAN_GUI< basic guide here

the only downside is that the QT gui is part of QMC2 mame launcher and not included with standard mame which is needed for chdman.exe.

psionx avatar Feb 09 '19 07:02 psionx

100% support this. Converting multiple files into a single chd is good to keep things neat and organized, not to mention the huge decrease in size after compression. Helps saving space in the HDD.

I've been converting PCECD and Sega CD bin/cue's to chd's as of late and they all work perfectly in RetroArch.

Sonia-7 avatar Feb 19 '19 01:02 Sonia-7

ping. still no way to get .chd working in bizhawk?

soundyogi avatar Apr 19 '21 12:04 soundyogi

CHD support will inevitably need to be supported. Any plans or insight on this?

mightymo77 avatar May 17 '22 11:05 mightymo77

https://github.com/rtissera/libchdr This appears to be what most Emulators are using.

To Convert to CHD, I recommend using CHDMan from any newer MAME release. There are batch files that work for Windows users. I don't know what Linux/OSX users would use for Bulk Conversion.

CHDs should be V5. But V1-V4 are still "Valid"

hegyak avatar Jun 03 '22 22:06 hegyak

https://github.com/rtissera/libchdr This appears to be what most Emulators are using.

That was linked by Asnivor earlier in this thread.

A .NET native implementation of THIS that feeds into DiscSystem is probably what we need...

Really just needs somebody to do the work of porting that thing to .NET...

CasualPokePlayer avatar Jun 05 '22 03:06 CasualPokePlayer

Also https://github.com/SnowflakePowered/chd-rs

YoshiRulz avatar Jul 05 '22 08:07 YoshiRulz

https://github.com/rtissera/libchdr This appears to be what most Emulators are using.

That was linked by Asnivor earlier in this thread.

A .NET native implementation of THIS that feeds into DiscSystem is probably what we need...

Really just needs somebody to do the work of porting that thing to .NET...

Today I worked on this https://github.com/HeatXD/chdr_cs I'm at the point where I can generate C# bindings for libchdr I will make try to make examples tomorrow. It might also be smart to create a safer layer around these bindings

HeatXD avatar Apr 23 '23 00:04 HeatXD

recreated the benchmark tool of libchdr in C# benchmark done in release mode. chdr_cs: image libchdr: image

Performance comes quite close using the C# bindings

HeatXD avatar Apr 23 '23 21:04 HeatXD

Does Saturnu not support CHD?

RinMaru avatar Jan 16 '24 08:01 RinMaru

Disc format support is not core specific at all, all cores get a file format agnostic CD interface from BizHawk. If BizHawk's CD handling doesn't support CHD, then no core can use CHD CDs. If BizHawk's CD handling supports CHD, then all cores can use CHD CDs.

CasualPokePlayer avatar Jan 16 '24 09:01 CasualPokePlayer

Disc format support is not core specific at all, all cores get a file format agnostic CD interface from BizHawk. If BizHawk's CD handling doesn't support CHD, then no core can use CHD CDs. If BizHawk's CD handling supports CHD, then all cores can use CHD CDs.

Then i guess Saturn has issues with it? I have to convert my CHDs to cue-bin to make them play because CHD just spits out errors.

RinMaru avatar Jan 16 '24 17:01 RinMaru

BizHawk does not have CD CHD support at all, regardless of the system. That's why this issue you are commenting on exists in the first place.

CasualPokePlayer avatar Jan 16 '24 19:01 CasualPokePlayer

BizHawk does not have CD CHD support at all, regardless of the system. That's why this issue you are commenting on exists in the first place.

Oh ok. That makes sense.

RinMaru avatar Jan 16 '24 19:01 RinMaru

Resolved by 21b6bd331b1617b0a8dbfd4471787bb43b95814c

CasualPokePlayer avatar Apr 30 '24 05:04 CasualPokePlayer