mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Change copy_n to copy and update the save state version because I forgot.
This commit is contained in:
@ -526,7 +526,7 @@ void CWII_IPC_HLE_Device_usb_oh1_57e_305::ACLPool::Store(const u8* data, const u
|
|||||||
m_queue.push_back(Packet());
|
m_queue.push_back(Packet());
|
||||||
auto& packet = m_queue.back();
|
auto& packet = m_queue.back();
|
||||||
|
|
||||||
std::copy_n(data, size, packet.data);
|
std::copy(data, data + size, packet.data);
|
||||||
packet.size = size;
|
packet.size = size;
|
||||||
packet.conn_handle = conn_handle;
|
packet.conn_handle = conn_handle;
|
||||||
}
|
}
|
||||||
@ -547,7 +547,7 @@ void CWII_IPC_HLE_Device_usb_oh1_57e_305::ACLPool::WriteToEndpoint(CtrlBuffer& e
|
|||||||
pHeader->length = size;
|
pHeader->length = size;
|
||||||
|
|
||||||
// Write the packet to the buffer
|
// Write the packet to the buffer
|
||||||
std::copy_n(data, pHeader->length, (u8*)pHeader + sizeof(hci_acldata_hdr_t));
|
std::copy(data, data + size, (u8*)pHeader + sizeof(hci_acldata_hdr_t));
|
||||||
|
|
||||||
endpoint.SetRetVal(sizeof(hci_acldata_hdr_t) + size);
|
endpoint.SetRetVal(sizeof(hci_acldata_hdr_t) + size);
|
||||||
|
|
||||||
|
@ -70,8 +70,8 @@ static Common::Event g_compressAndDumpStateSyncEvent;
|
|||||||
|
|
||||||
static std::thread g_save_thread;
|
static std::thread g_save_thread;
|
||||||
|
|
||||||
// Don't forget to increase this after doing changes on the savestate system
|
// Don't forget to increase this after doing changes on the savestate system
|
||||||
static const u32 STATE_VERSION = 10;
|
static const u32 STATE_VERSION = 11;
|
||||||
|
|
||||||
struct StateHeader
|
struct StateHeader
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user