2
0
mirror of https://github.com/ValveSoftware/Proton synced 2025-08-31 06:35:23 +00:00

lsteamclient: Add ISteamNetworkingUtils support

This commit is contained in:
Andrew Eikum
2019-05-17 09:33:44 -05:00
parent 649421bf26
commit e94250ae57
8 changed files with 388 additions and 9 deletions

View File

@@ -140,6 +140,9 @@ files = [
("isteamnetworkingsocketsserialized.h", [
"ISteamNetworkingSocketsSerialized"
]),
("isteamnetworkingutils.h", [
"ISteamNetworkingUtils"
]),
]
aliases = {
@@ -173,6 +176,8 @@ manually_handled_structs = [
#}
struct_conversion_cache = {}
converted_structs = []
# callback classes for which we have a linux wrapper
wrapped_classes = [
"ISteamMatchmakingServerListResponse",
@@ -694,7 +699,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
cfile.write("} %s;\n\n" % winclassname)
methods = []
for child in children:
if child.kind == clang.cindex.CursorKind.CXX_METHOD:
if child.kind == clang.cindex.CursorKind.CXX_METHOD and \
child.is_virtual_method():
handle_method(cfile, classnode.spelling, winclassname, cppname, child, cpp, cpp_h, methods)
elif child.kind == clang.cindex.CursorKind.DESTRUCTOR:
methods.append(handle_destructor(cfile, classnode.spelling, winclassname, child))
@@ -783,6 +789,11 @@ def handle_struct(sdkver, struct):
return
struct_name = "%s_%s" % (struct.displayname, sdkver)
if struct_name in converted_structs:
return
converted_structs.append(struct_name)
w2l_handler_name = "win_to_lin_struct_%s" % struct_name;
l2w_handler_name = "lin_to_win_struct_%s" % struct_name;