Store program ID and expose it in Lua (#414)

This commit is contained in:
wheremyfoodat 2024-02-22 14:26:31 +00:00 committed by GitHub
parent 7b580ac80e
commit 6279ed699a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 66 additions and 22 deletions

View file

@ -275,6 +275,8 @@ private:
// File handle for reading the loaded ncch
IOFile CXIFile;
std::optional<u64> getProgramID();
u8* getDSPMem() { return dspRam; }
u8* getDSPDataMem() { return &dspRam[DSP_DATA_MEMORY_OFFSET]; }
u8* getDSPCodeMem() { return &dspRam[DSP_CODE_MEMORY_OFFSET]; }