Fixed hashlink?

I cant test on mac since FATAL ERROR : Failed to load library ssl.hdll
and with define no_ssl
IMUL(stack,cpu)
JIT ERROR 0 (jit.c line 613)
This commit is contained in:
Ne_Eo
2024-11-09 00:58:00 +01:00
parent f54c485d0c
commit 74ce1756dc
4 changed files with 47 additions and 52 deletions
+3 -1
View File
@@ -165,6 +165,7 @@ class DiscordUtil
#end
}
#if cpp
@:noCompletion public static function fixString(str:String)
{
return new cpp.ConstCharStar(cast(str, String));
@@ -174,6 +175,7 @@ class DiscordUtil
{
return cast(str, String);
}
#end
public static function changePresenceAdvanced(data:DPresence)
{
@@ -469,7 +471,7 @@ typedef DPresence =
var ?matchSecret:String; /* max 128 bytes */
var ?joinSecret:String; /* max 128 bytes */
var ?spectateSecret:String; /* max 128 bytes */
var ?instance:OneOfTwo<Int, cpp.Int8>;
var ?instance:#if cpp OneOfTwo<Int, cpp.Int8> #else Int #end;
var ?button1Label:String; /* max 32 bytes */
var ?button1Url:String; /* max 512 bytes */
var ?button2Label:String; /* max 32 bytes */