Skip to content

Commit f5ebc3f

Browse files
committed
Fix compile error (ISTG this time)
1 parent 71c229b commit f5ebc3f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

SharedStatic.V1Ext_Update2.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ private static unsafe HResult GetCurrentDiscordPresenceInfo(void* presetConfigP,
4545
IPluginPresetConfig? presetConfig = ComInterfaceMarshaller<IPluginPresetConfig>.ConvertToManaged((void*)presetConfigP);
4646
#endif
4747

48+
if (presetConfig == null)
49+
{
50+
return false;
51+
}
52+
4853
DiscordPresenceExtension.DiscordPresenceContext context = new(presetConfig);
4954

5055
if (presenceInfoP == null)

Utility/Json/JsonSerializerExtension.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
using System.Threading.Tasks;
1010
using Microsoft.Extensions.Logging;
1111

12+
#if !DEBUG
13+
using System.Net.Http.Json;
14+
#endif
15+
1216
namespace Hi3Helper.Plugin.Core.Utility.Json;
1317

1418
public static class JsonSerializerExtension

0 commit comments

Comments
 (0)