mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 06:46:04 +02:00
Invite to group
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user