Skip to content

Commit

Permalink
Added on blackscreen timing type to ER
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankvdStam committed Jul 14, 2022
1 parent c8675d3 commit 0fab8c1
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
Binary file modified Components/SoulSplitter.dll
Binary file not shown.
8 changes: 8 additions & 0 deletions src/SoulSplitter/Splitters/EldenRingSplitter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,14 @@ private void ResolveSplitTiming(Split s)
s.SplitTriggered = true;
}
break;

case TimingType.OnBlackscreen:
if (_eldenRing.IsBlackscreenActive())
{
_timerModel.Split();
s.SplitTriggered = true;
}
break;
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/SoulSplitter/TimingType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ public enum TimingType

[Display(Name = "on loading")]
OnLoading,

[Display(Name = "on blackscreen")]
OnBlackscreen,
}
}
5 changes: 5 additions & 0 deletions src/SoulSplitter/UI/EldenRing/EldenRingControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@
<soulSplitter:TimingType>OnLoading</soulSplitter:TimingType>
</ComboBoxItem.Tag>
</ComboBoxItem>
<ComboBoxItem Content="During a blackscreen after">
<ComboBoxItem.Tag>
<soulSplitter:TimingType>OnBlackscreen</soulSplitter:TimingType>
</ComboBoxItem.Tag>
</ComboBoxItem>
</ComboBox>

<!-- split type -->
Expand Down
10 changes: 6 additions & 4 deletions src/soulmemory-rs/src/tas/xinput.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,12 @@ pub fn tas_start()
{
unsafe
{
info!("Starting TAS");

TAS_STATE = TasState::Running;
TAS_INPUT_INDEX = 0;
if TAS_STATE != TasState::Running
{
info!("Starting TAS");
TAS_STATE = TasState::Running;
TAS_INPUT_INDEX = 0;
}
}
}

Expand Down

0 comments on commit 0fab8c1

Please sign in to comment.