mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-18 11:41:31 +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 <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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue