aboutsummaryrefslogtreecommitdiffstats
path: root/src/steamvr_patches/template.py
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2026-11-06 19:35:13 +0000
committerTomasz Kramkowski <tomasz@kramkow.ski>2026-11-06 19:35:13 +0000
commit9c15f1058d54fcfbf6aba7ca6c1296e22c31c15f (patch)
treeac6d9c8fea881bf40e72a8c504847ad191c39f70 /src/steamvr_patches/template.py
parentb84e767012fd6c9a47ff140a1616c25dfde3dc70 (diff)
downloadsteamvr-patches-9c15f1058d54fcfbf6aba7ca6c1296e22c31c15f.tar.gz
steamvr-patches-9c15f1058d54fcfbf6aba7ca6c1296e22c31c15f.tar.xz
steamvr-patches-9c15f1058d54fcfbf6aba7ca6c1296e22c31c15f.zip
de-"obfuscate" the generator...
Literally a waste of my time.
Diffstat (limited to 'src/steamvr_patches/template.py')
-rw-r--r--src/steamvr_patches/template.py11
1 files changed, 2 insertions, 9 deletions
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()