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

lsteamclient: Sort classes by their version string.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon
2023-09-20 23:58:12 +02:00
parent 430cf3601a
commit f6ebb7f506
26 changed files with 43437 additions and 43439 deletions

View File

@@ -1001,9 +1001,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
constructors.write(f"extern void *create_{winclassname}(void *);\n")
constructors = open("win_constructors_table.dat", "a")
constructors.write(f" {{\"{version}\", &create_{winclassname}}},\n")
for alias in VERSION_ALIASES.get(version, []):
constructors.write(f" {{\"{alias}\", &create_{winclassname}}}, /* alias */\n")
constructors.write(f" {{\"{version}\", &create_{winclassname}}},\n")
generated_cb_handlers = []
@@ -1334,7 +1334,7 @@ print('parsing SDKs... 100%')
all_classes = {}
for i, sdkver in enumerate(SDK_VERSIONS):
for i, sdkver in enumerate(reversed(SDK_VERSIONS)):
print(f'enumerating classes... {i * 100 // len(SDK_VERSIONS)}%', end='\r')
index, _ = all_records[sdkver]['u32']
versions = all_versions[sdkver]
@@ -1346,13 +1346,11 @@ for i, sdkver in enumerate(SDK_VERSIONS):
classes = filter(lambda c: c.spelling[1:].upper() in versions, classes)
classes = {versions[c.spelling[1:].upper()]: (sdkver, c) for c in classes}
for k, v in classes.items():
if k not in all_classes:
all_classes[k] = v
all_classes.update(classes)
print('enumerating classes... 100%')
for version, tuple in all_classes.items():
for version, tuple in sorted(all_classes.items()):
sdkver, klass = tuple
linux_build32, linux_structs32 = all_records[sdkver]['u32']