1
0
forked from liza/Questionable

Always skip credits if plugin is active, as they're after duties so the plugin is never 'running'

This commit is contained in:
Liza 2024-08-15 01:24:38 +02:00
parent fa25db7be0
commit e45c05a181
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -741,9 +741,6 @@ internal sealed class GameUiController : IDisposable
/// </summary> /// </summary>
private unsafe void CreditScrollPostSetup(AddonEvent type, AddonArgs args) private unsafe void CreditScrollPostSetup(AddonEvent type, AddonArgs args)
{ {
if (!ShouldHandleUiInteractions)
return;
_logger.LogInformation("Closing Credits sequence"); _logger.LogInformation("Closing Credits sequence");
AtkUnitBase* addon = (AtkUnitBase*)args.Addon; AtkUnitBase* addon = (AtkUnitBase*)args.Addon;
addon->FireCallbackInt(-2); addon->FireCallbackInt(-2);
@ -754,9 +751,6 @@ internal sealed class GameUiController : IDisposable
/// </summary> /// </summary>
private unsafe void CreditPostSetup(AddonEvent type, AddonArgs args) private unsafe void CreditPostSetup(AddonEvent type, AddonArgs args)
{ {
if (!ShouldHandleUiInteractions)
return;
_logger.LogInformation("Closing Credits sequence"); _logger.LogInformation("Closing Credits sequence");
AtkUnitBase* addon = (AtkUnitBase*)args.Addon; AtkUnitBase* addon = (AtkUnitBase*)args.Addon;
addon->FireCallbackInt(-2); addon->FireCallbackInt(-2);
@ -764,9 +758,6 @@ internal sealed class GameUiController : IDisposable
private unsafe void CreditPlayerPostSetup(AddonEvent type, AddonArgs args) private unsafe void CreditPlayerPostSetup(AddonEvent type, AddonArgs args)
{ {
if (!ShouldHandleUiInteractions)
return;
_logger.LogInformation("Closing CreditPlayer"); _logger.LogInformation("Closing CreditPlayer");
AtkUnitBase* addon = (AtkUnitBase*)args.Addon; AtkUnitBase* addon = (AtkUnitBase*)args.Addon;
addon->Close(true); addon->Close(true);