Skip to content

Commit

Permalink
Fix line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
vampy committed Apr 26, 2020
1 parent 0dad6f7 commit 559ceaa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/DiscordGameSDK/Private/DiscordHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "DiscordLibrary.h"

DEFINE_LOG_CATEGORY_STATIC(LogDiscord, All, All)
DEFINE_LOG_CATEGORY_STATIC(LogDiscord, All, All)


static discord::Core* Core = nullptr;
Expand Down Expand Up @@ -39,18 +39,18 @@ bool UDiscordHelper::UpdatePlayActivity(const FString& State, const FString& Det
return false;

discord::Activity activity{};
activity.SetType(discord::ActivityType::Playing);
activity.SetState(TCHAR_TO_ANSI(*State));
activity.SetType(discord::ActivityType::Playing);
activity.SetState(TCHAR_TO_ANSI(*State));
activity.SetDetails(TCHAR_TO_ANSI(*Details));
Core->ActivityManager().UpdateActivity(activity, [](discord::Result result)
{
{
if (result != discord::Result::Ok)
{
UE_LOG(LogDiscord, Log, TEXT("Discord Activity Fail"));
return;
return;
}

UE_LOG(LogDiscord, Log, TEXT("Discord Activity Set"));
UE_LOG(LogDiscord, Log, TEXT("Discord Activity Set"));
});

return true;
Expand Down

0 comments on commit 559ceaa

Please sign in to comment.