intvsteve / VINTage

Various Intellivision-related projects, including the LTO Flash! User Interface application.
GNU General Public License v2.0
3 stars 1 forks source link

jzintv Keyboard Hackfile path not working? #204

Closed intvsteve closed 6 years ago

intvsteve commented 6 years ago

Operating system version

macOS 10.10.5

Program version (from About box)

1.0.0.2910

Expected behavior

Keyboard hack file is used

Actual behavior

It is not

Steps to reproduce

Try a custom keyboard hackfile.

Workaround

Add --kbdhackfile argument manually.

intvsteve commented 6 years ago

In this case, but is Mac-specific. The paths to various files as stored in preferences are using NSUrl data. Before any path-related setting for jzintv is sent, however, the UI validates it.

Problem was that the C# System.IO.Path APIs operate on path strings, not "Uri" strings -- the necessary conversion from file:// syntax to file system path syntax was missing.

intvsteve commented 6 years ago

Furthermore, found that some other paths aside from hackfile were affected, though they are not presently exposed in the UI. Up to two CGC adapters are supported. The CGC configuration isn't exposed since it's untested, and may be unsupported in Windows versions newer than Windows xp anyway due to driver issues.