mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-26 13:52:21 +00:00
67 lines
1.7 KiB
C
67 lines
1.7 KiB
C
/*
|
|
* Copyright (c) 2018-2019 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/>.
|
|
*/
|
|
|
|
#ifndef EXOSPHERE_EMUMMC_CONFIG_H
|
|
#define EXOSPHERE_EMUMMC_CONFIG_H
|
|
|
|
#include <stdint.h>
|
|
#include <vapours/ams_version.h>
|
|
#include "utils.h"
|
|
|
|
/* "EFS0" */
|
|
#define MAGIC_EMUMMC_CONFIG (0x30534645)
|
|
|
|
#define EMUMMC_FILE_PATH_MAX (0x80)
|
|
|
|
typedef enum {
|
|
EMUMMC_TYPE_NONE = 0,
|
|
EMUMMC_TYPE_PARTITION = 1,
|
|
EMUMMC_TYPE_FILES = 2,
|
|
} emummc_type_t;
|
|
|
|
typedef enum {
|
|
EMUMMC_MMC_NAND = 0,
|
|
EMUMMC_MMC_SD = 1,
|
|
EMUMMC_MMC_GC = 2,
|
|
} emummc_mmc_t;
|
|
|
|
typedef struct {
|
|
uint32_t magic;
|
|
uint32_t type;
|
|
uint32_t id;
|
|
uint32_t fs_version;
|
|
} emummc_base_config_t;
|
|
|
|
typedef struct {
|
|
uint64_t start_sector;
|
|
} emummc_partition_config_t;
|
|
|
|
typedef struct {
|
|
char path[EMUMMC_FILE_PATH_MAX];
|
|
} emummc_file_config_t;
|
|
|
|
typedef struct {
|
|
emummc_base_config_t base_cfg;
|
|
union {
|
|
emummc_partition_config_t partition_cfg;
|
|
emummc_file_config_t file_cfg;
|
|
};
|
|
char emu_dir_path[EMUMMC_FILE_PATH_MAX];
|
|
} exo_emummc_config_t;
|
|
|
|
_Static_assert(sizeof(exo_emummc_config_t) == 0x110, "exo_emummc_config_t definition!");
|
|
|
|
#endif
|