Fix arguments index

This commit is contained in:
Vinicius Silva 2024-02-16 23:05:17 -03:00 committed by Vinicius Silva
parent f07093289c
commit 3af0eb88e0
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ fn (mut emulator Emulator) load_rom() !{
if arguments.len > 1 { if arguments.len > 1 {
mut file := os.open(arguments[2])! mut file := os.open(arguments[1])!
defer { file.close() } defer { file.close() }
println(' Loading ROM in the memory...\n') println(' Loading ROM in the memory...\n')