mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-04-26 02:02:25 -05:00
Now LinkRawWireless_demo can perform ghost sends
This commit is contained in:
parent
97adf6a8b0
commit
c6b399f5b2
|
|
@ -378,7 +378,7 @@ Let's call these `BroadcastReadStart`, `BroadcastReadPoll`, and `BroadcastReadEn
|
|||
- **Host**: `ReceiveData`
|
||||
- Receives `{rcvHeader}`, 20
|
||||
|
||||
🔁 This command can also be used with one header and **no data**. In this case, it will resend the last N bytes (based on the header) of the last packet. Until we have a better name, we'll call this **ghost sends**.
|
||||
🔁 This command can also be used with one header and **no data**. In this case, it will resend the last N bytes (based on the header), up to 4. This is probably just garbage that stays in the hardware buffer, but since clients cannot take initiative, some games send 1 byte and no data on the server side to let clients talk. Until we have a better name, we'll call this **ghost sends**.
|
||||
|
||||
#### SendDataWait - `0x25`
|
||||
|
||||
|
|
|
|||
|
|
@ -933,6 +933,10 @@ std::vector<u32> DebugScene::selectDataToSend() {
|
|||
|
||||
data.push_back(bytes);
|
||||
|
||||
if (selectOption(">> Include data?", std::vector<std::string>{"yes", "no"}) ==
|
||||
1)
|
||||
return data;
|
||||
|
||||
u32 words = (bytes + 3) / 4;
|
||||
for (u32 i = 0; i < (u32)words; i++) {
|
||||
int word = selectU32("Word " + std::to_string(i + 1) + "/" +
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user