From 2241b8d3782b3a843b14da334b07e2965f618def Mon Sep 17 00:00:00 2001 From: Sebastian M Date: Sat, 12 Oct 2024 10:42:56 +0200 Subject: [PATCH 1/2] Detect the MSFS2024 tech alpha process name correctly --- MobiFlight/FlightSim.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MobiFlight/FlightSim.cs b/MobiFlight/FlightSim.cs index 0127ce558..a8a64269b 100644 --- a/MobiFlight/FlightSim.cs +++ b/MobiFlight/FlightSim.cs @@ -85,6 +85,15 @@ static public bool IsAvailable() return true; } + proc = "flightsimulator2024beta"; + // check for msfs2024 tech alpha + if (Process.GetProcessesByName(proc).Length > 0) + { + FlightSimConnectionMethod = FlightSimConnectionMethod.FSUIPC; + FlightSimType = FlightSimType.MSFS2020; + return true; + } + proc = "wideclient"; // check for FSUIPC wide client if (Process.GetProcessesByName(proc).Length > 0) From 1dbff51748a781286c333d9212dcbd4cf53926f0 Mon Sep 17 00:00:00 2001 From: Sebastian M Date: Sat, 12 Oct 2024 10:59:58 +0200 Subject: [PATCH 2/2] Install WASM module to tech alpha community folder --- SimConnectMSFS/WasmModuleUpdater.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SimConnectMSFS/WasmModuleUpdater.cs b/SimConnectMSFS/WasmModuleUpdater.cs index 019159282..bcfa55523 100644 --- a/SimConnectMSFS/WasmModuleUpdater.cs +++ b/SimConnectMSFS/WasmModuleUpdater.cs @@ -73,11 +73,12 @@ private String ExtractCommunityFolderFromUserCfg(String UserCfg) } public bool AutoDetectCommunityFolder() { - string searchpath = Environment.GetEnvironmentVariable("AppData") + @"\Microsoft Flight Simulator\UserCfg.opt"; + // Looking for MSFS2024 tech alpha first + string searchpath = Environment.GetEnvironmentVariable("LocalAppData") + @"\Packages\Microsoft.LimitlessBeta_8wekyb3d8bbwe\LocalCache\UserCfg.opt"; if (!File.Exists(searchpath)) { - searchpath = Environment.GetEnvironmentVariable("LocalAppData") + @"\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\UserCfg.opt"; + searchpath = Environment.GetEnvironmentVariable("AppData") + @"\Microsoft Flight Simulator\UserCfg.opt"; if (!File.Exists(searchpath)) { return false;