mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Various fixes and changes
This commit is contained in:
12
AppApi.cs
12
AppApi.cs
@@ -696,9 +696,9 @@ namespace VRCX
|
||||
if (File.Exists(path) && path.EndsWith(".png") && fileName.StartsWith(fileNamePrefix))
|
||||
{
|
||||
string metadataString = null;
|
||||
bool readPNGFailed = false;
|
||||
var readPNGFailed = false;
|
||||
|
||||
try
|
||||
try
|
||||
{
|
||||
metadataString = ScreenshotHelper.ReadPNGDescription(path);
|
||||
}
|
||||
@@ -767,6 +767,14 @@ namespace VRCX
|
||||
MainForm.Instance.BeginInvoke(new MethodInvoker(() => { WinformThemer.Flash(MainForm.Instance); }));
|
||||
}
|
||||
|
||||
public void SetUserAgent()
|
||||
{
|
||||
using (var client = MainForm.Instance.Browser.GetDevToolsClient())
|
||||
{
|
||||
_ = client.Network.SetUserAgentOverrideAsync(Program.Version);
|
||||
}
|
||||
}
|
||||
|
||||
private struct XSOMessage
|
||||
{
|
||||
public int messageType { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user