-
Notifications
You must be signed in to change notification settings - Fork 10
/
update_include.sh
executable file
·199 lines (163 loc) · 5.75 KB
/
update_include.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
echo "Checking update_include script"
echo "Updating..."
if [ ! -f /home/pi/roms/gridlee.zip ];
then
echo "downloading gridlee"
wget http://socialcase.com/raspberrypi/gridlee.zip
mv gridlee.zip /home/pi/roms/
fi
###pisnes
if [ -f /home/pi/emulators/pisnes/snes9x.cfg ];
then
cp /home/pi/emulators/pisnes/snes9x.cfg /home/pi/emulators/pisnes/snes9x.cfg.bak
fi
wget http://sheasilverman.com/rpi/raspbian/installer/pisnes.zip
mkdir /home/pi/emulators/pisnes
mv pisnes.zip /home/pi/emulators/pisnes
cd /home/pi/emulators/pisnes
unzip -o pisnes.zip
chmod +x /home/pi/emulators/pisnes/snes9x
chmod +x /home/pi/emulators/pisnes/snes9x.gui
ln -s /home/pi/emulators/pisnes/roms/ /home/pi/roms/snes
if diff /home/pi/emulators/pisnes/snes9x.cfg /home/pi/emulators/pisnes/snes9x.cfg.bak >/dev/null ; then
echo "snes9x config is the same"
rm /home/pi/emulators/pisnes/snes9x.cfg.bak
else
echo "snes9x config is different. restoring custom config."
cp /home/pi/emulators/pisnes/snes9x.cfg /home/pi/emulators/pisnes/snes9x.cfg.base
mv /home/pi/emulators/pisnes/snes9x.cfg.bak /home/pi/emulators/pisnes/snes9x.cfg
fi
cd /home/pi/pimame_installer
###mame4all
git clone https://code.google.com/p/mame4all-pi/
mkdir /home/pi/emulators/mame4all-pi/
cp mame4all-pi/mame4all_pi.zip /home/pi/emulators/mame4all-pi/
cd /home/pi/emulators/mame4all-pi/
unzip -o mame4all_pi.zip
ln -s /home/pi/emulators/mame4all-pi/roms/ /home/pi/roms/mame4all
cd /home/pi/pimame_installer
rm -rf mame4all-pi/
###dgen
wget http://sheasilverman.com/rpi/raspbian/installer/dgen.zip
mv dgen.zip /home/pi/emulators/dgen.zip
cd /home/pi/emulators/
unzip -o dgen.zip
mkdir /home/pi/roms/genesis
rm dgen.zip
cd /home/pi/pimame_installer
chmod +x /home/pi/emulators/dgen-sdl-1.32/dgen
###cavestory
#wget http://sheasilverman.com/rpi/raspbian/installer/cavestory.zip
wget https://github.com/vanfanel/cavestory_rpi/archive/master.zip
mv master.zip /home/pi/emulators/cavestory.zip
cd /home/pi/emulators/
unzip -o cavestory.zip
rm cavestory.zip
cd /home/pi/pimame_installer
cp /home/pi/pimame_installer/config_files/cs.sh /home/pi/emulators/cs.sh
chmod +x /home/pi/emulators/cs.sh
chmod +x /home/pi/emulators/cavestory_rpi-master/nx
###scummvm
sudo apt-get -y install scummvm
###gameboy - thanks beta_tester
wget http://sheasilverman.com/rpi/raspbian/installer/gearboy.zip
#mkdir /home/pi/emulators/gearboy
mv gearboy.zip /home/pi/emulators/
cd /home/pi/emulators/
unzip -o gearboy.zip
rm gearboy.zip
cd /home/pi/pimame_installer
mkdir /home/pi/roms/gameboy
####gameboy advance
wget http://sheasilverman.com/rpi/raspbian/installer/gpsp.zip
mkdir /home/pi/emulators/gpsp
mv gpsp.zip /home/pi/emulators/gpsp
cd /home/pi/emulators/gpsp
unzip -o gpsp.zip
rm gpsp.zip
cd /home/pi/pimame_installer
mkdir /home/pi/roms/gameboyadvance
###xboxdriver
sudo apt-get -y install xboxdrv
####c64
wget http://sheasilverman.com/rpi/raspbian/installer/vice_2.3.21-1_armhf.deb
sudo dpkg -i vice_2.3.21-1_armhf.deb
rm -rf vice_2.3.21-1_armhf.deb
####fba
wget http://sheasilverman.com/rpi/raspbian/installer/piFBA.zip
mkdir /home/pi/emulators/fba
mv piFBA.zip /home/pi/emulators/fba
cd /home/pi/emulators/fba
unzip -o piFBA.zip
rm piFBA.zip
cd /home/pi/pimame_installer
ln -s /home/pi/emulators/fba/roms/ /home/pi/roms/fba
####mupen
wget http://sheasilverman.com/rpi/raspbian/mupen64plus-rpi.zip
#mkdir /home/pi/emulators/mupen
mv mupen64plus-rpi.zip /home/pi/emulators/
cd /home/pi/emulators/
unzip -o mupen64plus-rpi.zip
rm mupen64plus-rpi.zip
cd mupen64plus-rpi/test/
chmod +x mupen64plus
cd /home/pi/pimame_installer
mkdir /home/pi/roms/n64
####mess nes
wget http://sheasilverman.com/rpi/raspbian/debs/advancemess_0.102.0.1-1_armhf.deb
sudo dpkg --force-overwrite -i advancemess_0.102.0.1-1_armhf.deb
##############
if grep --quiet xboxdrv /home/pi/.profile; then
echo "xboxdrv already exists, ignoring."
else
echo 'sudo xboxdrv --silent --config /home/pi/pimame_files/xboxdrv_mapping.cfg --dbus session &' >> /home/pi/.profile
fi
##############
###dispmanx
#wget http://sheasilverman.com/rpi/raspbian/installer/SDL12-kms-dispmanx.zip
#unzip -o SDL12-kms-dispmanx.zip
#cd SDL12-kms-dispmanx
#sudo make install
#cd ..
#rm SDL12-kms-dispmanx.zip
#rm -rf SDL12-kms-dispmanx/
#cd PiMAME
#git checkout beta
#cd ..
cp PiMAME/pimame_files/menu.py /home/pi/pimame_files/menu.py
cp PiMAME/.advance/advmenu-snes.rc /home/pi/.advance/advmenu-snes.rc
cp PiMAME/.advance/advmenu-gameboy.rc /home/pi/.advance/advmenu-gameboy.rc
cp PiMAME/.advance/advmenu-nes.rc /home/pi/.advance/advmenu-nes.rc
mkdir /home/pi/.advance/image
mkdir /home/pi/.advance/image/nes
ln -s /home/pi/.advance/image/nes/ /home/pi/roms/nes
#http://pimame.org/forum/discussion/48/mame-settings-not-saving-in-new-installer-script-version-#Item_5 - User Cramps
sudo chown pi /home/pi/.advance
sudo chmod 770 /home/pi/.advance
##############pikeyd############
#wget http://sheasilverman.com/rpi/raspbian/installer/pikeyd.zip
#mv pikeyd.zip /home/pi/pimame_files
#cd /home/pi/pimame_files
#unzip -o pikeyd.zip
#mv pikeyd/pikeyd.conf ~/.pikeyd.conf
#if grep --quiet /home/pi/pimame_files/pikeyd /home/pi/.profile; then
# echo "pikeyd already exists, ignoring."
#else
# echo '/home/pi/pimame_files/pikeyd/pikeyd -d' >> /home/pi/.profile
#fi
#if sudo grep --quiet uinput /etc/modules; then
# echo "Modules have already been added"
#else
# sudo sh -c "echo 'uinput' >> /etc/modules"
# sudo sh -c "echo 'i2c-dev' >> /etc/modules"
#fi
#if sudo grep --quiet '^blacklist i2c-bcm2708$' /etc/modprobe.d/raspi-blacklist.conf ; then
# echo "Blacklisting i2c-bcm2708"
# sudo sed -i '/blacklist i2c-bcm2708/d' /etc/modprobe.d/raspi-blacklist.conf
# sudo sh -c "echo '#blacklist i2c-bcm2708' >> /etc/modprobe.d/raspi-blacklist.conf"
#else
# echo "Module already blacklisted"
#fi
###########
#increment
echo "PiMAME is now version 0.7.10"