mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 11:29:24 +01:00
Rename data packets
This commit is contained in:
parent
3c24a37ac3
commit
6e3a5d74e0
@ -950,7 +950,7 @@ bool Network::DecodeUpdate(C64Display *display, uint8 *js, MOS6581 *dst)
|
||||
|
||||
bool Network::AppendScreenshot(NetworkUpdatePeerInfo *pi)
|
||||
{
|
||||
NetworkUpdateDataStore *dsu;
|
||||
NetworkUpdateRegisterData *dsu;
|
||||
NetworkUpdate *ud;
|
||||
SDL_Surface *scr;
|
||||
struct ds_data *data;
|
||||
@ -970,8 +970,8 @@ bool Network::AppendScreenshot(NetworkUpdatePeerInfo *pi)
|
||||
if (!data)
|
||||
goto out_png;
|
||||
ud = InitNetworkUpdate(this->ud, REGISTER_DATA,
|
||||
sizeof(NetworkUpdate) + sizeof(NetworkUpdateDataStore) + sz);
|
||||
dsu = (NetworkUpdateDataStore *)ud->data;
|
||||
sizeof(NetworkUpdate) + sizeof(NetworkUpdateRegisterData) + sz);
|
||||
dsu = (NetworkUpdateRegisterData *)ud->data;
|
||||
dsu->key = data->key;
|
||||
dsu->metadata = data->metadata;
|
||||
memcpy(dsu->data, data->data, sz);
|
||||
|
@ -107,7 +107,7 @@ struct NetworkUpdatePingAck
|
||||
uint8 data[]; /* Only used for bandwidth ping/acks */
|
||||
};
|
||||
|
||||
struct NetworkUpdateDataStore
|
||||
struct NetworkUpdateRegisterData
|
||||
{
|
||||
uint32_t key;
|
||||
uint32_t metadata; /* Type etc */
|
||||
|
Loading…
Reference in New Issue
Block a user