diff --git a/Source/DTFluxCoreSubsystem/Private/DTFluxCoreSubsystem.cpp b/Source/DTFluxCoreSubsystem/Private/DTFluxCoreSubsystem.cpp index d6ead8a..6ea45c9 100644 --- a/Source/DTFluxCoreSubsystem/Private/DTFluxCoreSubsystem.cpp +++ b/Source/DTFluxCoreSubsystem/Private/DTFluxCoreSubsystem.cpp @@ -429,7 +429,7 @@ FGuid UDTFluxCoreSubsystem::InitContestRankingsDisplay(const int ContestId) { if (DataStorage) { - // no need to request StageRankings; + // no need to request ContestRankings; if (IsContestRankingSealed(ContestId)) { const FGuid DisplayRequestId = FGuid::NewGuid(); @@ -444,12 +444,14 @@ FGuid UDTFluxCoreSubsystem::InitContestRankingsDisplay(const int ContestId) FDTFluxContestRankings Rankings = FDTFluxContestRankings(); if (Request.ParsedResponse.IsSet()) { + UE_LOG(logDTFluxCoreSubsystem, Error, TEXT("Request IsSet()")); TSharedPtr ResponsePtr = Request.ParsedResponse.GetValue(); ResponsePtr->ParseContestRanking(Rankings); this->DataStorage->AddContestRanking(Rankings); this->OnContestRankingDisplayReady.Broadcast(Request.RequestId, true); return; } + UE_LOG(logDTFluxCoreSubsystem, Error, TEXT("Request IsSet(FALSE)")); this->OnStageRankingDisplayReady.Broadcast(Request.RequestId, false); }); FOnDTFluxRequestError OnError = FOnDTFluxRequestError::CreateLambda( diff --git a/Source/DTFluxCoreSubsystem/Public/DTFluxCoreSubsystemTools.h b/Source/DTFluxCoreSubsystem/Public/DTFluxCoreSubsystemTools.h index 3040933..3547d56 100644 --- a/Source/DTFluxCoreSubsystem/Public/DTFluxCoreSubsystemTools.h +++ b/Source/DTFluxCoreSubsystem/Public/DTFluxCoreSubsystemTools.h @@ -29,6 +29,7 @@ public: UFUNCTION(Blueprintable, Category="DTFlux|Core Subsystem|Tools") static float ConvertTimeStringToSeconds(const FString& TimeString); + UFUNCTION(Blueprintable, Category="DTFlux|Core Subsystem|Tools") static bool CompareTimeString(const FString& A_TimeStr, const FString& B_TimeStr, bool bAscendant = true);