mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-07 11:31:39 +12:00
Clean up smdh getting
This commit is contained in:
parent
74e8f7d4eb
commit
3aa977c6c5
9 changed files with 45 additions and 52 deletions
include
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue