-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexiso.sh
69 lines (52 loc) · 1.8 KB
/
exiso.sh
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
#!/bin/sh
## Script to extract and patch retail iso files designed for the Microsoft Xbox 360 Console and convert them for use with a Devkit
## Written by Luke Mellor
## Set some variables
isopath="Downloads/Finished/Games/XBOX360/ISO/"
filespath="XBOX360-EXT/Games/"
## Decide which iso to extract
filename=`zenity --file-selection --title="Select the iso to extract" --filename=$HOME/$isopath/`
case $? in
1)
zenity --info --text="No file selected.";;
-1)
zenity --info --text="An unexpected error has occurred.";;
esac
## Decide where to extract to
dest=`zenity --file-selection --title="Select the destination folder" --directory --filename=$HOME/$filespath/`
case $? in
1)
zenity --info --text="No file selected.";;
-1)
zenity --info --text="An unexpected error has occurred.";;
esac
## Name the game
name=`zenity --entry --title="Name your game" --text="Enter title of the game" --entry-text "${dest##*/}" --width="500"`
zenity --question \
--title="Are these details correct?" \
--text="<b>name:</b> $name
<b>iso:</b> $filename
<b>destination:</b> $dest"
case $? in
0)
## extract the file
(extract-xiso/extract-xiso -x "$filename" -d "$dest" && find "$dest" -name "*.xex" -exec wine winbins/xextool.exe -ra -md {} \; && find "$dest" -name "*.dll" -exec wine winbins/xextoo$
if [ "$?" = -1 ] ; then
zenity --error \
--text="Extraction canceled."
fi
;;
1)
zenity --info --text="User Cancelled"
;;
-1)
zenity --info --text="An unexpected error has occurred."
;;
esac
zenity --info \
--text="Finished extracting $name
As requested you will find it in:
$dest
It has been patched for devkit and renamed for you.
The cake was a lie"
exit