Clean up smdh getting

This commit is contained in:
offtkp
2023-12-28 00:28:19 +02:00
parent 74e8f7d4eb
commit 3aa977c6c5
9 changed files with 45 additions and 52 deletions
+3
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();
};
-8
View File
@@ -1,8 +0,0 @@
#include <vector>
#include "helpers.hpp"
class Pandroid {
public:
static void onSmdhLoaded(const std::vector<u8>& smdh);
};
+1
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