You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
2f8823f7dc
Allow Cook to remote Zen, if we detect that we are targetting a zenservice on a different machine we change the local file references to attachment based references. #rb stefan.boberg #preflight 63491c31ad0f7e2f20230b39 [CL 22525021 by dan engelbrecht in ue5-main branch]
58 lines
1.2 KiB
C++
58 lines
1.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "IO/IoDispatcher.h"
|
|
|
|
class ITargetPlatform;
|
|
class FArchive;
|
|
|
|
class FZenFileSystemManifest
|
|
{
|
|
public:
|
|
|
|
struct FManifestEntry
|
|
{
|
|
FString ServerPath;
|
|
FString ClientPath;
|
|
FIoChunkId FileChunkId;
|
|
};
|
|
|
|
FZenFileSystemManifest(const ITargetPlatform& InTargetPlatform, FString InCookDirectory);
|
|
|
|
int32 Generate();
|
|
|
|
const FManifestEntry& CreateManifestEntry(const FString& Filename);
|
|
|
|
const FManifestEntry& AddManifestEntry(const FIoChunkId& FileChunkId, FString ServerPath, FString ClientPath);
|
|
|
|
TArrayView<const FManifestEntry> ManifestEntries() const
|
|
{
|
|
return Entries;
|
|
}
|
|
|
|
bool Save(const TCHAR* Filename);
|
|
|
|
int32 NumEntries() const
|
|
{
|
|
return Entries.Num();
|
|
}
|
|
|
|
const FString& ServerRootPath() const
|
|
{
|
|
return ServerRoot;
|
|
}
|
|
|
|
private:
|
|
static void GetExtensionDirs(TArray<FString>& OutExtensionDirs, const TCHAR* BaseDir, const TCHAR* SubDir, const TArray<FString>& PlatformDirectoryNames);
|
|
|
|
const ITargetPlatform& TargetPlatform;
|
|
FString CookDirectory;
|
|
FString ServerRoot;
|
|
TMap<FString, int32> ServerPathToEntry;
|
|
TArray<FManifestEntry> Entries;
|
|
|
|
static const FManifestEntry InvalidEntry;
|
|
};
|