You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.7 KiB
C++
57 lines
1.7 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <AzFramework/Archive/ArchiveVars_Platform.h>
|
|
|
|
namespace AZ::IO
|
|
{
|
|
enum class ArchiveLocationPriority
|
|
{
|
|
ePakPriorityFileFirst = 0,
|
|
ePakPriorityPakFirst = 1,
|
|
ePakPriorityPakOnly = 2
|
|
};
|
|
|
|
// variables that control behavior of the Archive subsystem
|
|
struct ArchiveVars
|
|
{
|
|
#if defined(_RELEASE)
|
|
inline static constexpr bool IsReleaseConfig{ true };
|
|
#else
|
|
inline static constexpr bool IsReleaseConfig{};
|
|
#endif
|
|
|
|
public:
|
|
int nReadSlice{};
|
|
int nSaveTotalResourceList{};
|
|
int nSaveFastloadResourceList{};
|
|
int nSaveMenuCommonResourceList{};
|
|
int nSaveLevelResourceList{};
|
|
int nValidateFileHashes{ IsReleaseConfig ? 0 : 1 };
|
|
int nUncachedStreamReads{ 1 };
|
|
int nInMemoryPerPakSizeLimit{ 6 }; // Limits in MB
|
|
int nTotalInMemoryPakSizeLimit{ 30 };
|
|
int nLoadCache{};
|
|
int nLoadModePaks{};
|
|
int nStreamCache{ STREAM_CACHE_DEFAULT };
|
|
ArchiveLocationPriority nPriority{ IsReleaseConfig
|
|
? ArchiveLocationPriority::ePakPriorityPakOnly
|
|
: ArchiveLocationPriority::ePakPriorityFileFirst }; // Which file location to favor (loose vs. pak files)
|
|
int nMessageInvalidFileAccess{};
|
|
int nLogInvalidFileAccess{ IsReleaseConfig ? 0 : 1 };
|
|
int nDisableNonLevelRelatedPaks{ 1 };
|
|
int nWarnOnPakAccessFails{ 1 }; // Whether to treat failed pak access as a warning or log message
|
|
int nSetLogLevel{ 3 };
|
|
int nLogAllFileAccess{};
|
|
|
|
};
|
|
}
|