mirror of
https://github.com/yuzu-emu/discord-rpc
synced 2024-11-26 02:57:44 +00:00
format
This commit is contained in:
parent
794bbccd51
commit
592f134d80
2 changed files with 5 additions and 2 deletions
|
@ -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()
|
||||||
|
|
|
@ -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"),
|
||||||
|
|
Loading…
Reference in a new issue