Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

50 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "OnlineSubsystemGoogle.h"
#include "OnlineSubsystemGooglePrivate.h"
#include "OnlineIdentityGoogle.h"
#include "OnlineExternalUIInterfaceGoogle.h"
#include "Misc/ConfigCacheIni.h"
FOnlineSubsystemGoogle::FOnlineSubsystemGoogle(FName InInstanceName)
: FOnlineSubsystemGoogleCommon(InInstanceName)
{
bPlatformRequiresClientId = false;
bPlatformAllowsClientIdOverride = false;
bPlatformRequiresServerClientId = true;
}
FOnlineSubsystemGoogle::~FOnlineSubsystemGoogle()
{
}
bool FOnlineSubsystemGoogle::Init()
{
UE_LOG_ONLINE(VeryVerbose, TEXT("FOnlineSubsystemGoogle::Init()"));
if (FOnlineSubsystemGoogleCommon::Init())
{
FOnlineIdentityGooglePtr TempPtr = MakeShareable(new FOnlineIdentityGoogle(this));
if (TempPtr->Init())
{
GoogleIdentity = TempPtr;
}
GoogleExternalUI = MakeShareable(new FOnlineExternalUIGoogle(this));
}
return GoogleIdentity.IsValid() && GoogleExternalUI.IsValid();
}
bool FOnlineSubsystemGoogle::Shutdown()
{
UE_LOG_ONLINE(VeryVerbose, TEXT("FOnlineSubsystemGoogle::Shutdown()"));
if (auto Identity = StaticCastSharedPtr<FOnlineIdentityGoogle>(GoogleIdentity))
{
Identity->Shutdown();
}
return FOnlineSubsystemGoogleCommon::Shutdown();
}