compatibilitytool.vdf: Make sure internal tool name includes 'proton'.

This matters for builds dropped into compatibilitytools.d/. Steam uses
the internal tool name to detect it's Proton and alters some behavior
regarding how cloud saves work.

Not including Proton in the name may lead to confusing behavior
regarding saves where they are present on some builds but vanish on the
other, only to reappear when switching back.
This commit is contained in:
Arkadiusz Hiler
2025-01-07 12:35:40 +02:00
parent 5c3d790afd
commit 82eb00515f
3 changed files with 11 additions and 4 deletions

View File

@@ -1080,8 +1080,9 @@ all-dist: $(DIST_TOOLMANIFEST)
COMPAT_MANIFEST_TEMPLATE := $(SRCDIR)/compatibilitytool.vdf.template
DIST_COMPAT_MANIFEST := $(DST_BASE)/compatibilitytool.vdf
INTERNAL_TOOL_NAME ?= $(BUILD_NAME)-proton
$(DIST_COMPAT_MANIFEST): $(COMPAT_MANIFEST_TEMPLATE) | $(DST_DIR)
sed -r 's|##BUILD_NAME##|$(BUILD_NAME)|' $< > $@
sed -r -e 's|##BUILD_NAME##|$(BUILD_NAME)|' -e 's|##INTERNAL_TOOL_NAME##|$(INTERNAL_TOOL_NAME)|' $< > $@
all-dist: $(DIST_COMPAT_MANIFEST)