Integrating latest from github/staging
Integrating up through commit 5e1bdae
This commit is contained in:
@@ -3330,7 +3330,6 @@ void ResourceCompiler::RegisterDefaultKeys()
|
||||
RegisterKey("unattended", "Prevents RC from opening any dialogs or message boxes");
|
||||
RegisterKey("createjobs", "Instructs RC to read the specified input file (a CreateJobsRequest) and output a CreateJobsResponse");
|
||||
RegisterKey("port", "Specifies the port that should be used to connect to the asset processor. If not set, the default from the bootstrap cfg will be used instead");
|
||||
RegisterKey("approot", "Specifies a custom directory for the engine root path. This path should contain bootstrap.cfg.");
|
||||
RegisterKey("branchtoken", "Specifies a branchtoken that should be used by the RC to negotiate with the asset processor. if not set it will be set from the bootstrap file.");
|
||||
RegisterKey("recompress", "Recompress a pack file during a copy job using the multi-variant process which picks the fastest decompressor");
|
||||
RegisterKey("use_fastest", "Checks every compressor and uses the one that decompresses the data fastest when adding files to a PAK");
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
#include <ResourceCompiler.h>
|
||||
#include <IResourceCompilerHelper.h>
|
||||
#include <CmdLine.h>
|
||||
#include <ParseEngineConfig.h>
|
||||
#include <CryLibrary.h>
|
||||
#include <ZipEncryptor.h>
|
||||
|
||||
@@ -558,25 +557,28 @@ int rcmain(int argc, char** argv, [[maybe_unused]] char** envp)
|
||||
|
||||
RCLog("Initializing System");
|
||||
|
||||
|
||||
string appRootInput = config.GetAsString("approot", "", "");
|
||||
if (!appRootInput.empty())
|
||||
{
|
||||
rc.SetAppRootPath(appRootInput);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Create a local SettingsRegistry to read the bootstrap.cfg settings if the appRoot hasn't been overriden
|
||||
// on the command line
|
||||
AZ::SettingsRegistryImpl settingsRegistry;
|
||||
AZ::SettingsRegistryMergeUtils::MergeSettingsToRegistry_Bootstrap(settingsRegistry);
|
||||
|
||||
string projectPath = config.GetAsString("gameroot", "", "");
|
||||
if (!projectPath.empty())
|
||||
{
|
||||
const auto projectPathKey = AZ::SettingsRegistryInterface::FixedValueString::format(
|
||||
"%s/project_path", AZ::SettingsRegistryMergeUtils::BootstrapSettingsRootKey);
|
||||
settingsRegistry.Set(projectPathKey, projectPath.c_str());
|
||||
}
|
||||
|
||||
string gameName = config.GetAsString("gamesubdirectory", "", "");
|
||||
if (!gameName.empty())
|
||||
{
|
||||
const auto gameFolderKey = AZ::SettingsRegistryInterface::FixedValueString::format("%s/sys_game_folder",
|
||||
AZ::SettingsRegistryMergeUtils::BootstrapSettingsRootKey);
|
||||
settingsRegistry.Set(gameFolderKey, gameName);
|
||||
const auto projectNameKey = AZ::SettingsRegistryInterface::FixedValueString::format(
|
||||
"%s/project_name", AZ::SettingsRegistryMergeUtils::ProjectSettingsRootKey);
|
||||
settingsRegistry.Set(projectNameKey, gameName.c_str());
|
||||
}
|
||||
|
||||
AZ::SettingsRegistryMergeUtils::MergeSettingsToRegistry_AddRuntimeFilePaths(settingsRegistry);
|
||||
// and because we're a tool, add the tool folders:
|
||||
if (AZ::SettingsRegistryInterface::FixedValueString appRoot; settingsRegistry.Get(appRoot, AZ::SettingsRegistryMergeUtils::FilePathKey_EngineRootFolder))
|
||||
|
||||
Reference in New Issue
Block a user