This commit is contained in:
Chris Marsh 2017-09-06 14:27:52 -07:00
parent 794bbccd51
commit 592f134d80
2 changed files with 5 additions and 2 deletions

View file

@ -71,7 +71,8 @@ void UDiscordRpc::Initialize(const FString& applicationId,
} }
auto appId = StringCast<ANSICHAR>(*applicationId); auto appId = StringCast<ANSICHAR>(*applicationId);
auto steamId = StringCast<ANSICHAR>(*optionalSteamId); auto steamId = StringCast<ANSICHAR>(*optionalSteamId);
Discord_Initialize((const char*)appId.Get(), &handlers, autoRegister, (const char*)steamId.Get()); Discord_Initialize(
(const char*)appId.Get(), &handlers, autoRegister, (const char*)steamId.Get());
} }
void UDiscordRpc::Shutdown() void UDiscordRpc::Shutdown()

View file

@ -70,7 +70,9 @@ public:
UFUNCTION(BlueprintCallable, UFUNCTION(BlueprintCallable,
meta = (DisplayName = "Initialize connection", Keywords = "Discord rpc"), meta = (DisplayName = "Initialize connection", Keywords = "Discord rpc"),
Category = "Discord") Category = "Discord")
void Initialize(const FString& applicationId, bool autoRegister, const FString& optionalSteamId); void Initialize(const FString& applicationId,
bool autoRegister,
const FString& optionalSteamId);
UFUNCTION(BlueprintCallable, UFUNCTION(BlueprintCallable,
meta = (DisplayName = "Shut down connection", Keywords = "Discord rpc"), meta = (DisplayName = "Shut down connection", Keywords = "Discord rpc"),