mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-09 23:55:40 +12:00
clang doormat
This commit is contained in:
parent
187feb5772
commit
ef0ef45e94
1 changed files with 57 additions and 56 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue