XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

HaloPixelToolBox

【WinUI3】基于USB HID通讯的花再音响工具箱

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/HaloPixelToolBox

更新支持网易云3.1.27版本

5740372
XFE工作室室长 <mail@xfegzs.com>
提交于

代码差异

4 个文件 +17 -5
Modified HaloPixelToolBox/HaloPixelToolBox.Core/Utilities/CloudLyricsReader.cs +14 -2
@@ -20,7 +20,16 @@ public class CloudMusicLyricsReader
20 20 Editor.CurrentProcess = process;
21 21 VersionInfo = FileVersionInfo.GetVersionInfo(process.MainModule?.FileName ?? string.Empty);
22 22 Version = new Version(VersionInfo?.FileVersion ?? "0.0.0.0");
23 Console.WriteLine($"[DEBUG]版本信息:{VersionInfo?.FileVersion}|{Version.ToString(3)}");
23 try
24 {
25 Console.WriteLine($"[DEBUG]版本信息:{VersionInfo?.FileVersion}");
26 Console.WriteLine($"[DEBUG]版本信息缩略:{Version.ToString(3)}");
27 }
28 catch (Exception ex)
29 {
30 Console.WriteLine($"[ERROR]版本输出异常:{ex.Message}");
31 Console.WriteLine($"[TRACE]{ex.StackTrace}");
32 }
24 33 return ReresolveAddress();
25 34 }
26 35 else
@@ -47,6 +56,9 @@ public class CloudMusicLyricsReader
47 56 nint address = 0;
48 57 switch (Version.ToString(3))
49 58 {
59 case "3.1.27":
60 address = Editor.ResolvePointerAddress("cloudmusic.dll", 0x01DDE290, 0xE0, 0x8, 0xE8, 0x38, 0x118, 0x8, 0x0);
61 break;
50 62 case "3.1.26":
51 63 address = Editor.ResolvePointerAddress("cloudmusic.dll", 0x01DD5130, 0xE8, 0x38, 0x120, 0x18, 0x0);
52 64 break;
@@ -70,7 +82,7 @@ public class CloudMusicLyricsReader
70 82 }
71 83 catch (Exception ex)
72 84 {
73 Console.WriteLine($"[ERROR]{ex.Message}");
85 Console.WriteLine($"[ERROR]解析地址异常:{ex.Message}");
74 86 Console.WriteLine($"[TRACE]{ex.StackTrace}");
75 87 return false;
76 88 }
Modified HaloPixelToolBox/HaloPixelToolBox/HaloPixelToolBox.csproj +1 -1
@@ -9,7 +9,7 @@
9 9 <RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
10 10 <PublishProfile>win-$(Platform).pubxml</PublishProfile>
11 11 <UseWinUI>true</UseWinUI>
12 <Version>1.2.1</Version>
12 <Version>1.2.2</Version>
13 13 <EnableMsixTooling>true</EnableMsixTooling>
14 14 <WindowsPackageType>None</WindowsPackageType>
15 15 <WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
Modified HaloPixelToolBox/HaloPixelToolBox/Utilities/Helpers/UpgradeHelper.cs +1 -1
@@ -7,7 +7,7 @@ namespace HaloPixelToolBox.Utilities.Helpers;
7 7
8 8 public static class UpgradeHelper
9 9 {
10 public static string RequestAddress => "http://***REMOVED***/upgrade";
10 public static string RequestAddress => "http://upgrade.api.xfegzs.com/upgrade";
11 11 public static Upgrader Upgrader { get; set; } = new(RequestAddress);
12 12 public static Version Version => Assembly.GetExecutingAssembly().GetName().Version ?? new Version(1, 0, 0);
13 13
Modified HaloPixelToolBox/HaloPixelToolBox/ViewModels/CloudMusicLyricsToolPageViewModel.cs +1 -1
@@ -71,7 +71,7 @@ public partial class CloudMusicLyricsToolPageViewModel : ServiceBaseViewModelBas
71 71 AutoNavigationParameterService.CurrentPage?.DispatcherQueue.TryEnqueue(() =>
72 72 {
73 73 CloudMusicReady = ready;
74 CloudMusicVersion = ready && Reader.VersionInfo is not null ? $"{Reader.VersionInfo.FileVersion}" : "未检测到云音乐";
74 CloudMusicVersion = Reader.VersionInfo is not null ? $"{Reader.VersionInfo.FileVersion}" : "未检测到云音乐";
75 75 });
76 76 await Task.Delay(500);
77 77 }