mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
EXI_DeviceMemoryCard: Use std::array
This commit is contained in:
@ -121,7 +121,7 @@ CEXIMemoryCard::CEXIMemoryCard(const int index, bool gci_folder,
|
|||||||
m_command = Command::NintendoID;
|
m_command = Command::NintendoID;
|
||||||
m_status = MC_STATUS_BUSY | MC_STATUS_UNLOCKED | MC_STATUS_READY;
|
m_status = MC_STATUS_BUSY | MC_STATUS_UNLOCKED | MC_STATUS_READY;
|
||||||
m_position = 0;
|
m_position = 0;
|
||||||
memset(m_programming_buffer, 0, sizeof(m_programming_buffer));
|
m_programming_buffer.fill(0);
|
||||||
// Nintendo Memory Card EXI IDs
|
// Nintendo Memory Card EXI IDs
|
||||||
// 0x00000004 Memory Card 59 4Mbit
|
// 0x00000004 Memory Card 59 4Mbit
|
||||||
// 0x00000008 Memory Card 123 8Mb
|
// 0x00000008 Memory Card 123 8Mb
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <array>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -99,7 +100,7 @@ private:
|
|||||||
Command m_command;
|
Command m_command;
|
||||||
int m_status;
|
int m_status;
|
||||||
u32 m_position;
|
u32 m_position;
|
||||||
u8 m_programming_buffer[128];
|
std::array<u8, 128> m_programming_buffer;
|
||||||
//! memory card parameters
|
//! memory card parameters
|
||||||
unsigned int m_card_id;
|
unsigned int m_card_id;
|
||||||
unsigned int m_address;
|
unsigned int m_address;
|
||||||
|
Reference in New Issue
Block a user