boot: refactor to use sts::boot namespace
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user