EXI_DeviceMemoryCard: Use std::array
This commit is contained in:
parent
f81062f561
commit
f82145d9dd
|
@ -121,7 +121,7 @@ CEXIMemoryCard::CEXIMemoryCard(const int index, bool gci_folder,
|
|||
m_command = Command::NintendoID;
|
||||
m_status = MC_STATUS_BUSY | MC_STATUS_UNLOCKED | MC_STATUS_READY;
|
||||
m_position = 0;
|
||||
memset(m_programming_buffer, 0, sizeof(m_programming_buffer));
|
||||
m_programming_buffer.fill(0);
|
||||
// Nintendo Memory Card EXI IDs
|
||||
// 0x00000004 Memory Card 59 4Mbit
|
||||
// 0x00000008 Memory Card 123 8Mb
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
@ -99,7 +100,7 @@ private:
|
|||
Command m_command;
|
||||
int m_status;
|
||||
u32 m_position;
|
||||
u8 m_programming_buffer[128];
|
||||
std::array<u8, 128> m_programming_buffer;
|
||||
//! memory card parameters
|
||||
unsigned int m_card_id;
|
||||
unsigned int m_address;
|
||||
|
|
Loading…
Reference in New Issue