DGEN(1)

๐Ÿ“ฆ version 1.33, in arch rolling, nixos 26.05, nixpkgs unstable

๐ŸŒธ DGEN(1) โ€” the dgen girl's guide to the Sega Genesis/Mega Drive emulator ๐ŸŒธ

okay bestie, sit down, grab a strawberry drink ๐Ÿ“, because we're talking about dgen, the Sega Genesis/Mega Drive emulator, and honestly? she's iconic. this is the General Commands Manual page for her, and i'm gonna walk you through every single thing so you never have to squint at boring manpage prose again. ๐Ÿ’…


โœจ SYNOPSIS โœจ

dgen [-Pfhmv] [-R (J|U|E)] [-H HZ] [-D DEMONAME] [-d DEMONAME] [-n USEC]
     [-p CODE,CODE...] [-r RCFILE] [-X XFACT] [-Y YFACT] [-S FACT]
     [-g (0|1)] [-G XxY] [-s SLOT] [romname [...]]

๐Ÿ’– DESCRIPTION ๐Ÿ’–

So here's the vibe: the ROM image sitting in the file romname gets executed, emulated as if it were running on a Sega Genesis or Mega Drive in 60Hz NTSC mode. unless you pass the -P option, in which case it's 50Hz PAL mode instead. that's the whole plot. ๐ŸŽ€

romname should be in raw binary or SMD format, and it may be compressed with gzip(1), zip(1), or bzip2(1). yes queen, compressed ROMs are supported, you don't have to unzip anything first. ๐Ÿฆ‹

When romname isn't specified, DGen starts without a ROM. no drama โ€” it can be loaded later from the prompt. and when more than a single romname is specified, they are executed sequentially, one after the other, like a little playlist. ๐ŸŽต

The options are as follows:


๐Ÿ”ฅ OPTIONS ๐Ÿ”ฅ

  • -H HZ โ€” use a custom frame rate. highkey useful if you wanna accelerate or slow down emulation. (yes, deliberately. it's a whole thing.)
  • -P โ€” emulate 50Hz PAL mode, as used in European models of the Mega Drive. ๐Ÿ‡ช๐Ÿ‡บ
  • -R (J|U|E) โ€” set the emulator region. without this option, DGen uses the first region mentioned in the ROM header. it should be combined with -P for PAL mode. see the lil' table below ๐Ÿ‘‡
    • (none) โ€” autodetect (NTSC, 60Hz)
    • -P โ€” autodetect (PAL, 50Hz)
    • -R J โ€” Japan (NTSC, 60Hz)
    • -R J -P โ€” Japan (PAL, 50Hz)
    • -R E โ€” Europe (NTSC, 60Hz, music will certainly play too fast) ๐Ÿ˜ญ
    • -R E -P โ€” Europe (PAL, 50Hz)
    • -R U โ€” America (NTSC, 60Hz)
    • -R U -P โ€” same as -R E -P
  • -f โ€” run fullscreen, if possible. main character energy, filling the whole screen. ๐Ÿ‘‘
  • -h โ€” show a brief synopsis of all options. the "help me help you" flag. ๐Ÿซถ
  • -m โ€” MinGW only. this option prevents DGen from detaching from its control console. (iykyk)
  • -v โ€” show the version number, and exit. short and sweet, she said what she said. โญ
  • -D DEMONAME โ€” play back a demo recorded with the -d option. rewind era. ๐Ÿ™ˆ
  • -d DEMONAME โ€” record a demo of the program running, which can be later replayed with the -D switch. capture the moment bestie ๐Ÿ“ธ
  • -n USEC โ€” sleep for a number of microseconds after every frame, to give time to other processes. sharing is caring, be a good citizen. ๐Ÿ˜ด
  • -p CODE,CODE... โ€” modify the ROM image in memory, using Game Genie or Hex style codes. Game Genie codes are of the form ABCD-EFGH and Hex codes are in the form 123456:ABCD. to specify more than one code, separate them with commas โ€” do not use spaces. โš ๏ธ like, genuinely, no spaces. (cheat code queen behavior tho ๐Ÿ’…)
  • -r RCFILE โ€” parse another rc file after $HOME/.dgen/dgenrc. values in the specified file override those in the preceding files. newest wins, periodt.
  • -X XFACT โ€” scale the window XFACT times in the X direction. XFACT must be a positive integer. โ†”๏ธ
  • -Y YFACT โ€” scale the window YFACT times in the Y direction. YFACT must be a positive integer. โ†•๏ธ
  • -S FACT โ€” scale the window FACT times in both directions. FACT must be a positive integer. big mood, literally. ๐Ÿ”
  • -g (0|1) โ€” enable/disable OpenGL (if compiled-in). ๐Ÿ–ฅ๏ธ
  • -G XxY โ€” desired window size (e.g. 640x480, 800x600, etc.) ๐Ÿ“
  • -s SLOT โ€” load the saved state from the given slot at startup (0-9). nine little time capsules. ๐ŸŽ

๐Ÿงš INTERACTIVE PROMPT ๐Ÿงš

There's a minimalist interactive prompt, inspired from vi(1), and you can use it to perform the various operations described below. It's triggered by pressing colon (:) โ€” that's the default key. Command-line editing, history and completion are all supported, so you're not typing blind like a fool. โœจ

๐ŸŽ€ Commands ๐ŸŽ€

  • {quit, exit, q} โ€” quit, or load the next romname from command-line, if any. like closing a tab but make it emulator. ๐Ÿ’€
  • {load, open, plug, o} filename โ€” load a given ROM filename. so many ways to say "gimme". ๐Ÿซถ
  • {unload, close, unplug} โ€” unload the current ROM. bye bestie ๐Ÿ‘‹
  • config_load filename โ€” load configuration from file filename.
  • config_save filename โ€” save current configuration to file filename.
  • reset โ€” Genesis reset. the classic "have you tried turning it off and on again". ๐Ÿ”„
  • {ctv_push, ctv_pop, ctv_none} โ€” manage the stack of Crap TV filters (if compiled-in). stack queen. ๐Ÿ“š
  • calibrate number โ€” interactive calibration of the specified gamepad (1 or 2). if number isn't specified, default to 1. ๐ŸŽฎ
  • unbind binding [...] โ€” remove specified bindings (variables prefixed with "bind_"). see dgenrc(5) for more information about them.
  • vgmdump start filename โ€” (see below, bestie, they share a bullet ๐Ÿ’–)
  • vgmdump stop โ€” manages VGM dumping/logging. if the second argument is start, VGM dumping will be started at the path specified by the third argument. if the second argument is stop, VGM dumping will be stopped and the dump finalized. ๐ŸŽถ

๐Ÿฆ‹ Variables ๐Ÿฆ‹

All configuration variables from dgenrc(5) can be displayed and modified interactively, with immediate effect. no reload needed, it's giving instant gratification. โšก

  • {int_name, bool_name, key_name, joy_name, ...} {value} โ€” affect value to variable name.
  • {int_name, bool_name, key_name, joy_name, ...} โ€” display current value for variable name.

๐ŸŒˆ FILES ๐ŸŒˆ

  • $HOME/.dgen/dgenrc โ€” contains user settings for the emulator.
  • $HOME/.dgen/dgenrc.auto โ€” generated file containing saved user settings.
  • $HOME/.dgen/saves/* โ€” save states generated by the emulator.
  • $HOME/.dgen/ram/* โ€” battery-backup RAM images, generated by the emulator for ROMs with save RAM.
  • $HOME/.dgen/screenshots/* โ€” screenshots are generated there. ๐Ÿ“ธ
  • $HOME/.dgen/roms/* โ€” ROMs default search path.
  • $HOME/.dgen/demos/* โ€” Demos default search path.

โญ SEE ALSO โญ

gzip(1), bzip2(1), zip(1), dgenrc(5)


๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

This manual page was written by Joe Groff <joe@pknet.com>. Updated by zamaz <zamaz@users.sourceforge.net>. legends, both of them. ๐Ÿซถ


๐Ÿ’€ BUGS ๐Ÿ’€

There are known emulation bugs, see BUGS in the DGen source package. not me pretending everything's perfect ๐Ÿ˜ญ

Report bugs to <http://sourceforge.net/projects/dgen/>.


ok that's the whole page, no cap, every flag and file path accounted for. go forth and emulate, bestie. ๐Ÿ’œ

mwah ๐Ÿ’‹ โ€” this came from the Debian edition of the page, dated July 26, 2014, and yes she's still serving.

๐Ÿ“ฆ where this page comes from