From 10e6c0d914446aa493aa3c68a5dc2a0226fa68f2 Mon Sep 17 00:00:00 2001 From: walon Date: Fri, 30 May 2025 13:37:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20VirtualMachineCodeGenerato?= =?UTF-8?q?r=E7=94=9F=E6=88=90=E7=9A=84=E5=8A=A0=E5=AF=86=E8=A7=A3?= =?UTF-8?q?=E5=AF=86=E4=BB=A3=E7=A0=81=E7=BC=A9=E8=BF=9B=E4=B8=8D=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VirtualMachineCodeGenerator.cs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/com.code-philosophy.obfuz/Editor/EncryptionVM/VirtualMachineCodeGenerator.cs b/com.code-philosophy.obfuz/Editor/EncryptionVM/VirtualMachineCodeGenerator.cs index 07f444d..821e78d 100644 --- a/com.code-philosophy.obfuz/Editor/EncryptionVM/VirtualMachineCodeGenerator.cs +++ b/com.code-philosophy.obfuz/Editor/EncryptionVM/VirtualMachineCodeGenerator.cs @@ -74,12 +74,12 @@ namespace Obfuz.EncryptionVM {"); foreach (var opCode in _vm.opCodes) { - lines.Add($@" case {opCode.code}: - {{ - // {opCode.function.GetType().Name}"); + lines.Add($@" case {opCode.code}: + {{ + // {opCode.function.GetType().Name}"); AppendEncryptCode(lines, opCode.function); - lines.Add(@" return value; - }"); + lines.Add(@" return value; + }"); } lines.Add(@" @@ -98,12 +98,12 @@ namespace Obfuz.EncryptionVM {"); foreach (var opCode in _vm.opCodes) { - lines.Add($@" case {opCode.code}: - {{ - // {opCode.function.GetType().Name}"); + lines.Add($@" case {opCode.code}: + {{ + // {opCode.function.GetType().Name}"); AppendDecryptCode(lines, opCode.function); - lines.Add(@" return value; - }"); + lines.Add(@" return value; + }"); } lines.Add(@" @@ -193,12 +193,12 @@ namespace Obfuz.EncryptionVM private void AppendEncryptCode(List lines, IEncryptionInstruction instruction) { - instruction.GenerateEncryptCode(lines, " "); + instruction.GenerateEncryptCode(lines, " "); } private void AppendDecryptCode(List lines, IEncryptionInstruction instruction) { - instruction.GenerateDecryptCode(lines, " "); + instruction.GenerateDecryptCode(lines, " "); } } }