mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-09 12:31:40 +12:00
Clean up smdh getting
This commit is contained in:
parent
74e8f7d4eb
commit
3aa977c6c5
9 changed files with 45 additions and 52 deletions
|
@ -252,6 +252,17 @@ bool Emulator::loadELF(std::ifstream& file) {
|
|||
return true;
|
||||
}
|
||||
|
||||
std::span<u8> Emulator::getSMDH() {
|
||||
switch (romType) {
|
||||
case ROMType::NCSD:
|
||||
case ROMType::CXI:
|
||||
return memory.getCXI()->smdh;
|
||||
default: {
|
||||
return std::span<u8>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef PANDA3DS_ENABLE_DISCORD_RPC
|
||||
void Emulator::updateDiscord() {
|
||||
if (config.discordRpcEnabled) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue