chore: use a more efficient decimal->bcd algorithm

This will not improve perf in any way because this code only gets run
one time a second orz
This commit is contained in:
2023-02-21 23:18:37 -06:00
parent e654abfd1d
commit e380af7056
2 changed files with 12 additions and 20 deletions

View File

@@ -93,7 +93,7 @@ pub fn main() void {
gui.run(&cpu, &scheduler) catch |e| exitln("failed to run gui thread: {}", .{e});
}
pub fn handleArguments(allocator: Allocator, data_path: []const u8, result: *const clap.Result(clap.Help, &params, clap.parsers.default)) !FilePaths {
fn handleArguments(allocator: Allocator, data_path: []const u8, result: *const clap.Result(clap.Help, &params, clap.parsers.default)) !FilePaths {
const rom_path = romPath(result);
log.info("ROM path: {s}", .{rom_path});