Invite to group

This commit is contained in:
Natsumi
2022-12-09 21:47:40 +13:00
parent f39eef07c4
commit 3a062bf4b4
4 changed files with 253 additions and 74 deletions
+11
View File
@@ -22,6 +22,7 @@ using System.Net.Sockets;
using System.Text;
using System.Collections.Generic;
using System.Threading;
using System.IO.Pipes;
namespace VRCX
{
@@ -320,6 +321,16 @@ namespace VRCX
return false;
}
public void IPCAnnounceStart()
{
var ipcClient = new NamedPipeClientStream(".", "vrcx-ipc", PipeDirection.InOut);
ipcClient.Connect();
if (!ipcClient.IsConnected)
return;
var buffer = Encoding.UTF8.GetBytes($"{{\"type\":\"VRCXLaunch\"}}" + (char)0x00);
ipcClient.BeginWrite(buffer, 0, buffer.Length, IPCClient.OnSend, ipcClient);
}
public void ExecuteAppFunction(string function, string json)
{
if (MainForm.Instance != null)