Clean up smdh getting

This commit is contained in:
offtkp 2023-12-27 23:05:21 +02:00
parent 74e8f7d4eb
commit 3aa977c6c5
9 changed files with 45 additions and 52 deletions

View file

@ -3,6 +3,7 @@
#include <filesystem>
#include <fstream>
#include <optional>
#include <span>
#include "PICA/gpu.hpp"
#include "cheats.hpp"
@ -127,4 +128,6 @@ class Emulator {
std::filesystem::path getConfigPath();
std::filesystem::path getAndroidAppPath();
std::span<u8> getSMDH();
};

View file

@ -1,8 +0,0 @@
#include <vector>
#include "helpers.hpp"
class Pandroid {
public:
static void onSmdhLoaded(const std::vector<u8>& smdh);
};

View file

@ -65,6 +65,7 @@ struct NCCH {
std::vector<u8> saveData;
// The cart region. Only the CXI's region matters to us. Necessary to get past region locking
std::optional<Regions> region = std::nullopt;
std::vector<u8> smdh;
// Returns true on success, false on failure
// Partition index/offset/size must have been set before this