DGEN(1)
๐ธ 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 ๐ฅ
-HHZ โ 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-Pfor 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. โญ-DDEMONAME โ play back a demo recorded with the-doption. rewind era. ๐-dDEMONAME โ record a demo of the program running, which can be later replayed with the-Dswitch. capture the moment bestie ๐ธ-nUSEC โ sleep for a number of microseconds after every frame, to give time to other processes. sharing is caring, be a good citizen. ๐ด-pCODE,CODE... โ modify the ROM image in memory, using Game Genie or Hex style codes. Game Genie codes are of the formABCD-EFGHand Hex codes are in the form123456:ABCD. to specify more than one code, separate them with commas โ do not use spaces. โ ๏ธ like, genuinely, no spaces. (cheat code queen behavior tho ๐ )-rRCFILE โ parse another rc file after$HOME/.dgen/dgenrc. values in the specified file override those in the preceding files. newest wins, periodt.-XXFACT โ scale the window XFACT times in the X direction. XFACT must be a positive integer. โ๏ธ-YYFACT โ scale the window YFACT times in the Y direction. YFACT must be a positive integer. โ๏ธ-SFACT โ 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). ๐ฅ๏ธ-GXxY โ desired window size (e.g.640x480,800x600, etc.) ๐-sSLOT โ 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 nextromnamefrom 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_loadfilename โ load configuration from file filename.config_savefilename โ 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. ๐calibratenumber โ interactive calibration of the specified gamepad (1 or 2). if number isn't specified, default to 1. ๐ฎunbindbinding [...] โ remove specified bindings (variables prefixed with"bind_"). seedgenrc(5)for more information about them.vgmdumpstart filename โ (see below, bestie, they share a bullet ๐)vgmdumpstop โ manages VGM dumping/logging. if the second argument isstart, VGM dumping will be started at the path specified by the third argument. if the second argument isstop, 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
- arch rolling: dgen-sdl 1.33-6 ยท BSD
- nixos 26.05: dgen-sdl 1.33
- nixpkgs unstable: dgen-sdl 1.33
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms