EXI_DeviceMemoryCard: Use std::array

This commit is contained in:
Léo Lam 2020-11-20 19:41:23 +01:00
parent f81062f561
commit f82145d9dd
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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;