Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #341 from DolbyIO/reporting
Browse files Browse the repository at this point in the history
Reporting
  • Loading branch information
Kuba Audykowicz authored Aug 2, 2023
2 parents 925390d + 90c6de6 commit cf6fdf7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DolbyIO/DolbyIO.uplugin
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"FileVersion": 3,
"Version": 1,
"VersionName": "1.2.0-beta.4",
"VersionName": "1.2.0-beta.5",
"FriendlyName": "Dolby.io Virtual Worlds",
"Description": "Plugin integrating Dolby.io Communications.",
"Category": "Communications",
Expand Down
10 changes: 9 additions & 1 deletion DolbyIO/Source/Private/Subsystem/DolbyIOInitialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

#include "Engine/GameInstance.h"
#include "Engine/World.h"
#include "GenericPlatform/GenericPlatformProperties.h"
#include "Interfaces/IPluginManager.h"
#include "Misc/EngineVersion.h"
#include "Misc/Paths.h"
#include "TimerManager.h"

Expand Down Expand Up @@ -105,7 +108,12 @@ void UDolbyIOSubsystem::Initialize(const FString& Token)
#define DLB_REGISTER_HANDLER(Service, Event) \
[this](event_handler_id) { return Sdk->Service().add_event_handler([this](const Event& Event) { Handle(Event); }); }

Sdk->register_component_version("unreal-sdk", "1.2.0-beta.4")
const FString ComponentName = "unreal-sdk";
const FString ComponentVersion = *IPluginManager::Get().FindPlugin("DolbyIO")->GetDescriptor().VersionName +
FString{"_UE"} + FEngineVersion::Current().ToString(EVersionComponent::Minor) +
"_" + FPlatformProperties::IniPlatformName();
DLB_UE_LOG("Registering component %s %s", *ComponentName, *ComponentVersion);
Sdk->register_component_version(ToStdString(ComponentName), ToStdString(ComponentVersion))
.then(
[this](sdk::component_data)
{
Expand Down

0 comments on commit cf6fdf7

Please sign in to comment.