chore: rename consturctors to fit convention

This commit is contained in:
2022-01-02 13:58:57 -06:00
parent f09f814dc3
commit 01d6399dfb
6 changed files with 10 additions and 10 deletions

View File

@@ -23,9 +23,9 @@ pub fn main() anyerror!void {
return;
}
var bus = try Bus.withPak(alloc, zba_args[0]);
var scheduler = Scheduler.new(alloc);
var cpu = Arm7tdmi.new(&scheduler, &bus);
var bus = try Bus.init(alloc, zba_args[0]);
var scheduler = Scheduler.init(alloc);
var cpu = Arm7tdmi.init(&scheduler, &bus);
while (true) {
emu.runFrame(&scheduler, &cpu, &bus);