Compare commits
No commits in common. "fc53a40b3ce3e1f3a4b5954de3ac7f4d331ba653" and "a9fe24b1b41b40933f4e1919458da776496a2dbc" have entirely different histories.
fc53a40b3c
...
a9fe24b1b4
|
@ -14,8 +14,6 @@ audio_sync = false
|
||||||
video_sync = false
|
video_sync = false
|
||||||
# Force RTC support
|
# Force RTC support
|
||||||
force_rtc = false
|
force_rtc = false
|
||||||
# Skip BIOS
|
|
||||||
skip_bios = false
|
|
||||||
|
|
||||||
[Debug]
|
[Debug]
|
||||||
# Enable detailed CPU logs
|
# Enable detailed CPU logs
|
||||||
|
|
|
@ -30,8 +30,6 @@ const Config = struct {
|
||||||
video_sync: bool = true,
|
video_sync: bool = true,
|
||||||
/// Whether RTC I/O should always be enabled
|
/// Whether RTC I/O should always be enabled
|
||||||
force_rtc: bool = false,
|
force_rtc: bool = false,
|
||||||
/// Skip BIOS
|
|
||||||
skip_bios: bool = false,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Settings related to debugging ZBA
|
/// Settings related to debugging ZBA
|
||||||
|
@ -70,7 +68,6 @@ pub fn load(allocator: Allocator, config_path: []const u8) !void {
|
||||||
if (guest.Table.keys.get("audio_sync")) |sync| state.guest.audio_sync = sync.Boolean;
|
if (guest.Table.keys.get("audio_sync")) |sync| state.guest.audio_sync = sync.Boolean;
|
||||||
if (guest.Table.keys.get("video_sync")) |sync| state.guest.video_sync = sync.Boolean;
|
if (guest.Table.keys.get("video_sync")) |sync| state.guest.video_sync = sync.Boolean;
|
||||||
if (guest.Table.keys.get("force_rtc")) |forced| state.guest.force_rtc = forced.Boolean;
|
if (guest.Table.keys.get("force_rtc")) |forced| state.guest.force_rtc = forced.Boolean;
|
||||||
if (guest.Table.keys.get("skip_bios")) |skip| state.guest.skip_bios = skip.Boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (table.keys.get("Debug")) |debug| {
|
if (table.keys.get("Debug")) |debug| {
|
||||||
|
|
|
@ -20,9 +20,8 @@ pub const log_level = if (builtin.mode != .Debug) .info else std.log.default_lev
|
||||||
// CLI Arguments + Help Text
|
// CLI Arguments + Help Text
|
||||||
const params = clap.parseParamsComptime(
|
const params = clap.parseParamsComptime(
|
||||||
\\-h, --help Display this help and exit.
|
\\-h, --help Display this help and exit.
|
||||||
\\-s, --skip Skip BIOS.
|
|
||||||
\\-b, --bios <str> Optional path to a GBA BIOS ROM.
|
\\-b, --bios <str> Optional path to a GBA BIOS ROM.
|
||||||
\\<str> Path to the GBA GamePak ROM.
|
\\<str> Path to the GBA GamePak ROM
|
||||||
\\
|
\\
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -65,9 +64,7 @@ pub fn main() anyerror!void {
|
||||||
try bus.init(allocator, &scheduler, &cpu, paths);
|
try bus.init(allocator, &scheduler, &cpu, paths);
|
||||||
defer bus.deinit();
|
defer bus.deinit();
|
||||||
|
|
||||||
if (config.config().guest.skip_bios or result.args.skip or paths.bios == null) {
|
if (paths.bios == null) cpu.fastBoot();
|
||||||
cpu.fastBoot();
|
|
||||||
}
|
|
||||||
|
|
||||||
var gui = Gui.init(&bus.pak.title, &bus.apu, width, height);
|
var gui = Gui.init(&bus.pak.title, &bus.apu, width, height);
|
||||||
defer gui.deinit();
|
defer gui.deinit();
|
||||||
|
|
Loading…
Reference in New Issue