From 15396dbbc22e117622e6b558a7b8cca54853c6b3 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 7 Dec 2020 01:03:39 -0800 Subject: [PATCH] fs: add ProgramIndexMapInfo --- .../include/stratosphere/fs.hpp | 1 + .../fs/fs_program_index_map_info.hpp | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 libraries/libstratosphere/include/stratosphere/fs/fs_program_index_map_info.hpp diff --git a/libraries/libstratosphere/include/stratosphere/fs.hpp b/libraries/libstratosphere/include/stratosphere/fs.hpp index c6b5bc537..4428ac11c 100644 --- a/libraries/libstratosphere/include/stratosphere/fs.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs.hpp @@ -59,4 +59,5 @@ #include #include #include +#include #include diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_program_index_map_info.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_program_index_map_info.hpp new file mode 100644 index 000000000..5e67cd27b --- /dev/null +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_program_index_map_info.hpp @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2018-2020 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 +#include + +namespace ams::fs { + + struct ProgramIndexMapInfo { + ncm::ProgramId program_id; + ncm::ProgramId base_program_id; + u8 program_index; + u8 pad[0xF]; + }; + static_assert(util::is_pod::value); + static_assert(sizeof(ProgramIndexMapInfo) == 0x20); + +}