aboutsummaryrefslogtreecommitdiffstats
path: root/src/steamvr_patches/template.py
diff options
context:
space:
mode:
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()