MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / call_native

Function call_native

900v3/frontend.js:10–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8var base = 0x9111110000;
9
10function call_native()
11{
12 write_ptr_at(base+0x10, mailbox.idx);
13 write_ptr_at(base+0x18, mailbox.action);
14 write_mem(base+0x20, mailbox.account_id);
15 var ss = unescape(encodeURIComponent(mailbox.account_name)).substring(0, 16);
16 var sb = [];
17 for(var i = 0; i < ss.length; i++)
18 sb.push(ss.charCodeAt(i));
19 sb.push(0);
20 write_mem(base+0x28, sb);
21 pivot(base);
22 mailbox.idx = read_ptr_at(base+0x10);
23 mailbox.action = read_ptr_at(base+0x18);
24 mailbox.account_id = read_mem(base+0x20, 8);
25 sb = read_mem(base+0x28, 17);
26 ss = '';
27 for(var i = 0; sb[i]; i++)
28 ss += String.fromCharCode(sb[i]);
29 mailbox.account_name = decodeURIComponent(escape(ss));
30}
31
32function makeUI()
33{

Callers 2

fetchAccountFunction · 0.70
activateAccountFunction · 0.70

Calls 5

pivotFunction · 0.70
write_ptr_atFunction · 0.50
write_memFunction · 0.50
read_ptr_atFunction · 0.50
read_memFunction · 0.50

Tested by

no test coverage detected