WASM I/O error

despite is written in SDK:

In order to access files from within an add-on, filenames can be prefixed in two ways:

".\": to access the files from within the add-on package. This has a read-only access.

"\work": to access a persistent storage that the add-on can use. This is a read/write access.

this piece of code:

FILE* fh = fopen (".\\default.ln3", "r");


  if (fh == (FILE*) 0) {

      fprintf(stderr,

          "SIM SKUNK WORKS G-91 DEBUG: failed to open .ln3 file errno:%d\n", errno);

      perror("fopen() failed");

      return (char*)0;

  }

produces a I/O error (errno = 29)

from sim console:

SIM SKUNK WORKS G-91 DEBUG: SimConnect connection open: OK

SIM SKUNK WORKS G-91 DEBUG: failed to open .ln3 file errno:29

fopen() failed : I/O error

any clue ?

thanks in advance

Mario

Hi @PaternalSmile51,
Have you searched in the SDK for your error? Or a search for WASM?
Search results for ‘wasm category:179’ - Microsoft Flight Simulator Forums

I’m going to move your post to the SDK area as it relates to that rather than Bugs & Issues outside of the Developer Mode in MSFS.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.