mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 22:56:52 +01:00
EXI: Allow reading memory card data directly in CEXIMemoryCard.
This commit is contained in:
parent
1ba8541da9
commit
5b8c07a190
@ -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…
x
Reference in New Issue
Block a user