Version: 1.1.10.0
Frequency: Consistently
Severity: Blocker
Context: WASM module in a standard airport package containing a single airport. The module and entire package was compiled for FS2020 with v0.24.3 SDK.
Bug description:
According to the SDK, WASM modules can use “\work” folder for read-write operations and read-only "." folder for accessing local package contents (with some exceptions for encrypted packages). This works as expected in FS2020, but appears broken in FS2024 when trying to enumerate folder contents:
- Seemingly random files from other packages are returned for "." folder.
- Files from own local package remain unlisted.
Repro steps:
Sample code for WASM module:
DIR *dir = opendir(".\\");
struct dirent *entry = nullptr;
if(dir){
while((entry = readdir(dir)) != nullptr){
printf("%s\n", entry->d_name);
}
closedir(dir);
}
Output in dev console:
None of the listed files actually belong to the package with the WASM module that executed the code snippet.