mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
Merge pull request #1179 from qhy040404/fix/pwsh
This commit is contained in:
@@ -40,10 +40,7 @@ internal static class RegistryInterop
|
||||
|
||||
string base64 = Convert.ToBase64String(target);
|
||||
string path = $"HKCU:{GenshinPath}";
|
||||
string command = $"""
|
||||
$value = [Convert]::FromBase64String('{base64}');
|
||||
Set-ItemProperty -Path '{path}' -Name '{SdkChineseKey}' -Value $value -Force;
|
||||
""";
|
||||
string command = $"-Command \"$value = [Convert]::FromBase64String('{base64}'); Set-ItemProperty -Path '{path}' -Name '{SdkChineseKey}' -Value $value -Force;\"";
|
||||
|
||||
ProcessStartInfo startInfo = new()
|
||||
{
|
||||
|
||||
@@ -259,6 +259,7 @@ internal sealed partial class LaunchGameViewModel : Abstraction.ViewModel
|
||||
}
|
||||
else
|
||||
{
|
||||
await taskContext.SwitchToMainThreadAsync();
|
||||
GamePathEntries = launchOptions.GetGamePathEntries(out GamePathEntry? entry);
|
||||
UpdateSelectedGamePathEntry(entry, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user