2018-09-07 15:00:13 +00:00
|
|
|
/*
|
2020-01-24 10:10:40 +00:00
|
|
|
* Copyright (c) 2018-2020 Atmosphère-NX
|
2018-09-07 15:00:13 +00:00
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
2020-03-08 08:21:01 +00:00
|
|
|
|
2018-04-12 03:56:11 +00:00
|
|
|
#ifndef FUSEE_STRATOSPHERE_H
|
|
|
|
#define FUSEE_STRATOSPHERE_H
|
|
|
|
|
|
|
|
#include "utils.h"
|
|
|
|
#include "kip.h"
|
2019-06-14 13:37:25 +00:00
|
|
|
#include "exocfg.h"
|
2018-04-12 03:56:11 +00:00
|
|
|
|
2018-10-16 22:08:06 +00:00
|
|
|
#define STRATOSPHERE_INI1_SDFILES 0x0
|
|
|
|
#define STRATOSPHERE_INI1_EMBEDDED 0x1
|
|
|
|
#define STRATOSPHERE_INI1_PACKAGE2 0x2
|
|
|
|
#define STRATOSPHERE_INI1_MAX 0x3
|
2018-04-12 03:56:11 +00:00
|
|
|
|
2018-05-15 14:09:06 +00:00
|
|
|
ini1_header_t *stratosphere_get_ini1(uint32_t target_firmware);
|
2018-10-16 22:08:06 +00:00
|
|
|
ini1_header_t *stratosphere_get_sd_files_ini1(void);
|
2018-05-08 16:46:54 +00:00
|
|
|
void stratosphere_free_ini1(void);
|
2018-04-12 03:56:11 +00:00
|
|
|
|
2020-09-18 04:04:43 +00:00
|
|
|
void stratosphere_disable_ncm(void);
|
2020-03-08 08:21:01 +00:00
|
|
|
|
2019-06-14 13:37:25 +00:00
|
|
|
emummc_fs_ver_t stratosphere_get_fs_version(void);
|
|
|
|
|
|
|
|
ini1_header_t *stratosphere_merge_inis(ini1_header_t **inis, unsigned int num_inis, void *emummc, size_t emummc_size);
|
2018-04-12 03:56:11 +00:00
|
|
|
|
2018-11-30 12:36:29 +00:00
|
|
|
typedef struct {
|
|
|
|
bool has_nogc_config;
|
|
|
|
bool enable_nogc;
|
2020-09-18 04:04:43 +00:00
|
|
|
bool ncm_disabled;
|
2018-11-30 12:36:29 +00:00
|
|
|
} stratosphere_cfg_t;
|
2018-11-30 12:10:23 +00:00
|
|
|
|
|
|
|
#define STRATOSPHERE_NOGC_KEY "nogc"
|
2020-09-18 04:04:43 +00:00
|
|
|
#define STRATOSPHERE_DISABLE_NCM_KEY "disable_ncm"
|
2018-11-30 12:10:23 +00:00
|
|
|
|
2018-05-08 16:46:54 +00:00
|
|
|
#endif
|