WASM MSFS_Vars.h inconsistent with SDK documentation

Version: SDK 1.2.0 2024

Frequency: Always

Severity: Annoyance

Similar MSFS 2020 issue: No

Context: WASM MSFS_Vars.h inconsistent with SDK documentation

Attachments: N/A, but can be provided upon request

Bug description:

The deployed MSFS_Vars.h defines a wrong or outdated call template for:

void fsVarsNamedVarGet(FsNamedVarId var, FsUnitId unit, double* result);
void fsVarsNamedVarSet(FsNamedVarId var, FsUnitId unit, double value);

The SDK Doc states:

FsVarError fsVarsNamedVarGet(FsSNamedId simvarId, FsUnitId unitId, double* result);
FsVarError fsVarsNamedVarSet(FsNamedVarId namedId, FsUnitId unitId, double value);

Not sure if Doc or file is correct.

Of course the header is correct. This should be filed as a docs bug. :+1:

1 Like

Hello,

fsVarsNamedVarGet, will be fixed in the docs.

However, Iā€™m not sure to see the typo in ā€œfsVarsNamedVarSetā€ ?

Regards,
Boris

from SDK 1.2.2:

h file is a void function, SDK Doc says FsVarError as return type
same difference as the Get function

MSFS_Vars.h

void fsVarsNamedVarSet(FsNamedVarId var, FsUnitId unit, double value);

SDK Doc

FsVarError fsVarsNamedVarSet(
    FsNamedVarId namedId,
    FsUnitId unitId,
    double value
);

My bad,
I got it (and updated the ticket).

Thank you :wink:

Regards,
Boris

To answer your last question: the file is correct.

Best regards,

Eric / Asobo

1 Like