Files
UnrealEngine/Engine/Source/Programs/Unsync/Private/UnsyncCmdSync.h
2025-05-18 13:04:45 +08:00

43 lines
813 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "UnsyncCommon.h"
#include "UnsyncCore.h"
#include "UnsyncRemote.h"
namespace unsync {
struct FAuthDesc;
struct FCmdSyncOptions
{
FAlgorithmOptions Algorithm;
FPath Source;
FPath Target;
FPath SourceManifestOverride;
FPath ScavengeRoot;
uint32 ScavengeDepth = 5;
uint64 BackgroundTaskMemoryBudget = 2_GB;
std::vector<FPath> Overlays;
FRemoteDesc Remote;
FAuthDesc* AuthDesc = nullptr;
bool bFullDifference = false;
bool bFullSourceScan = false;
bool bCleanup = false;
bool bCheckAvailableSpace = true;
bool bValidateTargetFiles = true; // WARNING: turning this off is intended only for testing/profiling
FSyncFilter* Filter = nullptr;
};
int32 CmdSync(const FCmdSyncOptions& Options);
} // namespace unsync