Skip to content

Commit

Permalink
#521 bugfix for FC3 controls not working (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdahlblom authored May 4, 2024
1 parent bbd2168 commit fd955ad
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/DCS-BIOS/ControlLocator/DCSBIOSControlLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -364,19 +364,12 @@ private static void LoadControls()
ReadDataFromJsonFile(DCSAircraft.GetNS430().JSONFilename);
}

if (DCSAircraft.IsFlamingCliff(DCSAircraft))
{
LoadCommonData(_jsonDirectory);
LoadMetaDataEnd(_jsonDirectory);
}
else
{
LoadCommonData(_jsonDirectory);
LoadMetaDataEnd(_jsonDirectory);
LoadCommonData(_jsonDirectory);
LoadMetaDataEnd(_jsonDirectory);

// Load the controls for the actual aircraft/helicopter
ReadDataFromJsonFile(DCSAircraft.JSONFilename);

// Load the controls for the actual aircraft/helicopter
ReadDataFromJsonFile(DCSAircraft.JSONFilename);
}

// Remove duplicates which may come from loading NS430 or other additional profiles
_dcsbiosControls = _dcsbiosControls.Distinct(new DCSBIOSControlComparer()).ToList();
Expand Down

0 comments on commit fd955ad

Please sign in to comment.