| 80 | } |
| 81 | |
| 82 | int FCEUNET_SendCommand(uint8 cmd, uint32 len) |
| 83 | { |
| 84 | //mbg merge 7/17/06 changed to alloca |
| 85 | //uint8 buf[numlocal + 1 + 4]; |
| 86 | uint8 *buf = (uint8*)alloca(numlocal+1+4); |
| 87 | |
| 88 | |
| 89 | buf[0] = 0xFF; |
| 90 | FCEU_en32lsb(&buf[numlocal], len); |
| 91 | buf[numlocal + 4] = cmd; |
| 92 | if(!FCEUD_SendData(buf,numlocal + 1 + 4)) |
| 93 | { |
| 94 | NetError(); |
| 95 | return(0); |
| 96 | } |
| 97 | return(1); |
| 98 | } |
| 99 | |
| 100 | void FCEUI_NetplayText(uint8 *text) |
| 101 | { |
no test coverage detected