Skip to content

Commit

Permalink
Don't blow up on LUA records, Linux binary recipe (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
hristoast authored Dec 26, 2023
1 parent 24ee281 commit 1e71138
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM debian:oldoldstable-20231218

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
libconfig-inifiles-perl libconvert-color-perl libfile-find-rule-perl libfile-homedir-perl libpar-packer-perl perl-tk

# Cleanup
RUN apt-get clean autoclean && \
apt-get autoremove --yes && \
rm -rf /var/lib/apt /var/lib/cache /var/lib/log

WORKDIR /mnt

CMD [ "pp", "-o", "waza_lightfixes.linux.x86_64", "waza_lightfixes.pl" ]
3 changes: 3 additions & 0 deletions make-linux-exe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
docker build . -t waza_lightfixes:0000
docker run --rm -v "$(pwd)":/mnt waza_lightfixes:0000
7 changes: 7 additions & 0 deletions waza_lightfixes.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2769,6 +2769,13 @@ sub unknown_data {
[RIDT => [["weight", "f"], ["value", "L"], ["uses", "L"], ["quality", "f"]]],
[SCRI => [["script", "Z*"]]],
]],
[LUAL => [
[LUAS => [["Script", "Z*"]]],
[LUAD => [["InitData", "Z*"]]],
[LUAF => [["Flag", "a32"], ["Types", "Z*"]]],
[LUAI => [["Instance", "a32"], ["Master", "a32"]]],
[LUAR => [["Record", "Z*"]]],
]],
[SCPT => [
[SCHD => [["id", ["Z32", "a32"]], ["num_shorts", "L"], ["num_longs", "L"], ["num_floats", "L"],
["data_size", "L"], ["local_var_size", "L"]]],
Expand Down

0 comments on commit 1e71138

Please sign in to comment.