@@ -196,25 +196,22 @@ public void SetType(MessageType messageType)
196196
197197 public static void SendChat ( byte [ ] array )
198198 {
199- lock ( Core . Memory . Executor . AssemblyLock )
200- {
201- using var allocatedMemory2 = Core . Memory . CreateAllocatedMemory ( 400 ) ;
202- using var allocatedMemory = Core . Memory . CreateAllocatedMemory ( array . Length + 30 ) ;
203- allocatedMemory . AllocateOfChunk ( "start" , array . Length ) ;
204- allocatedMemory . WriteBytes ( "start" , array ) ;
205- allocatedMemory2 . AllocateOfChunk < IntPtr > ( "dword0" ) ;
206- allocatedMemory2 . AllocateOfChunk < long > ( "dword4" ) ;
207- allocatedMemory2 . AllocateOfChunk < long > ( "dword8" ) ;
208- allocatedMemory2 . AllocateOfChunk < long > ( "dwordC" ) ;
209- allocatedMemory2 . Write ( "dword0" , allocatedMemory . Address ) ;
210- allocatedMemory2 . Write ( "dword4" , 64 ) ;
211- allocatedMemory2 . Write ( "dword8" , array . Length + 1 ) ;
212- allocatedMemory2 . Write ( "dwordC" , 0 ) ;
213- Core . Memory . CallInjectedWraper < int > ( Offsets . ExecuteCommandInner ,
214- UiManagerProxy . RaptureShellModule ,
215- allocatedMemory2 . Address ,
216- UiManagerProxy . UIModule ) ;
217- }
199+ using var allocatedMemory2 = Core . Memory . CreateAllocatedMemory ( 400 ) ;
200+ using var allocatedMemory = Core . Memory . CreateAllocatedMemory ( array . Length + 30 ) ;
201+ allocatedMemory . AllocateOfChunk ( "start" , array . Length ) ;
202+ allocatedMemory . WriteBytes ( "start" , array ) ;
203+ allocatedMemory2 . AllocateOfChunk < IntPtr > ( "dword0" ) ;
204+ allocatedMemory2 . AllocateOfChunk < long > ( "dword4" ) ;
205+ allocatedMemory2 . AllocateOfChunk < long > ( "dword8" ) ;
206+ allocatedMemory2 . AllocateOfChunk < long > ( "dwordC" ) ;
207+ allocatedMemory2 . Write ( "dword0" , allocatedMemory . Address ) ;
208+ allocatedMemory2 . Write ( "dword4" , 64 ) ;
209+ allocatedMemory2 . Write ( "dword8" , array . Length + 1 ) ;
210+ allocatedMemory2 . Write ( "dwordC" , 0 ) ;
211+ Core . Memory . CallInjectedWraper < int > ( Offsets . ExecuteCommandInner ,
212+ UiManagerProxy . RaptureShellModule ,
213+ allocatedMemory2 . Address ,
214+ UiManagerProxy . UIModule ) ;
218215 }
219216 }
220217}
0 commit comments