mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-24 00:04:34 +01:00
lsteamclient: Restore some 64-bit struct layout conversions
This commit is contained in:
parent
01180245c6
commit
22354ec32f
3 changed files with 447 additions and 41 deletions
|
|
@ -1056,12 +1056,17 @@ def handle_struct(sdkver, struct):
|
|||
cb_table[cb_num] = (struct.type.get_size(), [])
|
||||
if l2w_handler_name64:
|
||||
cb_table64[cb_num] = (struct64.get_size(), [])
|
||||
else:
|
||||
cb_table64[cb_num] = (struct.type.get_size(), [])
|
||||
cb_table[cb_num][1].append((windows_struct.get_size(), struct_name))
|
||||
if l2w_handler_name64:
|
||||
cb_table64[cb_num][1].append((windows_struct64.get_size(), struct_name64))
|
||||
else:
|
||||
cb_table64[cb_num][1].append((windows_struct.get_size(), struct_name))
|
||||
|
||||
hfile = open("cb_converters.h", "a")
|
||||
hfile.write("struct %s;\n" % struct.displayname)
|
||||
if l2w_handler_name64:
|
||||
cb_table64[cb_num][1].append((windows_struct64.get_size(), struct_name64))
|
||||
hfile.write("#ifdef __i386__\n")
|
||||
hfile.write("struct win%s;\n" % struct_name)
|
||||
hfile.write("extern void %s(const struct %s *l, struct win%s *w);\n" % (l2w_handler_name, struct.displayname, struct_name))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue