mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-10 15:16:34 +00:00
47 lines
1.4 KiB
C++
47 lines
1.4 KiB
C++
/*
|
|
* 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 <http://www.gnu.org/licenses/>.
|
|
*/
|
|
#pragma once
|
|
#include <stratosphere/fs/fs_common.hpp>
|
|
|
|
namespace ams::fs {
|
|
|
|
enum class GameCardPartition {
|
|
Update = 0,
|
|
Normal = 1,
|
|
Secure = 2,
|
|
Logo = 3,
|
|
};
|
|
|
|
enum class GameCardPartitionRaw {
|
|
NormalReadable,
|
|
SecureReadable,
|
|
RootWriteable,
|
|
};
|
|
|
|
enum class GameCardAttribute : u8 {
|
|
AutoBootFlag = (1 << 0),
|
|
HistoryEraseFlag = (1 << 1),
|
|
RepairToolFlag = (1 << 2),
|
|
DifferentRegionCupToTerraDeviceFlag = (1 << 3),
|
|
DifferentRegionCupToGlobalDeviceFlag = (1 << 4),
|
|
};
|
|
|
|
using GameCardHandle = u32;
|
|
|
|
Result GetGameCardHandle(GameCardHandle *out);
|
|
Result MountGameCardPartition(const char *name, GameCardHandle handle, GameCardPartition partition);
|
|
|
|
}
|