You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb trivial #jira none #rnx #preflight 640adf1eaf3fc352929322a9 - When a tester tried '-run=VirtualizationEditor.???' via powershell a spece was added so the editor got '-run=VirtualizationEditor .???' which doesn't parse correctly. - Change the documentation to suggest using '-run="VirtualizationEditor.???"' so that the original text is preserved. [CL 24588709 by paul chipchase in ue5-main branch]
52 lines
1.6 KiB
C++
52 lines
1.6 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Commandlets/Commandlet.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
|
|
#include "CheckForVirtualizedContentCommandlet.generated.h"
|
|
|
|
/**
|
|
* Used to validate that content does not contain virtualized payloads. The current
|
|
* cmdline options are:
|
|
* -CheckEngine
|
|
* Checks all packages currently mounted in the engine
|
|
* -CheckProject
|
|
* Checks all packages currently mounted in the current project
|
|
* -CheckDir=XYZ (XYZ is the path to the directory, use '+' as the delimiter if supplying
|
|
* more than one path)
|
|
* Checks packages in the given directory and all subdirectories
|
|
* any or all of which can be passed to the commandlet.
|
|
*
|
|
* If virtualized payloads are found then the package path (or file path if CheckDir
|
|
* indicates a directory that is not currently mounted by the project) is logged
|
|
* as an error and the commandlet will eventually return 1 as a failure value.
|
|
*
|
|
* Because the commandlet is the VirtualizationEditor module it needs to be invoked
|
|
* with the command line:
|
|
* -run="VirtualizationEditor.CheckForVirtualizedContent"
|
|
*
|
|
* Followed by
|
|
*/
|
|
UCLASS()
|
|
class UCheckForVirtualizedContentCommandlet
|
|
: public UCommandlet
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
//~ Begin UCommandlet Interface
|
|
virtual int32 Main(const FString& Params) override;
|
|
//~ End UCommandlet Interface
|
|
|
|
static int32 StaticMain(const FString& Params);
|
|
|
|
private:
|
|
|
|
TArray<FString> FindVirtualizedPackages(const TArray<FString>& PackagePaths);
|
|
|
|
bool TryValidateContent(const TCHAR* DebugName, const TArray<FString>& Packages);
|
|
bool TryValidateDirectory(const FString& Directory);
|
|
|
|
};
|