Skip to content

Commit

Permalink
Install WASM module to tech alpha community folder
Browse files Browse the repository at this point in the history
  • Loading branch information
DocMoebiuz committed Oct 12, 2024
1 parent 2241b8d commit 1dbff51
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 1dbff51

Please sign in to comment.