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 19 forks source link

Disable patch loading when path is empty #49

Closed jburks closed 2 years ago

jburks commented 2 years ago

In an environment with no pre-existing box16.ini, Box16 will not start unless the -nopatch option is passed to it. This happens because by default the patch option exists but is an empty string. This PR fixes that by making a non-empty patch string a prerequisite to enable the opts.apply_patch.

indigodarkwolf commented 2 years ago

Looks good. Thanks!