pocomane / MiSTer_Batch_Control

Simple utility to control the MiSTer FPGA from the command line
47 stars 8 forks source link

Symbolic links fail #10

Closed pocomane closed 3 years ago

pocomane commented 3 years ago

1) In this issue a fail of the rom link method was reported. 2) It this isse an issue with realpath was reported.

The 1) is probably due to the fact that the target filesystem does not support symbolic links. For the 2) it is not clear if it is an issue with the musl implementation of realpath or if it is due to how the CIFS handle the links.

However both the issue can be fix using mount/bind points instead of links, how WebMenu does. I implemented such method, it can be enabled with the USE_MOUNT_POINTS compile time flags.

This method uses still a " !MBC" sub-dir to store the mount points since, as shown in this issue, there are a lot of core that needs that the default game directory is not overwritten.

In the release page there should be a mbc_mnt binary for test, compiled with USE_MOUNT_POINTS feature.

pocomane commented 3 years ago

Mount trick became the default: no need to enable USE_MOUNT_POINTS anymore, and a single mbc binary is provided in the release pages.