mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 23:03:51 +02:00
Linux: Change how AppImage moving is handled, add support for vrcx:\\
This commit is contained in:
@@ -64,11 +64,6 @@ namespace VRCX
|
||||
{
|
||||
}
|
||||
|
||||
public override string GetLaunchCommand()
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
public override void FocusWindow()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace VRCX
|
||||
{
|
||||
var compatToolMapping = new Dictionary<string, string>();
|
||||
const string sectionHeader = "\"CompatToolMapping\"";
|
||||
int sectionStart = vdfContent.IndexOf(sectionHeader);
|
||||
int sectionStart = vdfContent.IndexOf(sectionHeader, StringComparison.Ordinal);
|
||||
|
||||
if (sectionStart == -1)
|
||||
{
|
||||
@@ -53,7 +53,7 @@ namespace VRCX
|
||||
return compatToolMapping;
|
||||
}
|
||||
|
||||
int blockStart = vdfContent.IndexOf("{", sectionStart) + 1;
|
||||
int blockStart = vdfContent.IndexOf('{', sectionStart) + 1;
|
||||
int blockEnd = FindMatchingBracket(vdfContent, blockStart - 1);
|
||||
|
||||
if (blockStart == -1 || blockEnd == -1)
|
||||
@@ -317,6 +317,12 @@ namespace VRCX
|
||||
{
|
||||
string winePath = GetVRChatWinePath();
|
||||
string winePrefix = _vrcPrefixPath;
|
||||
if (string.IsNullOrEmpty(winePath) || string.IsNullOrEmpty(winePrefix))
|
||||
{
|
||||
logger.Info("VRC Wine path was not found");
|
||||
return null;
|
||||
}
|
||||
|
||||
string wineRegCommand = $"\"{winePath}\" reg {command}";
|
||||
ProcessStartInfo processStartInfo = GetWineProcessStartInfo(winePath, winePrefix, wineRegCommand);
|
||||
using var process = Process.Start(processStartInfo);
|
||||
|
||||
Reference in New Issue
Block a user