ArchiveVars.cpp 630 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <AzFramework/Archive/ArchiveVars.h>
  9. namespace AZ::IO
  10. {
  11. FileSearchPriority GetDefaultFileSearchPriority()
  12. {
  13. #if defined(LY_ARCHIVE_FILE_SEARCH_MODE)
  14. return FileSearchPriority{ LY_ARCHIVE_FILE_SEARCH_MODE };
  15. #else
  16. return FileSearchPriority{ !ArchiveVars::IsReleaseConfig
  17. ? FileSearchPriority::FileFirst
  18. : FileSearchPriority::PakOnly };
  19. #endif
  20. }
  21. }