Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bootloader/config.c
1471 views
1
/*
2
* Copyright (c) 2018-2022 CTCaer
3
*
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms and conditions of the GNU General Public License,
6
* version 2, as published by the Free Software Foundation.
7
*
8
* This program is distributed in the hope it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
* more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*/
16
17
#include <string.h>
18
#include <stdlib.h>
19
20
#include <bdk.h>
21
22
#include "config.h"
23
#include "gfx/tui.h"
24
#include <libs/fatfs/ff.h>
25
26
extern hekate_config h_cfg;
27
28
void set_default_configuration()
29
{
30
h_cfg.t210b01 = hw_get_chip_id() == GP_HIDREV_MAJOR_T210B01;
31
32
h_cfg.autoboot = 0;
33
h_cfg.autoboot_list = 0;
34
h_cfg.bootwait = 3;
35
h_cfg.noticker = 0; //! TODO: Add GUI option.
36
h_cfg.backlight = 100;
37
h_cfg.autohosoff = h_cfg.t210b01 ? 1 : 0;
38
h_cfg.autonogc = 1;
39
h_cfg.updater2p = 0;
40
h_cfg.bootprotect = 0;
41
42
h_cfg.errors = 0;
43
h_cfg.eks = NULL;
44
h_cfg.rcm_patched = fuse_check_patched_rcm();
45
h_cfg.emummc_force_disable = false;
46
}
47
48