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

ini file can't be found when launched from another directory. #10

Closed indigodarkwolf closed 3 years ago

indigodarkwolf commented 3 years ago

At some point, I pulled out SDL_GetBasePath() as the directory root for finding files. I don't recall the reasons why, so I probably just thought it was unnecessary. However! Turns out this is important after all, if someone is in another directory and tries to invoke box16, box16 is now expecting the ROM, ini file, and other tidbits to be located in the directory that the command line is on, not the directory of the executable.

Since box16 is trying to maintain 100% compatibility with the official x16 emulator, it's important that this be addressed to restore the original locating behavior.

indigodarkwolf commented 3 years ago

Crossing fingers that I got this right this time.

indigodarkwolf commented 3 years ago

This appears to be fixed.