Disabled IPC, updated changelog

This commit is contained in:
RisaDev
2024-07-11 02:38:23 +03:00
parent 72d0b5f353
commit 51b870abdc
3 changed files with 18 additions and 1 deletions

View File

@@ -25,6 +25,8 @@ public partial class CustomizePlusIpc
[EzIPC("General.IsValid")]
private bool IsValid()
{
return false;
return !IPCFailed &&
!_hookingService.RenderHookFailed &&
!_hookingService.MovementHookFailed;

View File

@@ -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)