Skip to content

Dreamcast Port Initial Implementation - #24

Open
h4mu wants to merge 1 commit into
masterfrom
dreamcast-port-6818930104015367374
Open

Dreamcast Port Initial Implementation#24
h4mu wants to merge 1 commit into
masterfrom
dreamcast-port-6818930104015367374

Conversation

@h4mu

@h4mu h4mu commented Jul 4, 2026

Copy link
Copy Markdown
Owner

This PR adds initial support for porting Rise of the Triad to the Sega Dreamcast.

Key changes:

  1. Platform Abstraction: Updated rott/rt_def.h to include PLATFORM_DREAMCAST support, including POSIX-compatible header inclusions and path definitions.
  2. Read-Only Filesystem: Modified core I/O functions in rott/rt_util.c, configuration saving in rott/rt_cfg.c, and WAD writing in rott/w_wad.c to disable write operations when building for Dreamcast, as the platform typically runs from read-only media (GD-ROM).
  3. Submodules: Integrated KallistiOS (KOS), a Dreamcast-specific SDL2 fork, and the official SDL2_mixer as git submodules in the dreamcast/ directory.
  4. Development Environment: Provided a Dockerfile and a setup_env.sh script to automate the setup of the sh-elf cross-compiler and the compilation of KOS and its port libraries.
  5. Build System: Added a dedicated Makefile in dreamcast/ that correctly handles the unique build process for Dreamcast ELFs across all game editions (Shareware, Registered, CD, and Site License).

These changes are isolated behind the PLATFORM_DREAMCAST macro to preserve compatibility with existing platforms.


PR created automatically by Jules for task 6818930104015367374 started by @h4mu

- Created dreamcast/ subdirectory with KOS, SDL2, and SDL2_mixer submodules.
- Modified rott/rt_def.h to support PLATFORM_DREAMCAST.
- Disabled filesystem writes in rott/rt_util.c, rott/rt_cfg.c, and rott/w_wad.c for Dreamcast.
- Added dreamcast/setup_env.sh and dreamcast/Dockerfile for development environment setup.
- Created dreamcast/Makefile to build huntbgin, darkwar, rottcd, and rottsite ELFs.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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.

1 participant