# DGEN (Sega Genesis/MegaDrive Emulator) For Mac OS X 10.4.x Tiger (Intel) and Mac OS X 10.3.9 Panther (PowerPC)

Ported by Alex Free

DGEN Official Website | Port Homepage | GitHub | MacintoshGarden

DGEN is an open source Sega Genesis/MegaDrive emulator that is available for many operating systems. This port of DGEN is for Mac OS X 10.4 and higher (Intel build) and Mac OS X 10.3.9 and higher (PowerPC build).

There was an official port to the Classic Mac OS 9 operating system in the late 90s/early 2000s, which is still available on on the Macintosh Garden. However, this port is not Mac OS X native, which also means it does not run on Mac OS X 10.5 Leopard PowerPC due to the lack of the Classic environment. Mac OS X 10.4 Tiger running on Intel systems can not even run the old port since Rosetta can not be used with the Classic environment to run Mac OS 9 software. Besides the previously stated reasons, the last Mac OS 9 release is stuck at DGEN v1.1.7. The current and latest version of the DGEN emulator is v1.3.3.

This DGEN port also includes Xbox 360 controller support already set up for use with the Tattieboogle Xbox 360 Controller Driver. Read the Usage section for the controller button mappings and info on setup.

## Table Of Contents

- Downloads
- Usage
- Install From Source
- Changlog
Bundled Software
- License

## Downloads

### Release 5 - (9/30/2021) - What's New In This Version?

Mac OS 10.4.x+ (Intel 32 bit)

Mac OS 10.3.9+ (PowerPC)

Source

View all releases.

## Usage

### System Requirements

This port of DGEN does not use assembly optimizations as they are not available on Mac OS X. A high end G4 or better is recommended. Any G5 or Intel Mac will run DGEN great.

Download and unzip the latest release for your PowerPC or Intel Mac. `Dgen.app` is a portable application, and can be ran from anywhere. Double click `Dgen.app`, and you will be presented with the following options:

- `About` - Displays the version number of DGEN
- `Configure` - This will open the `~/.dgen/dgenrc` config file in a text edit window, allowing you to make changes to the settings of the DGEN emulator.
- `Configure Xbox 360 Controller(s) Support` - This will overwrite any existing `~/.dgen/dgenrc` config file with the default configuration plus Xbox 360 Controller button mappings for up to 2 players/controllers at one time.
- `Load ROM` - This will open a Finder window allowing you to select a Sega Genesis/MegaDrive ROM file, which can be compressed.

### Fullscreen

The default configuration is to start in windowed mode. To enter fullscreen mode, press the `ALT` and `RETURN` keys at the same time.

You can edit the `bool_fullscreen = false` option to `bool_fullscreen = true` to go fullscreen by default.

### Xbox 360 Controller(s) Button Mapping

Through pure trial and error (there is no key mapping info it seems for Mac OS X+SDL 1.x+Tattieboogle Xbox 360 Controller Driver already available), I have come up with a pretty sane button mapping for Sega Genesis to Xbox 360 Controller configuration. You can try to change this to your liking, but prepared to be infuriated by the trial and error-ness of doing so on your own without my config. Up to 2 controllers will work at the same time with the below button mappings:

Sega Genesis Button | Xbox 360 Controller Button
--- | ---
DPAD-up | DPAD-up
DPAD-down | DPAD-down
DPAD-left | DPAD-left
DPAD-right | DPAD-right
A | B
B | A
C | X
X | L1
Y | Y
Z | R1
Select | Select
Start | Start

## Install From Source

### Requirements

- Mac OS X 10.4.x PowerPC (targets 10.3.9+) or Mac OS X 10.4.x Intel (targets 10.4.x+)
- Xcode 2.5

Run the `build-all` script in the source code download. DGEN will be built into a portable `Dgen.app` in the `/Applications` directory.

## Changelog

### Release 5 (9/30/2021)

- Updated libarchive to version 3.5.2.
- `Dgen.app` is now a portable application that can be ran from anywhere, not just from within the `/Applications` directory.
- Added Intel support for Mac OS X 10.4.x+ to the `build-all` script.
- Added the `Configure Xbox 360 Controller(s) Support` option, to automatically setup button mappings for Xbox 360 controllers using the Tattieboogle Xbox 360 Controller Driver.

## Bundled Software

This Release Includes:

- DGEN version 1.33(latest)
- Zlib version 1.2.11(latest)
- SDL version 1.2.15(latest 1.2 branch)
- Libarchive version 3.5.2(latest)

This release of Dgen is completely up to date as of this release (9/30/2021).

## Licenses

DGEN has multiple different licenses, as described in the DGEN license txt file. LibArchive has the New-BSD license, and Zlib is under it's own Zlib license. All of these can be found in their entirety within the `licenses` directory distributed in each DGEN For Mac OS X release.