Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect the MSFS2024 tech alpha process name correctly #1837

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 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 Down
5 changes: 3 additions & 2 deletions SimConnectMSFS/WasmModuleUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading