概要
Dreamcast emulator written in Zig
ゲーム・エミュレーター計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- +2
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル
Deecy
Deecy is an experimental Dreamcast emulator written in Zig.
Videos: Soul Calibur (May 2024), Grandia II (July 2024), DCA3 (January 2025)
Installation
- Download the latest version for your platform from the Release Page.
- Decompress the zip archive.
- Copy your bios and flash dumps as
dc_boot.binanddc_flash.binto thedatafolder. - Launch the Deecy executable and click
Change Directoryto select the folder where you store your DC games.
Usage
Keybindings
Deecy should detect, map and use controllers automatically. Host controllers can be manually assigned to guest controller ports in the Settings. Keyboard bindings can be customized in the settings. Defaults for controller 1:
| DC Controller | Host Keyboard (AZERTY) |
|---|---|
| A, B, X, Y | A, Z, Q, S |
| L, R triggers | W, X |
| Start | Enter |
| Left Stick | Numpad 8, 4, 5, 6 |
| Dpad | Directional Arrows |
Shortcuts
| Key | Action |
|---|---|
| Escape | Show/Hide the UI |
| Space | Start/Pause emulation |
| F | Toggle Fullscreen |
| L | Toggle unlimited emulation speed |
| F1-F4 | Save state 1-4 |
| F5-F8 | Load state 1-4 |
| D | Toggle debug UI |
| N | Next Frame (Experimental) |
CLI options
| Option | Action | Argument | Notes |
|---|---|---|---|
| -g | Load and Execute a disc file (.gdi/.cdi/.chd) | Path to a disc file | |
| --vmu | Replace default vmu file | Path to an vmu file | Disables per-game VMUs |
| --no-realtime | Starts with unlimited emulation speed | ||
| --load-state | Loads a save state on startup | Slot number (0-3) | Use with -g |
| --stop | Prevent automatic start of emulation | Use with -g or -b | |
| -b | Load and Execute a .bin file | Path to a .bin file | Will also skip the BIOS. Experimental |
| -i | Replace default IP.BIN file | Path to an IP.BIN file | Use with -b only |
| --fullscreen | Starts in fullscreen | ||
| --scif | Pipe serial port to /tmp/deecy/scif (Linux only) |
Especially useful for prototyping using dcload-serial |
Compatibility
See the list here.
Contribute in its repository.
Build
Install the correct zig version (see .zigversion).
You can use zigup to manage your installed zig versions, or get it from https://ziglang.org/download/.
zigup 0.17.0
Clone and build. Zig will fetch all dependencies automatically.
git clone https://github.com/Senryoku/Deecy # Clone the repo
cd Deecy
zig build run # Build and run in debug mode without any argument
zig build run --release=fast -- -g "path/game.gdi" # Build and run in release mode and loads a disc
You will also need to provide copies of dc_boot.bin and dc_flash.bin files in the data/ directory.
Linux
Building on Linux requires these additional dependencies:
- libgtk-3-dev for nfd-zig (native file dialog)
- libudev-dev for DreamPicoPort. DreamPicoPort support can be disabled with
-Ddreampicoport=false
sudo apt install libgtk-3-dev libudev-dev
Things I know I have to do
- Renderer:
- Framebuffer:
- Improve detection of writes to framebuffer.
- Use the correct texture parameters when rendering to the host texture cache (skipping the copy to guest VRAM).
- Modifier Volumes.
- Implemented: Inclusion volumes and shadow bit over opaque and transparent geometry.
- Missing: Exclusion volumes.
- Missing: Open Translucent MVs. I've seen some uses, but no easy way to check an hypothetical implementation.
- Region Array Data Configuration are mostly ignored.
- Fog LUT Mode 2.
- Secondary accumulate buffer (low priority, not many games use this feature).
- Mipmaps for palette textures?
- Follow ISP_FEED_CFG discard mode flag? (Find a game that turns it off)
- Framebuffer:
Some sources
- http://www.shared-ptr.com/sh_insns.html
- SH4 Hardware Manual / Programming Manual
- https://segaretro.org/Dreamcast_official_documentation
- Dreamcast Programming by Marcus Comstedt : https://mc.pp.se/dc/
- Boot ROM disassembly by Lars Olsson (https://lars-olsson.sizious.com/, originally https://www.ludd.ltu.se/~jlo/dc/)
- Neill Corlett's Yamaha AICA notes
- AICA ARM7 Core tester by snickerbockers: https://github.com/snickerbockers/dc-arm7wrestler/
- Reicast https://github.com/skmp/reicast-emulator
Dependencies
Dependencies are managed by the build.zig.zon file.
- Multiple libraries from https://github.com/zig-gamedev (MIT)
- ndf-zig: https://github.com/fabioarnold/nfd-zig (MIT)
- zig-lz4: https://github.com/SnorlaxAssist/zig-lz4 (MIT), bindings for LZ4 https://github.com/lz4/lz4 (BSD 2-Clause)
- known-folders: Optional, only required for the
-Duse_appdata_dir=trueoption (MIT). - DreamPicoPort-API: Brings DreamPicoPort support (Optional, can be turned off with
-Ddreampicoport=false. MIT)
Thanks
- Huge thanks to drk||Raziel and MetalliC for their respective contributions to the scene, and for answering my questions!
- Thanks to originaldave_ for the sh4 tests (https://github.com/SingleStepTests/sh4)
- And overall thanks to everyone participating in the EmuDev Discord :)
Licence
Uses data from MAME under the BSD-3-Clause licence (see src/gdrom_secu.zig). CHD related features (src/disc/chd.zig) are also
inspired by, or even direct ports of, their equivalent from the MAME project.
Rest is MIT.
関連プロジェクトを探す
読み込み中…