This repository was archived by the owner on May 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate
More file actions
81 lines (61 loc) · 1.58 KB
/
Copy pathupdate
File metadata and controls
81 lines (61 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/bash
uplay="/mnt/c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/games"
ProcessFiles()
{
game="$1"
appid="$2"
while IFS= read -r file; do
echo dumping $file
if [[ $file == *.zip ]]; then
unzip -l "$uplay/$game/$file" > "$game/$file.txt"
else
strings "$uplay/$game/$file" > "$game/$file.txt"
fi
done < "$appid.txt"
}
ProcessTranslations()
{
game="$1"
translations="$2"
output="$3"
zipinfo -1 "$uplay/$game/$translations" | grep "mo" | while read file
do
echo dumping $(basename $file)
unzip -p "$uplay/$game/$translations" "$file" | msgunfmt > "$game/$output/$(basename $file).txt"
done
}
ProcessCodeSignature()
{
game="$1"
exe="$2"
echo verifying code signature...
osslsigncode verify "$uplay/$game/$exe" > "$game/$exe""_signature.txt"
}
ProcessClasses()
{
game="$1"
exe="$2"
echo dumping classes...
./class_dumper "$game" "$uplay/$game/$exe" > "$game/classes.md"
}
ProcessTrackmania()
{
game="Trackmania"
appid="5595"
echo processing "$game"...
mkdir -p "$game"
mkdir -p "$game/Packs"
mkdir -p "$game/Packs/Translations"
ProcessFiles "$game" "$appid"
ProcessTranslations "$game" "Packs/Translations.zip" "Packs/Translations"
ProcessCodeSignature "$game" "Trackmania.exe"
ProcessClasses "$game" "Trackmania.exe"
echo done
}
Commit()
{
git add --all
git -c user.name="NeKzBot" -c user.email="44978126+NeKzBot@users.noreply.github.com" commit -m "$(date --iso-8601)"
}
ProcessTrackmania
Commit