mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Small fixes
This commit is contained in:
22
Update.cs
22
Update.cs
@@ -7,13 +7,16 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace VRCX
|
namespace VRCX
|
||||||
{
|
{
|
||||||
class Update
|
internal class Update
|
||||||
{
|
{
|
||||||
public static void Check()
|
public static void Check()
|
||||||
{
|
{
|
||||||
|
if (Process.GetProcessesByName("VRCX_Setup").Length > 0)
|
||||||
|
Environment.Exit(0);
|
||||||
if (File.Exists(Path.Combine(Program.AppDataDirectory, "VRCX_Setup.exe")))
|
if (File.Exists(Path.Combine(Program.AppDataDirectory, "VRCX_Setup.exe")))
|
||||||
File.Delete(Path.Combine(Program.AppDataDirectory, "VRCX_Setup.exe"));
|
File.Delete(Path.Combine(Program.AppDataDirectory, "VRCX_Setup.exe"));
|
||||||
if (File.Exists(Path.Combine(Program.AppDataDirectory, "update.exe")))
|
if (File.Exists(Path.Combine(Program.AppDataDirectory, "update.exe")))
|
||||||
@@ -24,14 +27,17 @@ namespace VRCX
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (!File.Exists(Path.Combine(Program.AppDataDirectory, "update.exe")))
|
|
||||||
return;
|
|
||||||
File.Move(Path.Combine(Program.AppDataDirectory, "update.exe"), Path.Combine(Program.AppDataDirectory, "VRCX_Setup.exe"));
|
File.Move(Path.Combine(Program.AppDataDirectory, "update.exe"), Path.Combine(Program.AppDataDirectory, "VRCX_Setup.exe"));
|
||||||
System.Diagnostics.Process VRCXProcess = new System.Diagnostics.Process();
|
var VRCXProcess = new Process
|
||||||
VRCXProcess.StartInfo.FileName = Path.Combine(Program.AppDataDirectory, "VRCX_Setup.exe");
|
{
|
||||||
VRCXProcess.StartInfo.Arguments = "/S";
|
StartInfo = new ProcessStartInfo
|
||||||
|
{
|
||||||
|
FileName = Path.Combine(Program.AppDataDirectory, "VRCX_Setup.exe"),
|
||||||
|
Arguments = "/S"
|
||||||
|
}
|
||||||
|
};
|
||||||
VRCXProcess.Start();
|
VRCXProcess.Start();
|
||||||
System.Environment.Exit(0);
|
Environment.Exit(0);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
@@ -39,4 +45,4 @@ namespace VRCX
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -274,6 +274,7 @@ speechSynthesis.getVoices();
|
|||||||
ara: 'العربية',
|
ara: 'العربية',
|
||||||
ron: 'Română',
|
ron: 'Română',
|
||||||
vie: 'Tiếng Việt',
|
vie: 'Tiếng Việt',
|
||||||
|
ukr: 'украї́нська',
|
||||||
ase: 'American Sign Language',
|
ase: 'American Sign Language',
|
||||||
bfi: 'British Sign Language',
|
bfi: 'British Sign Language',
|
||||||
dse: 'Dutch Sign Language',
|
dse: 'Dutch Sign Language',
|
||||||
@@ -306,6 +307,7 @@ speechSynthesis.getVoices();
|
|||||||
ara: 'ae',
|
ara: 'ae',
|
||||||
ron: 'ro',
|
ron: 'ro',
|
||||||
vie: 'vn',
|
vie: 'vn',
|
||||||
|
ukr: 'ua',
|
||||||
ase: 'us',
|
ase: 'us',
|
||||||
bfi: 'gb',
|
bfi: 'gb',
|
||||||
dse: 'nl',
|
dse: 'nl',
|
||||||
@@ -8998,7 +9000,7 @@ speechSynthesis.getVoices();
|
|||||||
var text = `SpawnEmoji ${this.photonEmojis[eventData.Data]}`;
|
var text = `SpawnEmoji ${this.photonEmojis[eventData.Data]}`;
|
||||||
} else {
|
} else {
|
||||||
var eventVrc = '';
|
var eventVrc = '';
|
||||||
if (eventData.Data) {
|
if (eventData.Data.length > 0) {
|
||||||
eventVrc = ` ${JSON.stringify(eventData.Data).replace(
|
eventVrc = ` ${JSON.stringify(eventData.Data).replace(
|
||||||
/"([^(")"]+)":/g,
|
/"([^(")"]+)":/g,
|
||||||
'$1:'
|
'$1:'
|
||||||
|
|||||||
Reference in New Issue
Block a user