Fixed HarmonyLinkUEBPLibrary rename in DataRefreshActor
This commit is contained in:
parent
f614c33a0a
commit
ba75633d8e
2 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
// DataRefreshActor.cpp
|
// DataRefreshActor.cpp
|
||||||
|
|
||||||
#include "DataRefreshActor.h"
|
#include "DataRefreshActor.h"
|
||||||
#include "HarmonyLinkUEBPLibrary.h"
|
#include "HarmonyLinkClient.h"
|
||||||
|
|
||||||
// Sets default values
|
// Sets default values
|
||||||
ADataRefreshActor::ADataRefreshActor()
|
ADataRefreshActor::ADataRefreshActor()
|
||||||
|
@ -50,8 +50,8 @@ void ADataRefreshActor::OnServerStatusChecked(bool connected)
|
||||||
if (connected)
|
if (connected)
|
||||||
{
|
{
|
||||||
// Refresh the data and update the cached information
|
// Refresh the data and update the cached information
|
||||||
UHarmonyLinkUEBPLibrary::RefreshAllInfo(FDeviceInfoCallback());
|
UHarmonyLinkClient::RefreshAllInfo(FDeviceInfoCallback());
|
||||||
UHarmonyLinkUEBPLibrary::RefreshVersionInfo(FVersionInfoCallback());
|
UHarmonyLinkClient::RefreshVersionInfo(FVersionInfoCallback());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,10 +59,10 @@ void ADataRefreshActor::OnServerStatusChecked(bool connected)
|
||||||
void ADataRefreshActor::RefreshData()
|
void ADataRefreshActor::RefreshData()
|
||||||
{
|
{
|
||||||
// Only refresh data if the Harmony Link library is available
|
// Only refresh data if the Harmony Link library is available
|
||||||
if (UHarmonyLinkUEBPLibrary::StaticClass())
|
if (UHarmonyLinkClient::StaticClass())
|
||||||
{
|
{
|
||||||
// Check server status asynchronously
|
// Check server status asynchronously
|
||||||
UHarmonyLinkUEBPLibrary::CheckServerStatus(ServerStatusCallback);
|
UHarmonyLinkClient::CheckServerStatus(ServerStatusCallback);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
#include "CoreMinimal.h"
|
#include "CoreMinimal.h"
|
||||||
#include "GameFramework/Actor.h"
|
#include "GameFramework/Actor.h"
|
||||||
#include "HarmonyLinkUEBPLibrary.h"
|
#include "HarmonyLinkClient.h"
|
||||||
#include "DataRefreshActor.generated.h"
|
#include "DataRefreshActor.generated.h"
|
||||||
|
|
||||||
UCLASS()
|
UCLASS()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue