/* * Copyright (c) Atmosphère-NX * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #pragma once namespace ams::fs::impl { /* ACCURATE_TO_VERSION: Unknown */ /* Delimiting of mount names. */ constexpr inline const char ReservedMountNamePrefixCharacter = '@'; #define AMS_FS_IMPL_MOUNT_NAME_DELIMITER ":/" #define AMS_FS_IMPL_MOUNT_NAME_DELIMITER_LEN 2 constexpr inline const char * const MountNameDelimiter = AMS_FS_IMPL_MOUNT_NAME_DELIMITER; /* Filesystem names. */ #define AMS_FS_IMPL_HOST_ROOT_FILE_SYSTEM_MOUNT_NAME "@Host" #define AMS_FS_IMPL_HOST_ROOT_FILE_SYSTEM_MOUNT_NAME_LEN 5 constexpr inline const char * const HostRootFileSystemMountName = AMS_FS_IMPL_HOST_ROOT_FILE_SYSTEM_MOUNT_NAME; constexpr inline const char * const SdCardFileSystemMountName = "@Sdcard"; constexpr inline const char * const GameCardFileSystemMountName = "@Gc"; constexpr inline size_t GameCardFileSystemMountNameSuffixLength = 1; constexpr inline const char * const GameCardFileSystemMountNameUpdateSuffix = "U"; constexpr inline const char * const GameCardFileSystemMountNameNormalSuffix = "N"; constexpr inline const char * const GameCardFileSystemMountNameSecureSuffix = "S"; /* Built-in storage names. */ constexpr inline const char * const BisCalibrationFilePartitionMountName = "@CalibFile"; constexpr inline const char * const BisSafeModePartitionMountName = "@Safe"; constexpr inline const char * const BisUserPartitionMountName = "@User"; constexpr inline const char * const BisSystemPartitionMountName = "@System"; /* Content storage names. */ constexpr inline const char * const ContentStorageSystemMountName = "@SystemContent"; constexpr inline const char * const ContentStorageUserMountName = "@UserContent"; constexpr inline const char * const ContentStorageSdCardMountName = "@SdCardContent"; /* Registered update partition. */ constexpr inline const char * const RegisteredUpdatePartitionMountName = "@RegUpdate"; }