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

lsteamclient: Use integer types instead of enums.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon
2023-09-14 16:22:47 +02:00
committed by Arkadiusz Hiler
parent 5aefaf36d8
commit b83f5fe79e
191 changed files with 1642 additions and 1642 deletions

View File

@@ -576,7 +576,7 @@ def declspec(decl, name):
if decl.kind in (TypeKind.UNEXPOSED, TypeKind.FUNCTIONPROTO):
return f'void{name}'
if decl.kind == TypeKind.ENUM:
return f'{decl.spelling.split("::")[-1]}{name}'
return f'uint{decl.get_size() * 8}_t{name}'
if param_needs_conversion(decl):
return f"win{decl.spelling}_{sdkver}{name}"