Skip to content

Commit 4bd8c53

Browse files
committed
fix(shortcuts): Switch to byte[] for image assets when passing to Steam
1 parent 9fe8c63 commit 4bd8c53

2 files changed

Lines changed: 26348 additions & 6 deletions

File tree

Hi3Helper.Plugin.Wuwa/Plugin.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,11 @@ public override void GetPresetConfig(int index, out IPluginPresetConfig presetCo
4242

4343
public override void GetPluginSelfUpdater(out IPluginSelfUpdate selfUpdate) => selfUpdate = _selfUpdaterInstance ??= new WuwaPluginSelfUpdate();
4444

45-
private const string _getPluginAppIconUrl =
46-
"https://play-lh.googleusercontent.com/g-47eiWo7LYLBFOQrYNzjrsTf4HRzUT--lSGrqJ9BPJFV72FEdYo5rSMI6AXBDyzrA";
45+
private string? _getPluginAppIconUrl;
4746

48-
public override void GetPluginAppIconUrl(out string result) => result = _getPluginAppIconUrl;
47+
public override void GetPluginAppIconUrl(out string result) => result = _getPluginAppIconUrl ??= Convert.ToBase64String(WuwaImageData.WuwaAppIconData);
4948

50-
private const string _getNotificationPosterUrl =
51-
"https://raw.githubusercontent.com/CollapseLauncher/CollapseLauncher-ReleaseRepo/refs/heads/main/metadata/game_posters/poster_wuwa.png";
49+
private string? _getNotificationPosterUrl;
5250

53-
public override void GetNotificationPosterUrl(out string result) => result = _getNotificationPosterUrl;
51+
public override void GetNotificationPosterUrl(out string result) => result = _getNotificationPosterUrl ??= Convert.ToBase64String(WuwaImageData.WuwaPosterData);
5452
}

0 commit comments

Comments
 (0)