mirror of
https://github.com/babalae/better-genshin-impact
synced 2025-01-07 03:17:16 +08:00
fix merge
This commit is contained in:
parent
08fbd6e2a2
commit
fe2fd5d67c
@ -50,12 +50,6 @@ public class AutoDomainTask
|
||||
|
||||
_predictor = new(Global.Absolute("Assets\\Model\\Domain\\bgi_tree.onnx"), BgiSessionOption.Instance.Options);
|
||||
|
||||
var captureArea = TaskContext.Instance().SystemInfo.CaptureAreaRect;
|
||||
var assetScale = TaskContext.Instance().SystemInfo.AssetScale;
|
||||
_clickOffset = new ClickOffset(captureArea.X, captureArea.Y, assetScale);
|
||||
_combatCommands = CombatScriptParser.Parse(_taskParam.CombatStrategyContent);
|
||||
_config = TaskContext.Instance().Config.AutoDomainConfig;
|
||||
|
||||
_combatScriptBag = CombatScriptParser.ReadAndParse(_taskParam.CombatStrategyPath);
|
||||
}
|
||||
|
||||
|
@ -45,6 +45,9 @@ public partial class HomePageViewModel : ObservableObject, INavigationAware, IVi
|
||||
private readonly TaskTriggerDispatcher _taskDispatcher;
|
||||
private readonly MouseKeyMonitor _mouseKeyMonitor = new();
|
||||
|
||||
// 记录上次使用原神的句柄
|
||||
private IntPtr _hWnd;
|
||||
|
||||
[ObservableProperty] private string[] _inferenceDevices = ["CPU", "GPU"];
|
||||
|
||||
public HomePageViewModel(IConfigService configService, TaskTriggerDispatcher taskTriggerDispatcher)
|
||||
|
Loading…
Reference in New Issue
Block a user