Skip to content

Commit 0ddbb15

Browse files
committed
Merge remote-tracking branch 'origin/merge/autosplitterextension'
2 parents 2fb91f7 + e6321a9 commit 0ddbb15

23 files changed

Lines changed: 3292 additions & 163 deletions

HitCounterManager.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.28803.352
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.2.32630.192
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HitCounterManagerWin", "HitCounterManagerWin.csproj", "{8007D948-906F-4F80-8F32-C41EC7CCEFD5}"
77
EndProject

HitCounterManagerWin.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@
148148
<Content Include="Sources\HitCounter.template" />
149149
<Content Include="Sources\HitCounterManagerInit.xml" />
150150
<None Include="Images\20p_logo_black.png" />
151+
<None Include="Images\20p_logo_black_THH.png" />
152+
<None Include="Images\icon-autosplitter-32.png" />
151153
<None Include="Images\icons8-about-20.png" />
152154
<None Include="Images\icons8-add-20.png" />
153155
<None Include="Images\icons8-add-list-20.png" />

HitCounterManagerWinInstaller.vdproj

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@
9191
"OwnerKey" = "8:_UNDEFINED"
9292
"MsmSig" = "8:_UNDEFINED"
9393
}
94+
"Entry"
95+
{
96+
"MsmKey" = "8:_UNDEFINED"
97+
"OwnerKey" = "8:_E73481EAB59C480EAACFF94F3334D77E"
98+
"MsmSig" = "8:_UNDEFINED"
99+
}
94100
}
95101
"Configurations"
96102
{
@@ -493,21 +499,21 @@
493499
{
494500
"Name" = "8:Microsoft Visual Studio"
495501
"ProductName" = "8:HitCounterManager"
496-
"ProductCode" = "8:{6488984F-0D46-4490-A19A-062539AC5B81}"
497-
"PackageCode" = "8:{50C078B6-2223-405F-B9F7-E0A8A9368D11}"
502+
"ProductCode" = "8:{96343A68-357C-4FD1-A94A-34945F980237}"
503+
"PackageCode" = "8:{8FF4F890-31EF-421F-A3CC-E07F4320959B}"
498504
"UpgradeCode" = "8:{E37C963F-DDC5-4776-80DD-7B583A48415F}"
499505
"AspNetVersion" = "8:4.0.30319.0"
500506
"RestartWWWService" = "11:FALSE"
501507
"RemovePreviousVersions" = "11:FALSE"
502508
"DetectNewerInstalledVersion" = "11:FALSE"
503509
"InstallAllUsers" = "11:FALSE"
504-
"ProductVersion" = "8:1.20.0"
510+
"ProductVersion" = "8:1.21.0"
505511
"Manufacturer" = "8:GunriderProductions"
506512
"ARPHELPTELEPHONE" = "8:"
507513
"ARPHELPLINK" = "8:"
508514
"Title" = "8:HitCounterManager"
509515
"Subject" = "8:Manages a hit counter"
510-
"ARPCONTACT" = "8:Copyright © Peter Kirmeier 2021"
516+
"ARPCONTACT" = "8:Copyright © Peter Kirmeier 2022"
511517
"Keywords" = "8:"
512518
"ARPCOMMENTS" = "8:Manages a hit counter"
513519
"ARPURLINFOABOUT" = "8:"

Images/20p_logo_black_THH.png

22.8 KB
Loading

Images/icon-autosplitter-32.png

750 Bytes
Loading

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,24 @@ Just add the local HTML file to you broadcasting software and the setup is done.
3535
### Pre-defined profiles
3636

3737
* Bloodborne + The old hunters
38+
* Celeste
39+
* Crash Bandicoot 1
40+
* Crash Bandicoot 2
41+
* Crash Bandicoot 3
42+
* Crash Bandicoot 4
43+
* Cuphead
3844
* Dark Souls 1 Prepare To Die Edition
3945
* Dark Souls 2
4046
* Dark Souls 3 + Ashes of Ariandel + The Ringed City
4147
* Demon's Souls
4248
* Elden Ring
49+
* Hades
50+
* Hollow Knight
51+
* Mortal Shell
4352
* Salt and Sanctuary
4453
* Sekiro
4554
* The Surge + A walk in the park
4655
* The Surge 2
47-
* Mortal Shell
4856

4957
## Get the software
5058
All available releases can be found at the [Releases page](../../releases) on GitHub.

Sources/About.Designer.cs

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/About.resx

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,18 +129,25 @@ DISCLAIMER: Above notice comes without warranty, so please refer to the explicit
129129
Application
130130

131131
Title: HitCounterManager
132-
Author: Peter Kirmeier &lt;topeterk@freenet.de&gt;
132+
Author: Peter Kirmeier (General Gunrider)
133133
Source: https://github.com/topeterk/HitCounterManager
134134
Licence: MIT
135135

136+
==============================================================================
137+
AutoSplitter Extension Support
138+
139+
Title: -
140+
Author: Ezequiel Medina (Neimex23)
141+
Contact: &lt;ezequielmedina23@gmail.com&gt;
142+
Licence: MIT
143+
136144
==============================================================================
137145
Application Icon
138146

139147
Title: Pioneer Camp
140148
Author: Iconka http://www.iconka.com
141149
Source: https://iconka.com/en/269/
142150
License: Linkware
143-
Licence information:
144151

145152
==============================================================================
146153
Application Button Images
@@ -150,6 +157,13 @@ Author: icons8.com
150157
Source: https://icons8.com/
151158
Licence: CC BY-ND 3.0 https://creativecommons.org/licenses/by-nd/3.0/
152159

160+
==============================================================================
161+
AutoSplitter Button Image
162+
163+
Title: icon-autosplitter-32
164+
Author: Neimex23
165+
Licence: MIT
166+
153167
==============================================================================
154168
Team Hitless Button Image
155169

@@ -158,6 +172,14 @@ Author: AronTheBaron
158172
Source: Provided by the Discord user for this project
159173
Licence: MIT
160174

175+
==============================================================================
176+
No Hit Hispano Button Image
177+
178+
Title: -
179+
Author: ParaBellum
180+
Source: Provided by the Discord user for this project
181+
Licence: MIT
182+
161183
==============================================================================
162184
Check Mark Image
163185

Sources/AppConfig.cs

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,18 @@ public class SettingsRoot
103103
public int ShortcutTimerStartKeyCode;
104104
public bool ShortcutTimerStopEnable;
105105
public int ShortcutTimerStopKeyCode;
106+
#region AutoSplitter
107+
public bool ShortcutPracticeEnable;
108+
public int ShortcutPracticeKeyCode;
109+
public bool ShortcutHitBossPrevEnable;
110+
public int ShortcutHitBossPrevKeyCode;
111+
public bool ShortcutHitWayPrevEnable;
112+
public int ShortcutHitWayPrevKeyCode;
113+
public bool ShortcutBossHitUndoPrevEnable;
114+
public int ShortcutBossHitUndoPrevKeyCode;
115+
public bool ShortcutWayHitUndoPrevEnable;
116+
public int ShortcutWayHitUndoPrevKeyCode;
117+
#endregion
106118
public string Inputfile;
107119
public string OutputFile;
108120
public bool ShowAttemptsCounter;
@@ -171,7 +183,6 @@ private bool LoadHotKeySettings(Shortcuts.SC_Type Type, int KeyCode, bool Enable
171183
return true;
172184
}
173185

174-
/// <summary>
175186
/// Loads user data from XML
176187
/// </summary>
177188
private void LoadSettings()
@@ -334,6 +345,22 @@ private void LoadSettings()
334345
_settings.StyleSubscriptPB = _settings.StyleSuperscriptPB;
335346
//_settings.ColWidths added but no default is needed
336347
}
348+
if (_settings.Version == 9) // Coming from version 1.21
349+
{
350+
_settings.Version = 10;
351+
#region AutoSplitter
352+
_settings.ShortcutPracticeEnable = false;
353+
_settings.ShortcutPracticeKeyCode = 0;
354+
_settings.ShortcutHitBossPrevEnable = false;
355+
_settings.ShortcutHitBossPrevKeyCode = 0;
356+
_settings.ShortcutHitWayPrevEnable = false;
357+
_settings.ShortcutHitWayPrevKeyCode = 0;
358+
_settings.ShortcutBossHitUndoPrevEnable = false;
359+
_settings.ShortcutBossHitUndoPrevKeyCode = 0;
360+
_settings.ShortcutWayHitUndoPrevEnable = false;
361+
_settings.ShortcutWayHitUndoPrevKeyCode = 0;
362+
#endregion
363+
}
337364

338365
// Check for updates..
339366
if (_settings.CheckUpdatesOnStartup)
@@ -400,6 +427,23 @@ private void LoadSettings()
400427
MessageBox.Show("Not all enabled hot keys could be registered successfully!", "Error setting up hot keys!");
401428
}
402429

430+
#region AutoSplitter
431+
/// <summary>
432+
/// Load AutoSplitter HotKeys from XML
433+
/// </summary>
434+
public void LoadAutoSplitterHotKeys()
435+
{
436+
bool isKeyInvalid = false;
437+
if (!LoadHotKeySettings(Shortcuts.SC_Type.SC_Type_Practice, _settings.ShortcutPracticeKeyCode, _settings.ShortcutPracticeEnable)) isKeyInvalid = true;
438+
if (!LoadHotKeySettings(Shortcuts.SC_Type.SC_Type_HitBossPrev, _settings.ShortcutHitBossPrevKeyCode, _settings.ShortcutHitBossPrevEnable)) isKeyInvalid = true;
439+
if (!LoadHotKeySettings(Shortcuts.SC_Type.SC_Type_HitWayPrev, _settings.ShortcutHitWayPrevKeyCode, _settings.ShortcutHitWayPrevEnable)) isKeyInvalid = true;
440+
if (!LoadHotKeySettings(Shortcuts.SC_Type.SC_Type_BossHitUndoPrev, _settings.ShortcutBossHitUndoPrevKeyCode, _settings.ShortcutBossHitUndoPrevEnable)) isKeyInvalid = true;
441+
if (!LoadHotKeySettings(Shortcuts.SC_Type.SC_Type_WayHitUndoPrev, _settings.ShortcutWayHitUndoPrevKeyCode, _settings.ShortcutWayHitUndoPrevEnable)) isKeyInvalid = true;
442+
if (isKeyInvalid)
443+
MessageBox.Show("Error setting up hot keys of AutoSplitterCore!");
444+
}
445+
#endregion
446+
403447
/// <summary>
404448
/// Stores user data in XML
405449
/// </summary>
@@ -460,6 +504,39 @@ private void SaveSettings()
460504
key = sc.Key_Get(Shortcuts.SC_Type.SC_Type_TimerStop);
461505
_settings.ShortcutTimerStopEnable = key.used;
462506
_settings.ShortcutTimerStopKeyCode = (int)key.key.KeyData;
507+
#region AutoSplitter
508+
if (AutoSplitterLoaded)
509+
{
510+
key = sc.Key_Get(Shortcuts.SC_Type.SC_Type_Practice);
511+
_settings.ShortcutPracticeEnable = key.used;
512+
_settings.ShortcutPracticeKeyCode = (int)key.key.KeyData;
513+
key = sc.Key_Get(Shortcuts.SC_Type.SC_Type_HitBossPrev);
514+
_settings.ShortcutHitBossPrevEnable = key.used;
515+
_settings.ShortcutHitBossPrevKeyCode = (int)key.key.KeyData;
516+
key = sc.Key_Get(Shortcuts.SC_Type.SC_Type_HitWayPrev);
517+
_settings.ShortcutHitWayPrevEnable = key.used;
518+
_settings.ShortcutHitWayPrevKeyCode = (int)key.key.KeyData;
519+
key = sc.Key_Get(Shortcuts.SC_Type.SC_Type_BossHitUndoPrev);
520+
_settings.ShortcutBossHitUndoPrevEnable = key.used;
521+
_settings.ShortcutBossHitUndoPrevKeyCode = (int)key.key.KeyData;
522+
key = sc.Key_Get(Shortcuts.SC_Type.SC_Type_WayHitUndoPrev);
523+
_settings.ShortcutWayHitUndoPrevEnable = key.used;
524+
_settings.ShortcutWayHitUndoPrevKeyCode = (int)key.key.KeyData;
525+
}
526+
else
527+
{
528+
_settings.ShortcutPracticeEnable = false;
529+
_settings.ShortcutPracticeKeyCode = 0;
530+
_settings.ShortcutHitBossPrevEnable = false;
531+
_settings.ShortcutHitBossPrevKeyCode = 0;
532+
_settings.ShortcutHitWayPrevEnable = false;
533+
_settings.ShortcutHitWayPrevKeyCode = 0;
534+
_settings.ShortcutBossHitUndoPrevEnable = false;
535+
_settings.ShortcutBossHitUndoPrevKeyCode = 0;
536+
_settings.ShortcutWayHitUndoPrevEnable = false;
537+
_settings.ShortcutWayHitUndoPrevKeyCode = 0;
538+
}
539+
#endregion
463540

464541
// Store customizing..
465542
int TotalSplits, TotalActiveSplit, SuccessionHits, SuccessionHitsWay, SuccessionHitsPB;

Sources/AssemblyInfo.cs

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//MIT License
22

3-
//Copyright (c) 2016-2021 Peter Kirmeier
3+
//Copyright (c) 2016-2022 Peter Kirmeier
44

55
//Permission is hereby granted, free of charge, to any person obtaining a copy
66
//of this software and associated documentation files (the "Software"), to deal
@@ -21,12 +21,8 @@
2121
//SOFTWARE.
2222

2323
using System.Reflection;
24-
using System.Runtime.CompilerServices;
2524
using System.Runtime.InteropServices;
2625

27-
// Allgemeine Informationen über eine Assembly werden über die folgenden
28-
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
29-
// die einer Assembly zugeordnet sind.
3026
[assembly: AssemblyTitle("HitCounterManager")]
3127
[assembly: AssemblyDescription("Manages a hit counter")]
3228
[assembly: AssemblyConfiguration("")]
@@ -36,20 +32,8 @@
3632
[assembly: AssemblyTrademark("")]
3733
[assembly: AssemblyCulture("")]
3834

39-
// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
40-
// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
41-
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
42-
[assembly: ComVisible(false)]
35+
[assembly: AssemblyVersion("1.21.0.0")]
36+
[assembly: AssemblyFileVersion("1.21.0.0")]
4337

44-
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
38+
[assembly: ComVisible(false)]
4539
[assembly: Guid("348b28b3-0290-4274-93aa-aa52be387120")]
46-
47-
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
48-
//
49-
// Hauptversion
50-
// Nebenversion
51-
// Buildnummer
52-
// Revision
53-
//
54-
[assembly: AssemblyVersion("1.20.0.0")]
55-
[assembly: AssemblyFileVersion("1.20.0.0")]

0 commit comments

Comments
 (0)