indigodarkwolf / box16

A fork of the official X16 emulator, converted to C++20 and with a bunch of features tweaked and added.
MIT License
41 stars 18 forks source link

error in (absolute) path handling #8

Closed irmen closed 3 years ago

irmen commented 3 years ago

I've observed a problem in the path handling when attempting to load a program with -prg. It seems as if it prepends ./ to the path, if it's not relative:

/home/irmen/Downloads/spinner.prg
irmen@neptune  ➤  ./box16/box16 -prg ~/Downloads/spinner.prg 
Cannot open .//home/irmen/Downloads/spinner.prg!
irmen@neptune  ➤  ./box16/box16 -prg /home/irmen/Downloads/spinner.prg 
Cannot open .//home/irmen/Downloads/spinner.prg!

It works fine if you supply a relative path. This is on Manjaro/Arch Linux.

indigodarkwolf commented 3 years ago

Latest code should have this fixed. If it looks good to you, feel free to close this.

irmen commented 3 years ago

yup, it works now. Thanks