mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-26 05:24:21 +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)
|
bool Network::AppendScreenshot(NetworkUpdatePeerInfo *pi)
|
||||||
{
|
{
|
||||||
NetworkUpdateDataStore *dsu;
|
NetworkUpdateRegisterData *dsu;
|
||||||
NetworkUpdate *ud;
|
NetworkUpdate *ud;
|
||||||
SDL_Surface *scr;
|
SDL_Surface *scr;
|
||||||
struct ds_data *data;
|
struct ds_data *data;
|
||||||
@ -970,8 +970,8 @@ bool Network::AppendScreenshot(NetworkUpdatePeerInfo *pi)
|
|||||||
if (!data)
|
if (!data)
|
||||||
goto out_png;
|
goto out_png;
|
||||||
ud = InitNetworkUpdate(this->ud, REGISTER_DATA,
|
ud = InitNetworkUpdate(this->ud, REGISTER_DATA,
|
||||||
sizeof(NetworkUpdate) + sizeof(NetworkUpdateDataStore) + sz);
|
sizeof(NetworkUpdate) + sizeof(NetworkUpdateRegisterData) + sz);
|
||||||
dsu = (NetworkUpdateDataStore *)ud->data;
|
dsu = (NetworkUpdateRegisterData *)ud->data;
|
||||||
dsu->key = data->key;
|
dsu->key = data->key;
|
||||||
dsu->metadata = data->metadata;
|
dsu->metadata = data->metadata;
|
||||||
memcpy(dsu->data, data->data, sz);
|
memcpy(dsu->data, data->data, sz);
|
||||||
|
@ -107,7 +107,7 @@ struct NetworkUpdatePingAck
|
|||||||
uint8 data[]; /* Only used for bandwidth ping/acks */
|
uint8 data[]; /* Only used for bandwidth ping/acks */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct NetworkUpdateDataStore
|
struct NetworkUpdateRegisterData
|
||||||
{
|
{
|
||||||
uint32_t key;
|
uint32_t key;
|
||||||
uint32_t metadata; /* Type etc */
|
uint32_t metadata; /* Type etc */
|
||||||
|
Loading…
Reference in New Issue
Block a user