From a081c93094afd62150e17b218c57b75818a8c096 Mon Sep 17 00:00:00 2001 From: Mat M Date: Sat, 24 Feb 2018 15:46:57 -0500 Subject: [PATCH] bootconfig/configitem: Fix includes and identifiers (#49) --- exosphere/bootconfig.h | 1 + exosphere/configitem.c | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/exosphere/bootconfig.h b/exosphere/bootconfig.h index 20d1120c5..6ce8cf970 100644 --- a/exosphere/bootconfig.h +++ b/exosphere/bootconfig.h @@ -1,6 +1,7 @@ #ifndef EXOSPHERE_BOOTCONFIG_H #define EXOSPHERE_BOOTCONFIG_H +#include #include /* This provides management for Switch BootConfig. */ diff --git a/exosphere/configitem.c b/exosphere/configitem.c index d4f3a8e38..8a26f18b3 100644 --- a/exosphere/configitem.c +++ b/exosphere/configitem.c @@ -1,9 +1,11 @@ #include -#include "utils.h" #include "bootconfig.h" -#include "se.h" #include "configitem.h" +#include "interrupt.h" +#include "package2.h" +#include "se.h" +#include "utils.h" int g_battery_profile = 0; @@ -37,7 +39,7 @@ uint32_t configitem_get(enum ConfigItem item, uint64_t *p_outvalue) { /* SE is interrupt #0x2C. */ *p_outvalue = INTERRUPT_ID_USER_SECURITY_ENGINE; break; - case CONFIGITEM_UNK04: + case CONFIGITEM_VERSION: /* Always returns maxver - 1 on hardware. */ *p_outvalue = PACKAGE2_MAXVER_400_CURRENT - 1; break;