Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add complete support for "Rikki & Vikki" #5

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

tachimarten
Copy link

@tachimarten tachimarten commented Aug 25, 2022

Hi,

Here's a pull request with complete support for "Rikki & Vikki", including music. It adds support for BupSystem's BIN/CDF format, so that you can open the Steam FoxBox.cdf in ProSystem and it should run fine.

One of the commits contains a vendored copy of part of BupBoop, which is an emulation of the chip that this game uses. (The emulator, chip, and game were all written by the same author.) This library is under the zlib license, which is GPL compatible.

The first few commits were needed to build on MSVC 2019. If you'd like I can split those into a separate pull request.

There is a corresponding libretro pull request that contains this same code, ported over to the style of that fork.

This is invalid C++, and newer versions of MSVC reject it.
The database is opened via a relative path, so opening a file picker
before opening the database can cause the database not to be found.
This is needed because SOUPER cartridges can trap MARIA's reads and
handle them specially.
BupBoop uses this header, and older versions of MSVC don't supply it, so
we supply it ourselves.
This is located at: http://tailchao.com/Audio/index.php#BupBoop

It uses the zlib license, which is GPL compatible.

This library is needed to emulate the sound hardware that "Rikki &
Vikki" uses. It's an entirely separate chip included in the cartridge
that produces 16-bit stereo audio.

Note that BupBoop supplies a library called WinTone that provides
DirectSound bindings, but we don't use it both because we already use
DirectSound and because using WinTone would complicate `libretro`
portability.
According to the author of BupBoop (and of "Rikki & Vikki"), this is
necessary in order to play the music of that game properly.
This doesn't affect the sound of any other cartridge, but it's needed to
play BupBoop audio (from "Rikki & Vikki") at full fidelity.
Note that this commit itself doesn't actually allow the BupChip to be
used for anything, because the only way to supply music for the BupChip
to play is through the CDF format.
This format allows song files to be supplied to the emulated BupChip for
playback. It matches the format used by BupSystem:
http://tailchao.com/BupSystem/index.php

"Rikki & Vikki" is supplied as a CDF file, along with an unheadered
`.bin` image and several music files.
@soundsnow
Copy link

soundsnow commented Sep 13, 2022

@tachimarten
Can you add support for this game for the A7800 or MAME as well? Although I am not sure
A7800 is still active and it is based on MAME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants