Clean up smdh getting
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#include <vector>
|
||||
|
||||
#include "helpers.hpp"
|
||||
|
||||
class Pandroid {
|
||||
public:
|
||||
static void onSmdhLoaded(const std::vector<u8>& smdh);
|
||||
};
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user