Fix arguments index
This commit is contained in:
parent
f07093289c
commit
3af0eb88e0
|
|
@ -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')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue