Skip to content

armgit / gecko

Public Imported from GitHub
0

A GameCube/Wii emulator and debugger written in Rust.

blabla

Layle453da6f13cd8
diff --git a/README.md b/README.md
index ea79b36..bc065c9 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@ Gecko is still in development. Support may vary, while many games work perfectly
- Modular audio backend, defaults to `cpal`
- Supports mixing audio sinks
- Supports dumping to .wav files
-- LUA scripting/hooks system for runtime introspection
+- Lua scripting system for runtime introspection
- A beautiful yet advanced egui-based debugging UI
- Symbol parsing from ELFs and IDA Pro databases
- RenderDoc captures with all sorts of debug markers
@@ -65,15 +65,15 @@ wasm-pack build crates/web --target web --out-dir pkg --release # web version
### Features
-| Flag | Crates | Description |
-| ------------------- | --------------------------------------------------------- | ------------------------------------------------------- |
-| `hooks` | `tinyapp` (off), `debugger` (on) | Lua scripting and hooks |
-| `hooks-mut-traps` | `tinyapp` (off), `debugger` (off) | Let hooks re-register themselves at runtime |
-| `gecko/idle-skip` | (gecko, off) | Skip idle PPC polling loops |
-| `efb-writeback` | `tinyapp` (off), `debugger` (off) | EFB-to-texture writeback (needed by some games) |
-| `audio-wav-dump` | `tinyapp` (off) | Write all emulated audio to `dump.wav` while running |
-| `renderdoc-capture` | `debugger` (off) | RenderDoc captures with debug markers, triggered by F10 |
-| `debug` | `web` (off, on for [`/dbg`](https://gecko.layle.dev/dbg)) | Bundle the in-browser debugger UI |
+| Flag | Crates | Description |
+| --------------------- | --------------------------------------------------------- | ------------------------------------------------------- |
+| `scripting` | `tinyapp` (off); `debugger` (on) | Lua scripting support and the `--script` option |
+| `scripting-mut-traps` | `tinyapp` (off), `debugger` (off) | Let scripting hooks re-register themselves at runtime |
+| `gecko/idle-skip` | (gecko, off) | Skip idle PPC polling loops |
+| `efb-writeback` | `tinyapp` (off), `debugger` (off) | EFB-to-texture writeback (needed by some games) |
+| `audio-wav-dump` | `tinyapp` (off) | Write all emulated audio to `dump.wav` while running |
+| `renderdoc-capture` | `debugger` (off) | RenderDoc captures with debug markers, triggered by F10 |
+| `debug` | `web` (off, on for [`/dbg`](https://gecko.layle.dev/dbg)) | Bundle the in-browser debugger UI |
`idle-skip` lives on the `gecko` crate; enable it from any binary with `--features gecko/idle-skip` (e.g. `cargo run -p tinyapp --features gecko/idle-skip`).
@@ -132,4 +132,4 @@ Gecko is being developed alongside other amazing emulators that shaped how Gecko
- [solstice](https://codeberg.org/hazelwiss/solstice) authored by hazelwiss
- [beanwii](https://github.com/zaydlang/beanwii) authored by zayd
-Besides these "sister projects", [Dolphin](https://github.com/dolphin-emu/dolphin) has also been a major contributor and the main reference for when things got tricky ;)
\ No newline at end of file
+Besides these "sister projects", [Dolphin](https://github.com/dolphin-emu/dolphin) has also been a major contributor and the main reference for when things got tricky ;)
diff --git a/crates/debugger/Cargo.toml b/crates/debugger/Cargo.toml
index 15b26b8..86b0190 100644
--- a/crates/debugger/Cargo.toml
+++ b/crates/debugger/Cargo.toml
@@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2024"
[features]
-hooks-mut-traps = ["gecko/hooks-mut-traps", "scripting/hooks-mut-traps"]
+scripting-mut-traps = ["gecko/hooks-mut-traps", "scripting/hooks-mut-traps"]
efb-writeback = ["backend-wgpu/efb-writeback", "dep:crossbeam-channel"]
renderdoc-capture = ["backend-wgpu/renderdoc-capture"]
diff --git a/crates/tinyapp/Cargo.toml b/crates/tinyapp/Cargo.toml
index f56cd0c..1b003b0 100644
--- a/crates/tinyapp/Cargo.toml
+++ b/crates/tinyapp/Cargo.toml
@@ -4,8 +4,8 @@ version = "0.1.0"
edition = "2024"
[features]
-hooks = ["gecko/hooks", "dep:scripting"]
-hooks-mut-traps = ["hooks", "gecko/hooks-mut-traps", "scripting/hooks-mut-traps"]
+scripting = ["gecko/hooks", "dep:scripting"]
+scripting-mut-traps = ["scripting", "gecko/hooks-mut-traps", "scripting/hooks-mut-traps"]
efb-writeback = ["backend-wgpu/efb-writeback"]
audio-wav-dump = ["gecko/audio-wav-dump"]
diff --git a/crates/tinyapp/src/main.rs b/crates/tinyapp/src/main.rs
index 601fa72..f9b1f03 100644
--- a/crates/tinyapp/src/main.rs
+++ b/crates/tinyapp/src/main.rs
@@ -64,7 +64,7 @@ struct Args {
coef: Option<String>,
/// Path to a Lua script for scripting hooks
- #[cfg(feature = "hooks")]
+ #[cfg(feature = "scripting")]
#[arg(long)]
script: Option<String>,
@@ -141,7 +141,7 @@ fn main() {
if dvd.header().is_wii() {
println!("Detected Wii disc, booting via apploader HLE");
let builder = Wii::apploader_hle(dvd);
- #[cfg(feature = "hooks")]
+ #[cfg(feature = "scripting")]
let builder = if let Some(ref path) = args.script {
let host = scripting::LuaHost::from_file(path).expect("failed to load script");
builder.lua_host(Box::new(host))
@@ -173,7 +173,7 @@ fn configure<const SYSTEM: SystemId>(emulator: &mut System<SYSTEM>, args: &Args)
emulator.dsp.load_coef(&coef_data);
}
- #[cfg(feature = "hooks")]
+ #[cfg(feature = "scripting")]
if let Some(ref path) = args.script {
// Already attached for Wii apploader HLE; only attach here for other
// boot paths.