diff --git a/MobiFlight/FlightSim.cs b/MobiFlight/FlightSim.cs index 0127ce55..a8a64269 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) diff --git a/SimConnectMSFS/WasmModuleUpdater.cs b/SimConnectMSFS/WasmModuleUpdater.cs index 01915928..bcfa5552 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;