From 87b0476b7e5844a6cc355612aeb262fd20f3cc30 Mon Sep 17 00:00:00 2001 From: Lyle Mantooth Date: Sat, 4 Jun 2022 09:36:08 -0400 Subject: [PATCH] Make it easy to generate necessary artifacts to run enemize-rs. Maybe these files could be committed? It's not like they'll change very often. But maybe there's copyrighted material in them I haven't noticed. --- .gitignore | 5 +++-- prepare.sh | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 prepare.sh diff --git a/.gitignore b/.gitignore index ade3621..23fb76a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target -exported_symbols.txt -patchData.json +asar_symbols.txt +base_patch.json +enemizer_base_patch.json diff --git a/prepare.sh b/prepare.sh new file mode 100644 index 0000000..ecb6269 --- /dev/null +++ b/prepare.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +if [[ ! -s base_patch.json || ! -s asar_symbols.txt ]]; then +cargo run -p bin_comp -- assembly/src/main.asm base_patch.json asar_symbols.txt +fi +if [[ ! -s enemizer_base_patch.json ]]; then +cargo run -p base_patch_generator -- "$1" base_patch.json asar_symbols.txt enemizer_base_patch.json +fi