From 9c15f1058d54fcfbf6aba7ca6c1296e22c31c15f Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Fri, 6 Nov 2026 19:35:13 +0000 Subject: de-"obfuscate" the generator... Literally a waste of my time. --- src/steamvr_patches/template.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/steamvr_patches/template.py') diff --git a/src/steamvr_patches/template.py b/src/steamvr_patches/template.py index 4f88b10..2af1422 100644 --- a/src/steamvr_patches/template.py +++ b/src/steamvr_patches/template.py @@ -29,12 +29,9 @@ import stat import subprocess import sys import tempfile -from base64 import b85decode from dataclasses import dataclass from io import BytesIO -from json import loads as json_loads from pathlib import Path -from zlib import decompress NAME = Path(__file__).name MARKER = b"Valve, please fix." @@ -84,12 +81,8 @@ class Patch: raise ValueError("patched file checksum mismatch") return patched + MARKER - -def decode_patch_data(data: bytes) -> dict: - return json_loads(decompress(b85decode(data))) - - -# Just to keep the file small, not for obfuscation. +# Please refer to the source code (linked at the top of this file) if you want +# to know how this data was generated PATCH_DATA = {} PATCHES: dict[str, Patch] = { path: Patch.from_dict(data) for path, data in PATCH_DATA.items() -- cgit v1.3.1