Skip to content

Commit

Permalink
Automatic merge of T1.5.1-378-g35b9498d6 and 16 pull requests
Browse files Browse the repository at this point in the history
- Pull request #570 at de7a14f: Experimental glTF 2.0 support with PBR lighting
- Pull request #732 at ff82bde: Improvements for air brakes
- Pull request #751 at 00981a2: Web interface to control cab controls with external hardware
- Pull request #799 at dc03850: Consolidated wind simulation
- Pull request #802 at 4d198e4: Added support for activity location events to the TrackViewer
- Pull request #803 at 7157e08: Various adjustments to steam adhesion
- Pull request #813 at ff454eb: Refactored garbage generators
- Pull request #815 at a5cc165: chore: Add GitHub automatic release notes configuration
- Pull request #818 at 745d101: Allow independent drive axles for locomotives
- Pull request #821 at e0fa5a8: Adds suppression of safety valves
- Pull request #822 at 82ef736: battery switch two buttons option in combination with a delay
- Pull request #823 at 5e1c03b: Select track sound volume percent retained in .eng and .wag files
- Pull request #824 at f16ebed: Update Readme.md
- Pull request #825 at 29ed427: 2D Cabview controls for side viewpoints https://blueprints.launchpad.net/or/+spec/2dcabview-controls-for-side-views
- Pull request #826 at 2ca8fd7: Bug fix for Crash when switching cab https://bugs.launchpad.net/or/+bug/2018230
- Pull request #827 at 265ab20: Fixed incomplete INI parameter file path for power supplies
  • Loading branch information
openrails-bot committed May 2, 2023
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Expand Up @@ -82,6 +82,12 @@ public override void Initialize()
var pathArray = new string[] { Path.Combine(Path.GetDirectoryName(Locomotive.WagFilePath), "Script") };
AbstractScript = Simulator.ScriptManager.Load(pathArray, ScriptName) as DieselPowerSupply;
}

if (ParametersFileName != null)
{
ParametersFileName = Path.Combine(Path.Combine(Path.GetDirectoryName(Locomotive.WagFilePath), "Script"), ParametersFileName);
}

if (Script == null)
{
AbstractScript = new DefaultDieselPowerSupply();
Expand Down
Expand Up @@ -82,6 +82,12 @@ public override void Initialize()
var pathArray = new string[] { Path.Combine(Path.GetDirectoryName(Locomotive.WagFilePath), "Script") };
AbstractScript = Simulator.ScriptManager.Load(pathArray, ScriptName) as DualModePowerSupply;
}

if (ParametersFileName != null)
{
ParametersFileName = Path.Combine(Path.Combine(Path.GetDirectoryName(Locomotive.WagFilePath), "Script"), ParametersFileName);
}

if (Script == null)
{
AbstractScript = new DefaultDualModePowerSupply();
Expand Down
Expand Up @@ -80,6 +80,12 @@ public override void Initialize()
var pathArray = new string[] { Path.Combine(Path.GetDirectoryName(ElectricLocomotive.WagFilePath), "Script") };
AbstractScript = Simulator.ScriptManager.Load(pathArray, ScriptName) as ElectricPowerSupply;
}

if (ParametersFileName != null)
{
ParametersFileName = Path.Combine(Path.Combine(Path.GetDirectoryName(Locomotive.WagFilePath), "Script"), ParametersFileName);
}

if (Script == null)
{
AbstractScript = new DefaultElectricPowerSupply();
Expand Down

0 comments on commit a9f516c

Please sign in to comment.