2018-07-01 17:45:25 +00:00
|
|
|
/*
|
2022-12-19 02:41:21 +00:00
|
|
|
* Copyright (c) 2018-2022 CTCaer
|
2018-08-05 11:40:32 +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/>.
|
|
|
|
*/
|
2018-07-01 17:45:25 +00:00
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2022-01-15 22:04:34 +00:00
|
|
|
#include <bdk.h>
|
|
|
|
|
2018-07-01 17:45:25 +00:00
|
|
|
#include "config.h"
|
2020-06-14 13:45:45 +00:00
|
|
|
#include "gfx/tui.h"
|
|
|
|
#include <libs/fatfs/ff.h>
|
2018-07-01 17:45:25 +00:00
|
|
|
|
|
|
|
extern hekate_config h_cfg;
|
|
|
|
|
|
|
|
void set_default_configuration()
|
|
|
|
{
|
2022-10-11 04:51:45 +00:00
|
|
|
h_cfg.t210b01 = hw_get_chip_id() == GP_HIDREV_MAJOR_T210B01;
|
|
|
|
|
2022-10-11 04:49:17 +00:00
|
|
|
h_cfg.autoboot = 0;
|
2018-08-21 01:37:40 +00:00
|
|
|
h_cfg.autoboot_list = 0;
|
2022-10-11 04:49:17 +00:00
|
|
|
h_cfg.bootwait = 3;
|
|
|
|
h_cfg.noticker = 0; //! TODO: Add GUI option.
|
|
|
|
h_cfg.backlight = 100;
|
2022-10-11 04:51:45 +00:00
|
|
|
h_cfg.autohosoff = h_cfg.t210b01 ? 1 : 0;
|
2022-10-11 04:49:17 +00:00
|
|
|
h_cfg.autonogc = 1;
|
|
|
|
h_cfg.updater2p = 0;
|
|
|
|
h_cfg.bootprotect = 0;
|
|
|
|
|
2019-06-30 00:15:46 +00:00
|
|
|
h_cfg.errors = 0;
|
2020-04-30 00:43:29 +00:00
|
|
|
h_cfg.eks = NULL;
|
2020-06-13 15:16:29 +00:00
|
|
|
h_cfg.rcm_patched = fuse_check_patched_rcm();
|
2019-06-30 00:40:37 +00:00
|
|
|
h_cfg.emummc_force_disable = false;
|
2018-07-01 17:45:25 +00:00
|
|
|
}
|