883 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
39 lines
1.6 KiB
C
39 lines
1.6 KiB
C
/* Actual captured opcode metadata, no game function or synthetic native ACK. */
|
|
#include <windows.h>
|
|
#ifdef GW_LOG_DISCONNECT_FIXTURE
|
|
#include <stdint.h>
|
|
static unsigned closes,sends;
|
|
static struct {unsigned connection;} gw_wire_pipe_data={1};
|
|
static void close_pipe(unsigned error){(void)error;++closes;}
|
|
static int production_branch(uint32_t opcode,uint32_t body_size){
|
|
struct {uint32_t bytes;} descriptor={body_size+4},*v=&descriptor;
|
|
int error=0,index;
|
|
for(index=0;index<1;++index){
|
|
#include "log_disconnect_production_branch.inc"
|
|
++sends;
|
|
}
|
|
#include "log_disconnect_production_completion.inc"
|
|
return error;
|
|
}
|
|
void fixture_start(void){
|
|
if(production_branch(0x460007,4)||closes||sends)ExitProcess(1);
|
|
if(production_branch(0x460007,0)!=22||closes!=1||sends)ExitProcess(2);
|
|
if(production_branch(0x460007,3)!=22||closes!=2||sends)ExitProcess(3);
|
|
if(production_branch(0x460007,5)!=22||closes!=3||sends)ExitProcess(4);
|
|
if(production_branch(0x123456,4)||closes!=3||sends!=1)ExitProcess(5);
|
|
ExitProcess(0);
|
|
}
|
|
#else
|
|
#include "wine_wire_abi.h"
|
|
#ifndef GW_CAPTURED_SUSPEND_OPCODE
|
|
#error Captured native opcode is required
|
|
#endif
|
|
void fixture_start(void){
|
|
if(gw_native_far_control_kind(GW_CAPTURED_SUSPEND_OPCODE)!=GW_NATIVE_FAR_SUSPEND)ExitProcess(1);
|
|
if(gw_native_far_control_kind(0x450008)!=GW_NATIVE_FAR_NONE)ExitProcess(2);
|
|
if(gw_native_far_control_kind(0x460007)!=GW_NATIVE_FAR_NONE)ExitProcess(3);
|
|
if(gw_native_far_control_kind(GW_NATIVE_WORLD_PORT_RESPONSE)!=GW_NATIVE_FAR_WORLDPORT)ExitProcess(4);
|
|
ExitProcess(0);
|
|
}
|
|
#endif
|