From f5def97f9e5c3d6613f55acba3757f00776dcb89 Mon Sep 17 00:00:00 2001 From: RisaDev <151885272+RisaDev@users.noreply.github.com> Date: Thu, 25 Jul 2024 00:55:35 +0300 Subject: [PATCH] Restore IPC --- CustomizePlus/Api/CustomizePlusIpc.General.cs | 2 -- CustomizePlus/Api/CustomizePlusIpc.Profile.cs | 12 ------------ 2 files changed, 14 deletions(-) diff --git a/CustomizePlus/Api/CustomizePlusIpc.General.cs b/CustomizePlus/Api/CustomizePlusIpc.General.cs index 41fb97e..7e027d0 100644 --- a/CustomizePlus/Api/CustomizePlusIpc.General.cs +++ b/CustomizePlus/Api/CustomizePlusIpc.General.cs @@ -25,8 +25,6 @@ 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 b9174cb..765e252 100644 --- a/CustomizePlus/Api/CustomizePlusIpc.Profile.cs +++ b/CustomizePlus/Api/CustomizePlusIpc.Profile.cs @@ -127,9 +127,6 @@ 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); @@ -148,9 +145,6 @@ 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); @@ -198,9 +192,6 @@ 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; @@ -270,9 +261,6 @@ 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)