Skip to content

Commit

Permalink
Update with 2024 knowledge
Browse files Browse the repository at this point in the history
  • Loading branch information
neilenns committed Oct 12, 2024
1 parent 5155470 commit 4468a83
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions MSFS2020-module/install-mobiflight-event-module-2024.cmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
setLocal EnableDelayedExpansion
@echo off
IF EXIST "%LOCALAPPDATA%\Packages\Microsoft.FlightSimulator_UNKNOWN\LocalCache\UserCfg.opt" (
IF EXIST "%LOCALAPPDATA%\Packages\Microsoft.LimitlessBeta_8wekyb3d8bbwe\LocalCache\UserCfg.opt" (
echo store version
SET TOSEARCH="%LOCALAPPDATA%\Packages\Microsoft.FlightSimulator_UNKNOWN\LocalCache\UserCfg.opt"
SET TOSEARCH="%LOCALAPPDATA%\Packages\Microsoft.LimitlessBeta_8wekyb3d8bbwe\LocalCache\UserCfg.opt"
) ELSE (
echo normal version
SET TOSEARCH="%appdata%\Microsoft Flight Simulator 2024\UserCfg.opt"
Expand Down
10 changes: 10 additions & 0 deletions MobiFlight/FlightSim.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -94,6 +103,7 @@ static public bool IsAvailable()
FlightSimType = FlightSimType.UNKNOWN;
return true;
}

// check for prepar3d
proc = "prepar3d";
if (Process.GetProcessesByName(proc).Length > 0)
Expand Down
2 changes: 1 addition & 1 deletion SimConnectMSFS/WasmModuleUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public bool AutoDetectCommunityFolder()
// Find the 2024 community folder
CommunityFolder2024 = ExtractCommunityFolderPath(new string[] {
Path.Combine(Environment.GetEnvironmentVariable("AppData"), "Microsoft Flight Simulator 2024"),
Path.Combine(Environment.GetEnvironmentVariable("LocalAppData"), @"Packages\Microsoft.FlightSimulator_UNKNOWN\LocalCache\") }
Path.Combine(Environment.GetEnvironmentVariable("LocalAppData"), @"Packages\Microsoft.LimitlessBeta_8wekyb3d8bbwe\LocalCache\") }
);

return CommunityFolder != null || CommunityFolder2024 != null;
Expand Down

0 comments on commit 4468a83

Please sign in to comment.