mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00:00
EXI: Allow reading memory card data directly in CEXIMemoryCard.
This commit is contained in:
parent
1ba8541da9
commit
5b8c07a190
2 changed files with 10 additions and 0 deletions
|
@ -172,6 +172,14 @@ CEXIMemoryCard::GetGCIFolderPath(Slot card_slot, AllowMovieFolder allow_movie_fo
|
|||
return {Config::GetGCIFolderPath(card_slot, region), true};
|
||||
}
|
||||
|
||||
s32 CEXIMemoryCard::ReadFromMemcard(u32 memcard_offset, s32 length, u8* dest_address) const
|
||||
{
|
||||
if (!m_memory_card)
|
||||
return 0;
|
||||
|
||||
return m_memory_card->Read(memcard_offset, length, dest_address);
|
||||
}
|
||||
|
||||
void CEXIMemoryCard::SetupGciFolder(const Memcard::HeaderData& header_data)
|
||||
{
|
||||
const std::string& game_id = SConfig::GetInstance().GetGameID();
|
||||
|
|
|
@ -64,6 +64,8 @@ public:
|
|||
static std::pair<std::string /* path */, bool /* migrate */>
|
||||
GetGCIFolderPath(Slot card_slot, AllowMovieFolder allow_movie_folder, Movie::MovieManager& movie);
|
||||
|
||||
s32 ReadFromMemcard(u32 memcard_offset, s32 length, u8* dest_address) const;
|
||||
|
||||
private:
|
||||
void SetupGciFolder(const Memcard::HeaderData& header_data);
|
||||
void SetupRawMemcard(u16 size_mb);
|
||||
|
|
Loading…
Add table
Reference in a new issue