Skip to content

Commit

Permalink
Update INF files.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboddie committed Mar 4, 2024
1 parent 990c342 commit 4e768cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Fixes/Lunar_Rescue/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ fi

cp "$1" "$2"
UEFtrans.py "$1" extract 0,1,2,3 temp
UEFtrans.py "$2" remove 3
UEFtrans.py "$2" remove 2,3
python3 patch_file.py "$2"
UEFtrans.py "$2" append temp/Lunar2
UEFtrans.py "$2" append temp/Lunar33

rm -r temp
#rm -r temp
3 changes: 1 addition & 2 deletions Fixes/Lunar_Rescue/patch_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
open("temp/Lunar33", "wb").write(t)

t = open("temp/Lunar3\xc3.inf", "rb").read()
t = t.replace(b"\xc3", b"3")
open("temp/Lunar33.inf", "wb").write(t)

os.system("UEFtrans.py " + shlex.quote(sys.argv[1]) + " insert 3 temp/Lunar33")

0 comments on commit 4e768cf

Please sign in to comment.