emuforge

Using mdemu

mdemu GAME

GAME is a cartridge (.md, .gen, .smd, .bin or .32x) or a disc: a .cue file with its files beside it, or a .chd file. Either can be in a .zip. mdemu --help has the keys and the options. The menu (F1, Escape, or the gamepad's guide button) has the settings, the buttons and the savestates. On Linux, the saves, states, screenshots and settings are in ~/.local/share/mdemu; --data-dir gives another folder.

No BIOS or boot ROM is needed or read. A disc starts with mdemu's own boot code, and its first picture can take some seconds.

In a libretro front end

mdemu is also a libretro core, for RetroArch and other libretro front ends. It is the library beside the program (libmdemu_libretro.so on Linux), and this puts it, with its .info, in the front end's folder of cores:

mdemu --install-libretro ~/.config/retroarch/cores

There, the front end has the window, sound, gamepads and menu. It plays the same files as the app: Mega Drive and 32X cartridges, and Mega CD discs as .cue or .chd, also in a .zip. The core asks for the game's path and opens it itself, so the front end does not unpack a ZIP, and a disc's files stay where they are. A disc in a ZIP takes longer to open than the same disc unpacked: some seconds, for a large one. No file goes in the front end's system folder.

mdemu's settings are its core options: the region, six or three buttons, and whether a disc gets a 32X. The region and the 32X wait until the console is reset. The RetroPad is the standard pad, by position. Its left, bottom and right buttons (Y, B and A) are the Mega Drive's A, B and C, its top one (X) is Y, L and R are X and Z, and Select is Mode.

A game's own saves, from a cartridge and from the Mega CD's backup memory and its cartridge, are in the front end's save folder, in mdemu/saves, as the app keeps them in its own folder. Savestates are the front end's. A disc cannot be changed while a game runs, as in the app, and the front end cannot read the console's memory, for cheats or achievements, yet.

mdemu is GPL-3.0-only, and so is its libretro library. Whoever gives out the library, alone or with a front end, has to follow that license, and it can apply to the whole front end when the library is linked into it or loaded by it.

From commit 1fd712ad794d. Edit this page