mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Change copy_n to copy and update the save state version because I forgot.
This commit is contained in:
parent
11a4c92325
commit
15936cb995
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue