@EPellissier ,
thanks a lot for your reply. I’m happy to hear you are considering adding exception handling to MSFS WASM, it would be a great step to make it more useful (and to reuse existing code).
About file access: I would never expect we’d be given access to the whole user hard drive. If that is really needed, I’m sure the app will just have to accept being released as a separate .exe and will never hit the Marketplace.
However, I referred to “(read-only) file access to the whole VFS”. Considering the MSFS filesystem is already virtualized, you might be able to supply with MSFS-specific file access APIs that would limit access to the MSFS filesystem only.
About SimVars, I assumed it would be easier to just add SimVars than a whole API but, what really matters is the end result, not the way it’s done.
Sure, having an Aircraft access API that (similarly to the Navdata API) would grant access to all possible airplane settings and values, included the ones not available as SimVars, that would be very useful and probably even better than having to access file outside the add-on own’s package folder.
In any case, if you wanted an example of an usage case of why file access (virtualized!!!) to other package might be useful, consider this:
An add-on with an option to support its own “add-ons”, which could be released as separate packages, but since they use constructs that are very specific to that add-on and don’t fall into any of the existing MSFS systems, they must be recognized as such by the main product, which will need to read custom data files from their packages. Nothing particularly strange or exotic: it might just be custom sections in a SIM.CFG file that are not used by MSFS, for example, but they are by the main add-on, which will have to parse those to enable its specific behaviors.
This is fairly easy to do by having access to other packages, but impossible under the current sandboxed WASM system, and would be feasible if we could at least get access to the virtualized filesystem.