Cleared TODOs in OLSAssetManagerStartupJob

This commit is contained in:
LongLy 2025-01-16 12:19:53 -07:00
parent 7a9b1b82b2
commit 8917782a44
2 changed files with 8 additions and 4 deletions

View File

@ -3,13 +3,16 @@
#include "Systems/OLSAssetManagerStartupJob.h"
#include "OLSLog.h"
DEFINE_LOG_CATEGORY(LogOLSAssetManagerStartupJob);
TSharedPtr<FStreamableHandle> FOLSAssetManagerStartupJob::DoJob() const
{
const double jobStartTime = FPlatformTime::Seconds();
TSharedPtr<FStreamableHandle> handle;
// @Todo replace this with our custom log.
// UE_LOG(LogLyra, Display, TEXT("Startup job \"%s\" starting"), *JobName);
OLS_LOG_NO_WORLD(LogOLSAssetManagerStartupJob, Display, TEXT("Startup job \"%s\" starting"), *JobName);
JobFunc(*this, handle);
if (handle.IsValid())
@ -19,8 +22,8 @@ TSharedPtr<FStreamableHandle> FOLSAssetManagerStartupJob::DoJob() const
handle->BindUpdateDelegate(FStreamableUpdateDelegate());
}
// @Todo replace this with our custom log.
// UE_LOG(LogLyra, Display, TEXT("Startup job \"%s\" took %.2f seconds to complete"), *JobName, FPlatformTime::Seconds() - jobStartTime);
OLS_LOG_NO_WORLD(LogOLSAssetManagerStartupJob, Display, TEXT("Startup job \"%s\" took %.2f seconds to complete"),
*JobName, FPlatformTime::Seconds() - jobStartTime);
return handle;
}

View File

@ -4,6 +4,7 @@
#include "Engine/StreamableManager.h"
DECLARE_LOG_CATEGORY_EXTERN(LogOLSAssetManagerStartupJob, Verbose, All);
DECLARE_DELEGATE_OneParam(FOLSAssetManagerStartupJobSubstepProgress, float /*newProgress*/);