style: switch to error log instead of warning for resolution yostaren

This commit is contained in:
Constrat
2026-03-11 14:56:51 +01:00
parent 1d5c9c431a
commit 44cb8eeaba
2 changed files with 5 additions and 5 deletions

View File

@@ -786,7 +786,7 @@ public class AsstProxy
int height = details["details"]?["height"]?.ToObject<int>() ?? 0;
if (SettingsViewModel.GameSettings.ClientType == ClientType.EN && (width != 1920 || height != 1080))
{
Instances.TaskQueueViewModel.AddLog(LocalizationHelper.GetString("ResolutionInfoYoStarEN"), UiLogColor.Warning);
Instances.TaskQueueViewModel.AddLog(LocalizationHelper.GetString("ResolutionInfoYoStarEN"), UiLogColor.Error);
}
}
break;
@@ -2492,7 +2492,7 @@ public class AsstProxy
private bool AsstAttachWindowConnect(ref string error)
{
_lastConnectionError = string.Empty;
if (!Bootstrapper.IsUserAdministrator())
{
var result = Application.Current.Dispatcher.Invoke(() =>
@@ -2562,7 +2562,7 @@ public class AsstProxy
{
// 等待回调完成以获取详细错误信息
System.Threading.Thread.Sleep(100);
if (!string.IsNullOrEmpty(_lastConnectionError))
{
error = _lastConnectionError;
@@ -2571,7 +2571,7 @@ public class AsstProxy
{
error = LocalizationHelper.GetString("AttachWindowFailed");
}
Instances.TaskQueueViewModel.AddLog(error, UiLogColor.Error);
}

View File

@@ -583,7 +583,7 @@ Then delete the entries corresponding to the paths.
<system:String x:Key="LogItemDateFormatString">Date format string</system:String>
<system:String x:Key="PromptRestartForSettingsChange">Restart immediately to apply changes?</system:String>
<system:String x:Key="SwitchResolutionTip">Change the emulator resolution to 1920x1080!</system:String>
<system:String x:Key="ResolutionInfoYoStarEN">Make sure the emulator is set to 1920x1080</system:String>
<system:String x:Key="ResolutionInfoYoStarEN">For YoStarEN, make sure the emulator is set to 1920x1080</system:String>
<system:String x:Key="AllowUseStoneSave">Save 「Use Originium」</system:String>
<system:String x:Key="AllowUseStoneSaveWarning">This function is considered dangerous. Pressing the 「{key=Confirm}」 button indicates that you understand and are willing to accept the potential risks.</system:String>
<system:String x:Key="UseAlternateStage">Use alternative stage</system:String>