175 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
32 lines
1.3 KiB
C
32 lines
1.3 KiB
C
/*70334 laboratory observer: Windows x64 ABI and Windows unwind metadata.
|
|
* No CRT, sockets, credentials, Lua allocations, synthetic state or Linux calls.
|
|
* The original C_Login.IsLoginReady function and its return values are retained.
|
|
*/
|
|
typedef unsigned int u32;
|
|
typedef unsigned long long u64;
|
|
typedef int (*LuaFunction)(void *);
|
|
typedef int (*GetTop)(void *);
|
|
struct Bridge {
|
|
u32 abi, size;
|
|
volatile u32 stage, result_count, balanced, input_count;
|
|
u64 original_callback;
|
|
u32 report_length, reserved;
|
|
char report[16384];
|
|
};
|
|
__declspec(dllexport) struct Bridge gw_bridge_data={1,sizeof(struct Bridge)};
|
|
__declspec(dllexport) int gw_bridge_abi(void) {return 1;}
|
|
__declspec(dllexport) int gw_bridge_callback(void *state) {
|
|
GetTop get_top=(GetTop)0x144597980ULL;
|
|
int results,before;
|
|
gw_bridge_data.stage=1;
|
|
if(!state || !gw_bridge_data.original_callback)return 0;
|
|
before=get_top(state);gw_bridge_data.input_count=(u32)before;
|
|
results=((LuaFunction)gw_bridge_data.original_callback)(state);
|
|
gw_bridge_data.result_count=(u32)results;gw_bridge_data.stage=2;
|
|
gw_bridge_data.balanced=get_top(state)==before+results;
|
|
gw_bridge_data.stage=8;
|
|
return results;
|
|
}
|
|
/* A real DIR64 relocation makes this DLL independently relocatable. */
|
|
__declspec(dllexport) LuaFunction gw_bridge_anchor=gw_bridge_callback;
|