From 30c5fafec1c312da64024709fdf2af31417e20fe Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 21 Oct 2022 05:13:09 -0300 Subject: [PATCH] chore(config): add example config file --- example.toml | 21 +++++++++++++++++++++ src/config.zig | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 example.toml diff --git a/example.toml b/example.toml new file mode 100644 index 0000000..8e3aa00 --- /dev/null +++ b/example.toml @@ -0,0 +1,21 @@ +[Host] +# Using nearest-neighbour scaling, how many times the native resolution +# of the game bow should the screen be? +win_scale = 4 +# Enable VSYNC on the UI thread +vsync = true + +[Guest] +# Sync Emulation to Audio +audio_sync = false +# Sync Emulation to Video +video_sync = false +# Force RTC support +force_rtc = false + +[Debug] +# Enable detailed CPU logs +cpu_trace = false +# When false and builtin.mode == .Debug, ZBA will panic +# on unknown I/O reads +unhandled_io = true diff --git a/src/config.zig b/src/config.zig index e7d1f92..0573d40 100644 --- a/src/config.zig +++ b/src/config.zig @@ -34,7 +34,7 @@ const Config = struct { const Debug = struct { /// Enable CPU Trace logs cpu_trace: bool = false, - /// If false and ZBA is build in debug mode, ZBA will panic on unhandled I/O + /// If false and ZBA is built in debug mode, ZBA will panic on unhandled I/O unhandled_io: bool = true, }; };