clang doormat

This commit is contained in:
wheremyfoodat 2023-07-06 16:24:23 +03:00
parent 187feb5772
commit ef0ef45e94

View file

@ -1,6 +1,8 @@
#include "loader/ncsd.hpp"
#include <cstring>
#include <optional>
#include "loader/ncsd.hpp"
#include "memory.hpp"
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) {
NCSD ncsd;
if (!ncsd.file.open(path, "rb"))
return std::nullopt;
if (!ncsd.file.open(path, "rb")) return std::nullopt;
u8 magic[4]; // Must be "NCSD"
ncsd.file.seek(0x100);