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:
@@ -147,13 +147,6 @@ namespace VRCX
|
||||
Program.VRCXVRInstance.ExecuteVrOverlayFunction(function, json);
|
||||
}
|
||||
|
||||
public override string GetLaunchCommand()
|
||||
{
|
||||
var command = StartupArgs.LaunchArguments.LaunchCommand;
|
||||
StartupArgs.LaunchArguments.LaunchCommand = string.Empty;
|
||||
return command;
|
||||
}
|
||||
|
||||
public override void FocusWindow()
|
||||
{
|
||||
MainForm.Instance.Invoke(new Action(() => { MainForm.Instance.Focus_Window(); }));
|
||||
|
||||
@@ -60,6 +60,13 @@ namespace VRCX
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public string GetLaunchCommand()
|
||||
{
|
||||
var command = StartupArgs.LaunchArguments.LaunchCommand;
|
||||
StartupArgs.LaunchArguments.LaunchCommand = string.Empty;
|
||||
return command;
|
||||
}
|
||||
|
||||
public void IPCAnnounceStart()
|
||||
{
|
||||
|
||||
@@ -21,7 +21,6 @@ namespace VRCX
|
||||
public abstract void ExecuteAppFunction(string function, string json);
|
||||
public abstract void ExecuteVrFeedFunction(string function, string json);
|
||||
public abstract void ExecuteVrOverlayFunction(string function, string json);
|
||||
public abstract string GetLaunchCommand();
|
||||
public abstract void FocusWindow();
|
||||
public abstract void ChangeTheme(int value);
|
||||
public abstract void DoFunny();
|
||||
|
||||
@@ -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