mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +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};
|
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)
|
void CEXIMemoryCard::SetupGciFolder(const Memcard::HeaderData& header_data)
|
||||||
{
|
{
|
||||||
const std::string& game_id = SConfig::GetInstance().GetGameID();
|
const std::string& game_id = SConfig::GetInstance().GetGameID();
|
||||||
|
|
|
@ -64,6 +64,8 @@ public:
|
||||||
static std::pair<std::string /* path */, bool /* migrate */>
|
static std::pair<std::string /* path */, bool /* migrate */>
|
||||||
GetGCIFolderPath(Slot card_slot, AllowMovieFolder allow_movie_folder, Movie::MovieManager& movie);
|
GetGCIFolderPath(Slot card_slot, AllowMovieFolder allow_movie_folder, Movie::MovieManager& movie);
|
||||||
|
|
||||||
|
s32 ReadFromMemcard(u32 memcard_offset, s32 length, u8* dest_address) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void SetupGciFolder(const Memcard::HeaderData& header_data);
|
void SetupGciFolder(const Memcard::HeaderData& header_data);
|
||||||
void SetupRawMemcard(u16 size_mb);
|
void SetupRawMemcard(u16 size_mb);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue