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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user