From 3af0eb88e03aa2b022047f8aee2e7b81a48a612d Mon Sep 17 00:00:00 2001 From: Vinicius Silva Date: Fri, 16 Feb 2024 23:05:17 -0300 Subject: [PATCH] Fix arguments index --- src/main.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.v b/src/main.v index ff0eda0..c55b590 100644 --- a/src/main.v +++ b/src/main.v @@ -23,7 +23,7 @@ fn (mut emulator Emulator) load_rom() !{ if arguments.len > 1 { - mut file := os.open(arguments[2])! + mut file := os.open(arguments[1])! defer { file.close() } println(' Loading ROM in the memory...\n')