Skip to content

Commit

Permalink
Merge branch 'master' into fix_reverser_accel
Browse files Browse the repository at this point in the history
  • Loading branch information
crocket63 authored Mar 29, 2024
2 parents 1622c21 + aab1873 commit cf0fe97
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4600,7 +4600,7 @@ class FMCMainDisplay extends BaseAirliners {
}

isPdFormat(s) {
const pd = s.match(/^([^\/]+)\/([0-9]{1,3}(\.[0-9])?)$/);
const pd = s.match(/^([^\/]+)\/([\-\+]?[0-9]{1,3}(\.[0-9])?)$/);
return pd !== null && this.isPlaceFormat(pd[1]);
}

Expand Down
5 changes: 5 additions & 0 deletions fbw-a32nx/src/wasm/fadec_a320/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ wasm-ld \
--export malloc \
--export free \
--export __wasm_call_ctors \
--export mallinfo \
--export mchunkit_begin \
--export mchunkit_next \
--export get_pages_state \
--export mark_decommit_pages \
--export-table \
--gc-sections \
-lc++ -lc++abi \
Expand Down
5 changes: 5 additions & 0 deletions fbw-a32nx/src/wasm/fbw_a320/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ wasm-ld \
--export malloc \
--export free \
--export __wasm_call_ctors \
--export mallinfo \
--export mchunkit_begin \
--export mchunkit_next \
--export get_pages_state \
--export mark_decommit_pages \
--export-table \
--gc-sections \
${WASMLD_ARGS} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ minor =0
[VIEWS]
eyepoint = 44.2, -1.72, 4.15 ; (feet) longitudinal, lateral, vertical distance from reference datum

[CAMERA_RAY_NODE_COLLISION]
; EFB auto-unfocus
node.1 = ModelDefinition:Interior#Name:SCREEN_EFB

;===================== CAMERADEFINITION =====================

[CAMERADEFINITION.0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,14 +557,11 @@
</UseTemplate>
<UseTemplate Name = "ASOBO_GT_Interaction_LeftSingle_Leave_Code">
<LEFT_SINGLE_CODE>
(L:FO_SLIDING_WINDOW) ! (&gt;L:FO_SLIDING_WINDOW)
<!--
(L:A32NX_PRESS_CABIN_DELTA_PRESSURE, psi) 1.2 &lt; if{
(L:FO_SLIDING_WINDOW) ! (&gt;L:FO_SLIDING_WINDOW)
} els{
0 (&gt;L:FO_SLIDING_WINDOW)
}
-->
</LEFT_SINGLE_CODE>
<TOOLTIPID>Open or Close FO Sliding Window</TOOLTIPID>
</UseTemplate>
Expand All @@ -580,14 +577,11 @@
</UseTemplate>
<UseTemplate Name = "ASOBO_GT_Interaction_LeftSingle_Leave_Code">
<LEFT_SINGLE_CODE>
(L:CPT_SLIDING_WINDOW) ! (&gt;L:CPT_SLIDING_WINDOW)
<!--
(L:A32NX_PRESS_CABIN_DELTA_PRESSURE, psi) 1.2 &lt; if{
(A:IS CAMERA RAY INTERSECT WITH NODE:1, Bool) 0 == (L:A32NX_PRESS_CABIN_DELTA_PRESSURE, psi) 1.2 &lt; and if{
(L:CPT_SLIDING_WINDOW) ! (&gt;L:CPT_SLIDING_WINDOW)
} els{
0 (&gt;L:CPT_SLIDING_WINDOW)
}
-->
</LEFT_SINGLE_CODE>
<TOOLTIPID>Open or Close CPT Sliding Window</TOOLTIPID>
</UseTemplate>
Expand Down Expand Up @@ -744,7 +738,7 @@
<TOOLTIPID>Open or Close Landing Gear Pins Compartment</TOOLTIPID>
</UseTemplate>
</Component>

<!-- PAX DOOR M4L -->

<Component ID="ANIM_DOOR_M4L" Node="ANIM_DOOR_M4L_CLICK">
Expand Down
5 changes: 5 additions & 0 deletions fbw-a380x/src/wasm/fadec_a380/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ wasm-ld \
--export malloc \
--export free \
--export __wasm_call_ctors \
--export mallinfo \
--export mchunkit_begin \
--export mchunkit_next \
--export get_pages_state \
--export mark_decommit_pages \
--export-table \
--gc-sections \
-lc++ -lc++abi \
Expand Down
5 changes: 5 additions & 0 deletions fbw-a380x/src/wasm/fbw_a380/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ wasm-ld \
--export malloc \
--export free \
--export __wasm_call_ctors \
--export mallinfo \
--export mchunkit_begin \
--export mchunkit_next \
--export get_pages_state \
--export mark_decommit_pages \
--export-table \
--gc-sections \
${WASMLD_ARGS} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const WeatherWidget: FC<WeatherWidgetProps> = ({ name, simbriefIcao, user
};

async function getMetar(icao: string, source: string): Promise<void> {
if (icao.length !== 4 || icao === '----') {
if (icao.length !== 4 || !(/^[a-z]{4}$/i.test(icao))) {
setErrorMetar(t('Dashboard.ImportantInformation.Weather.NoIcaoProvided'));
dispatch(setMetar(MetarParserTypeProp));
return Promise.resolve();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ macro(add_wasm_library)
endforeach()

# wasm-ld general flags
set(CMAKE_WASM_LINKER_FLAGS --no-entry --allow-undefined --export __wasm_call_ctors --export-dynamic --export malloc --export free --export-table --gc-sections -lc++ -lc++abi -L${MSFS_SDK}/WASM/wasi-sysroot/lib/wasm32-wasi -lc ${MSFS_SDK}/WASM/wasi-sysroot/lib/wasm32-wasi/libclang_rt.builtins-wasm32.a)
set(CMAKE_WASM_LINKER_FLAGS --no-entry --allow-undefined --export __wasm_call_ctors --export-dynamic --export malloc --export free --export mallinfo --export mchunkit_begin --export mchunkit_next --export get_pages_state --export mark_decommit_pages --export-table --gc-sections -lc++ -lc++abi -L${MSFS_SDK}/WASM/wasi-sysroot/lib/wasm32-wasi -lc ${MSFS_SDK}/WASM/wasi-sysroot/lib/wasm32-wasi/libclang_rt.builtins-wasm32.a)

# wasm build options for debug and release
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
Expand Down
5 changes: 5 additions & 0 deletions fbw-common/src/wasm/terronnd/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ wasm-ld \
--export malloc \
--export free \
--export __wasm_call_ctors \
--export mallinfo \
--export mchunkit_begin \
--export mchunkit_next \
--export get_pages_state \
--export mark_decommit_pages \
--export-table \
--gc-sections \
${WASMLD_ARGS} \
Expand Down

0 comments on commit cf0fe97

Please sign in to comment.