clang doormat
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
|
#include "loader/ncsd.hpp"
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include "loader/ncsd.hpp"
|
|
||||||
#include "memory.hpp"
|
#include "memory.hpp"
|
||||||
|
|
||||||
bool Memory::mapCXI(NCSD& ncsd, NCCH& cxi) {
|
bool Memory::mapCXI(NCSD& ncsd, NCCH& cxi) {
|
||||||
@@ -55,8 +57,7 @@ bool Memory::mapCXI(NCSD& ncsd, NCCH& cxi) {
|
|||||||
|
|
||||||
std::optional<NCSD> Memory::loadNCSD(Crypto::AESEngine& aesEngine, const std::filesystem::path& path) {
|
std::optional<NCSD> Memory::loadNCSD(Crypto::AESEngine& aesEngine, const std::filesystem::path& path) {
|
||||||
NCSD ncsd;
|
NCSD ncsd;
|
||||||
if (!ncsd.file.open(path, "rb"))
|
if (!ncsd.file.open(path, "rb")) return std::nullopt;
|
||||||
return std::nullopt;
|
|
||||||
|
|
||||||
u8 magic[4]; // Must be "NCSD"
|
u8 magic[4]; // Must be "NCSD"
|
||||||
ncsd.file.seek(0x100);
|
ncsd.file.seek(0x100);
|
||||||
|
|||||||
Reference in New Issue
Block a user