From 51b870abdc73c44511ff2b01bc43073b77fd43e7 Mon Sep 17 00:00:00 2001 From: RisaDev <151885272+RisaDev@users.noreply.github.com> Date: Thu, 11 Jul 2024 02:38:23 +0300 Subject: [PATCH] Disabled IPC, updated changelog --- CustomizePlus/Api/CustomizePlusIpc.General.cs | 2 ++ CustomizePlus/Api/CustomizePlusIpc.Profile.cs | 12 ++++++++++++ CustomizePlus/UI/Windows/CPlusChangeLog.cs | 5 ++++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CustomizePlus/Api/CustomizePlusIpc.General.cs b/CustomizePlus/Api/CustomizePlusIpc.General.cs index 7e027d0..41fb97e 100644 --- a/CustomizePlus/Api/CustomizePlusIpc.General.cs +++ b/CustomizePlus/Api/CustomizePlusIpc.General.cs @@ -25,6 +25,8 @@ public partial class CustomizePlusIpc [EzIPC("General.IsValid")] private bool IsValid() { + return false; + return !IPCFailed && !_hookingService.RenderHookFailed && !_hookingService.MovementHookFailed; diff --git a/CustomizePlus/Api/CustomizePlusIpc.Profile.cs b/CustomizePlus/Api/CustomizePlusIpc.Profile.cs index 765e252..b9174cb 100644 --- a/CustomizePlus/Api/CustomizePlusIpc.Profile.cs +++ b/CustomizePlus/Api/CustomizePlusIpc.Profile.cs @@ -127,6 +127,9 @@ public partial class CustomizePlusIpc [EzIPC("Profile.GetActiveProfileIdOnCharacter")] private (int, Guid?) GetActiveProfileIdOnCharacter(ICharacter character) { + //todo: temporary + return ((int)ErrorCode.UnknownError, null); + if (character == null) return ((int)ErrorCode.InvalidCharacter, null); @@ -145,6 +148,9 @@ public partial class CustomizePlusIpc [EzIPC("Profile.SetTemporaryProfileOnCharacter")] private (int, Guid?) SetTemporaryProfileOnCharacter(ICharacter character, string profileJson) { + //todo: temporary + return ((int)ErrorCode.UnknownError, null); + //todo: do not allow to set temporary profile on reserved actors (examine, etc) if (character == null) return ((int)ErrorCode.InvalidCharacter, null); @@ -192,6 +198,9 @@ public partial class CustomizePlusIpc [EzIPC("Profile.DeleteTemporaryProfileOnCharacter")] private int DeleteTemporaryProfileOnCharacter(ICharacter character) { + //todo: temporary + return (int)ErrorCode.UnknownError; + if (character == null) return (int)ErrorCode.InvalidCharacter; @@ -261,6 +270,9 @@ public partial class CustomizePlusIpc //warn: intended limitation - ignores default profiles because why you would use default profile on your own character private void OnArmatureChanged(ArmatureChanged.Type type, Armature armature, object? arg3) { + //todo: temporary + return; + string currentPlayerName = _gameObjectService.GetCurrentPlayerName(); if (armature.ActorIdentifier.ToNameWithoutOwnerName() != currentPlayerName) diff --git a/CustomizePlus/UI/Windows/CPlusChangeLog.cs b/CustomizePlus/UI/Windows/CPlusChangeLog.cs index c1d73be..dd49567 100644 --- a/CustomizePlus/UI/Windows/CPlusChangeLog.cs +++ b/CustomizePlus/UI/Windows/CPlusChangeLog.cs @@ -21,7 +21,7 @@ public class CPlusChangeLog Add2_0_4_0(Changelog); Add2_0_4_1(Changelog); Add2_0_4_4(Changelog); - //Add2_0_5_0(Changelog); + Add2_0_5_0(Changelog); } private (int, ChangeLogDisplayType) ConfigData() @@ -37,6 +37,9 @@ public class CPlusChangeLog private static void Add2_0_5_0(Changelog log) => log.NextVersion("Version 2.0.5.0") .RegisterHighlight("Customize+ has been updated to support Dawntrail.") + .RegisterImportant("Known issues:", 1) + .RegisterImportant("Profiles are not applied on Character Select Screen.", 2) + .RegisterImportant("IPC needs additional work and has been disabled for now. Expect issues if you decide to call it anyway.", 2) .RegisterEntry("Added \"Copy Support Info to Clipboard\" button to Settings tab.") .RegisterEntry("Renamed \"Default profile\" to \"Apply to all players and retainers\" to try and improve understanding of the function by the users. (2.0.4.5)") .RegisterEntry("Improved UI behavior when \"Apply to all players and retainers\" is enabled. (2.0.4.5)");