boot: refactor to use sts::boot namespace

This commit is contained in:
Michael Scire
2019-06-22 00:10:21 -07:00
parent 4fbae9e5a4
commit 06416aeded
91 changed files with 3665 additions and 3155 deletions

View File

@@ -501,13 +501,13 @@ namespace sts::updater {
}
BootImageUpdateType GetBootImageUpdateType(HardwareType hw_type) {
BootImageUpdateType GetBootImageUpdateType(spl::HardwareType hw_type) {
switch (hw_type) {
case HardwareType_Icosa:
case HardwareType_Copper:
case spl::HardwareType::Icosa:
case spl::HardwareType::Copper:
return BootImageUpdateType::Erista;
case HardwareType_Hoag:
case HardwareType_Iowa:
case spl::HardwareType::Hoag:
case spl::HardwareType::Iowa:
return BootImageUpdateType::Mariko;
default:
std::abort();

View File

@@ -23,7 +23,7 @@
namespace sts::updater {
/* Public API. */
BootImageUpdateType GetBootImageUpdateType(HardwareType hw_type);
BootImageUpdateType GetBootImageUpdateType(spl::HardwareType hw_type);
Result VerifyBootImagesAndRepairIfNeeded(bool *out_repaired_normal, bool *out_repaired_safe, void *work_buffer, size_t work_buffer_size, BootImageUpdateType boot_image_update_type);
}

View File

@@ -19,7 +19,7 @@
#include <stratosphere.hpp>
/* TODO: Better way to do this? */
#include "../boot_types.hpp"
#include "../boot_spl_utils.hpp"
namespace sts::updater {