Skip to content

Commit

Permalink
Merge pull request #7 from charisma-ai/mac-support
Browse files Browse the repository at this point in the history
feat: support Mac
  • Loading branch information
bensalilijames authored Dec 15, 2023
2 parents 8f5f733 + 5759270 commit dd0a0b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ UForkPlaythrough* UForkPlaythrough::ForkPlaythrough(UObject* WorldContextObject,
UForkPlaythrough* BlueprintNode = NewObject<UForkPlaythrough>();
BlueprintNode->WorldContextObject = WorldContextObject;
BlueprintNode->Token = Token;

return BlueprintNode;
}

void UForkPlaythrough::Activate()
{
UCharismaAPI::ForkPlaythrough(
Token, [&](const FString Token, const FString PlaythroughUuid) { Success.Broadcast(Token, PlaythroughUuid, TEXT("")); },
[&](const FString Error) { Failure.Broadcast(TEXT(""),TEXT(""), Error); });
Token,
[&](const FString NewToken, const FString PlaythroughUuid) { Success.Broadcast(NewToken, PlaythroughUuid, TEXT("")); },
[&](const FString Error) { Failure.Broadcast(TEXT(""), TEXT(""), Error); });
}
3 changes: 2 additions & 1 deletion charisma-unreal.uplugin
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"Type": "Runtime",
"LoadingPhase": "PreDefault",
"PlatformAllowList": [
"Win64"
"Win64",
"Mac"
]
}
]
Expand Down

0 comments on commit dd0a0b8

Please sign in to comment.