commit: d96b7cce263a34174bc3a1d954ff889acfbecc9a
parent 9891172570fa660caa9ad5a7eb0f7b1640debede
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 28 Dec 2022 00:17:49 +0100
Add support for Ren'Py Archives v1/v2/v3
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/deblob.1 b/deblob.1
@@ -81,6 +81,8 @@ OCaml bytecode and native binaries
Racket bytecode
.It
Emacs Lisp Bytecode
+.It
+Ren'Py Archives v1/v2/v3
.El
.Sh EXAMPLES
The following code block shows how it can be used in Gentoo's
diff --git a/main.ha b/main.ha
@@ -50,6 +50,10 @@ const magic: [_][]u8 = [
[';', 'E', 'L', 'C'], // Emacs lisp bytecode, if there is known false positives next 4 bytes is the version
['C', 'a', 'm', 'l', '1', '9', '9', '9'], // OCaml
+
+ [0x78, 0x9c], // Ren'Py Archive v1
+ ['R', 'P', 'A', '-', '2', '.', '0', ' '], // Ren'Py Archive v2
+ ['R', 'P', 'A', '-', '3', '.', '0', ' '], // Ren'Py Archive v3
];
const dos_magic: []u8 = ['M', 'Z'];
const pe_magic: []u8 = ['P', 'E', 0x00, 0x00];