Skip to content

Commit e56c985

Browse files
committed
fix a known issue
1 parent 64de39a commit e56c985

File tree

2,814 files changed

+3225
-3285
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,814 files changed

+3225
-3285
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
target
22
Cargo.lock
3-
.idea
3+
.idea
4+
.vscode

docs/msfs/all.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/msfs/index.html

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `msfs` crate."><meta name="keywords" content="rust, rustlang, rust-lang, msfs"><title>msfs - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../msfs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate msfs</p><div class='block version'><p>Version 0.0.0-pre.1</p></div><div class="sidebar-elems"><a id='all-types' href='all.html'><p>See all msfs's items</p></a><div class="block items"><ul><li><a href="#modules">Modules</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'msfs', ty: 'mod', relpath: '../'};</script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
2-
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../src/msfs/lib.rs.html#1-41' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>msfs</a></span></h1><div class='docblock'><h1 id="msfs-rs" class="section-header"><a href="#msfs-rs">msfs-rs</a></h1>
2+
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../src/msfs/lib.rs.html#1-25' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>msfs</a></span></h1><div class='docblock'><h1 id="msfs-rs" class="section-header"><a href="#msfs-rs">msfs-rs</a></h1>
33
<p>These bindings include:</p>
44
<ul>
55
<li>MSFS Gauge API</li>
@@ -8,21 +8,7 @@
88
<h2 id="building" class="section-header"><a href="#building">Building</a></h2>
99
<p>If your MSFS SDK is not installed to <code>C:\MSFS SDK</code> you will need to set the
1010
<code>MSFS_SDK</code> env variable to the correct path.</p>
11-
<h2 id="known-issues-and-work-arounds" class="section-header"><a href="#known-issues-and-work-arounds">Known Issues and Work-Arounds</a></h2><h3 id="fsapi-definition" class="section-header"><a href="#fsapi-definition"><code>FSAPI</code> Definition</a></h3>
12-
<p>The definition of <code>FSAPI</code> in <code>Legacy/gauges.h</code> needs to be modified
13-
slightly:</p>
14-
<pre><code class="language-diff">// Flightsim calling convention
15-
+#ifndef FSAPI
16-
#ifdef _MSFS_WASM
17-
#define FSAPI
18-
#else
19-
#define FSAPI __stdcall
20-
#endif
21-
+#endif
22-
</code></pre>
23-
<p>I have opened a ticket about this but I have no idea if Asobo will get
24-
around to it.</p>
25-
<h3 id="symbol-visibility-bug-in-rust" class="section-header"><a href="#symbol-visibility-bug-in-rust">Symbol visibility bug in Rust</a></h3>
11+
<h2 id="known-issues-and-work-arounds" class="section-header"><a href="#known-issues-and-work-arounds">Known Issues and Work-Arounds</a></h2><h3 id="symbol-visibility-bug-in-rust" class="section-header"><a href="#symbol-visibility-bug-in-rust">Symbol visibility bug in Rust</a></h3>
2612
<p>Until https://github.com/rust-lang/rfcs/issues/2771 is fixed, you will have
2713
to run the <code>msfs-fix</code> util on your output wasm files, like so:</p>
2814
<pre><code class="language-shell">$ cargo build
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `ASI_ALT_MANUALLY_TUNABLE` constant in crate `msfs`."><meta name="keywords" content="rust, rustlang, rust-lang, ASI_ALT_MANUALLY_TUNABLE"><title>msfs::sys::ASI_ALT_MANUALLY_TUNABLE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../msfs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../index.html'>msfs</a>::<wbr><a href='index.html'>sys</a></p><script>window.sidebarCurrent = {name: 'ASI_ALT_MANUALLY_TUNABLE', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
2-
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/msfs/mnt/c/Users/me/Documents/msfs-rs/target/debug/build/msfs-2059f89eecb1c47d/out/bindings.rs.html#3100' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../index.html'>msfs</a>::<wbr><a href='index.html'>sys</a>::<wbr><a class="constant" href=''>ASI_ALT_MANUALLY_TUNABLE</a></span></h1><pre class='rust const'>pub const ASI_ALT_MANUALLY_TUNABLE: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a> = 1;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "msfs";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
2+
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/msfs/mnt/c/Users/me/Documents/msfs-rs/target/debug/build/msfs-2059f89eecb1c47d/out/bindings.rs.html#3101' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../index.html'>msfs</a>::<wbr><a href='index.html'>sys</a>::<wbr><a class="constant" href=''>ASI_ALT_MANUALLY_TUNABLE</a></span></h1><pre class='rust const'>pub const ASI_ALT_MANUALLY_TUNABLE: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a> = 1;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "msfs";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `ASI_HEADING_MANUALLY_TUNABLE` constant in crate `msfs`."><meta name="keywords" content="rust, rustlang, rust-lang, ASI_HEADING_MANUALLY_TUNABLE"><title>msfs::sys::ASI_HEADING_MANUALLY_TUNABLE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../msfs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../index.html'>msfs</a>::<wbr><a href='index.html'>sys</a></p><script>window.sidebarCurrent = {name: 'ASI_HEADING_MANUALLY_TUNABLE', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
2-
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/msfs/mnt/c/Users/me/Documents/msfs-rs/target/debug/build/msfs-2059f89eecb1c47d/out/bindings.rs.html#3101' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../index.html'>msfs</a>::<wbr><a href='index.html'>sys</a>::<wbr><a class="constant" href=''>ASI_HEADING_MANUALLY_TUNABLE</a></span></h1><pre class='rust const'>pub const ASI_HEADING_MANUALLY_TUNABLE: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a> = 2;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "msfs";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
2+
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/msfs/mnt/c/Users/me/Documents/msfs-rs/target/debug/build/msfs-2059f89eecb1c47d/out/bindings.rs.html#3102' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../index.html'>msfs</a>::<wbr><a href='index.html'>sys</a>::<wbr><a class="constant" href=''>ASI_HEADING_MANUALLY_TUNABLE</a></span></h1><pre class='rust const'>pub const ASI_HEADING_MANUALLY_TUNABLE: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a> = 2;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "msfs";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `CROSS_FEED_SELECT_CROSS_FEED_LEFT_TO_RIGHT` constant in crate `msfs`."><meta name="keywords" content="rust, rustlang, rust-lang, CROSS_FEED_SELECT_CROSS_FEED_LEFT_TO_RIGHT"><title>msfs::sys::CROSS_FEED_SELECT_CROSS_FEED_LEFT_TO_RIGHT - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../msfs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../index.html'>msfs</a>::<wbr><a href='index.html'>sys</a></p><script>window.sidebarCurrent = {name: 'CROSS_FEED_SELECT_CROSS_FEED_LEFT_TO_RIGHT', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
2-
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/msfs/mnt/c/Users/me/Documents/msfs-rs/target/debug/build/msfs-2059f89eecb1c47d/out/bindings.rs.html#11035' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../index.html'>msfs</a>::<wbr><a href='index.html'>sys</a>::<wbr><a class="constant" href=''>CROSS_FEED_SELECT_CROSS_FEED_LEFT_TO_RIGHT</a></span></h1><pre class='rust const'>pub const CROSS_FEED_SELECT_CROSS_FEED_LEFT_TO_RIGHT: <a class="type" href="../../msfs/sys/type.CROSS_FEED_SELECT.html" title="type msfs::sys::CROSS_FEED_SELECT">CROSS_FEED_SELECT</a> = 1;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "msfs";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
2+
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/msfs/mnt/c/Users/me/Documents/msfs-rs/target/debug/build/msfs-2059f89eecb1c47d/out/bindings.rs.html#11036' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../index.html'>msfs</a>::<wbr><a href='index.html'>sys</a>::<wbr><a class="constant" href=''>CROSS_FEED_SELECT_CROSS_FEED_LEFT_TO_RIGHT</a></span></h1><pre class='rust const'>pub const CROSS_FEED_SELECT_CROSS_FEED_LEFT_TO_RIGHT: <a class="type" href="../../msfs/sys/type.CROSS_FEED_SELECT.html" title="type msfs::sys::CROSS_FEED_SELECT">CROSS_FEED_SELECT</a> = 1;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "msfs";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>

0 commit comments

Comments
 (0)