/
DOOM - 1.sh
61 lines (54 loc) · 3.47 KB
/
DOOM - 1.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
#!/bin/bash
# +------------------------------------------------------------------------------------+
# | Launch Doom, Doom2, Plutonia, TNT-Evilution and other WAD files rel. 07/15/17 |
# | Prerequisites: |
# | 1. PrBOOM working on your Pie |
# | 2. WAD files of doom, doom2, tnt... |
# | 3. Working zip! If not type "sudo apt install zip" |
# | |
# +------------------------------------------------------------------------------------+
# | |
# | Why: |
# | I think it's better to have a collection of all doom files in one folder and you |
# | don't not have to mess around with symlinking and copy of prboom.wad. |
# | So this will automate save game working in the same destination folder via zipping |
# | |
# | How to: |
# | In your base folder ~/RetroPie/roms/doom/ copy all your WAD files you want to run |
# | |
# | Check settings in Synopsis! |
# | Check if path locations is correct |
# | Check if wadfile settings load correct edition! |
# | Save variable is autogenerated by wadfilename, you can change if you don't like |
# | |
# +------------------------------------------------------------------------------------+
# | |
# | !!old but not outdated!! |
# | |
# +------------------------------------------------------------------------------------+
# | v1.0: initial release based on https://github.com/crcerror/launch-quake-packs-RP |
# +------------------------------------------------------------------------------------+
# ------------------------------- Settings area ----------------------------------------
# Synopsis - Douple Check pathes and settings
#
# path variable should not end with slash!
# doom1.wad loads all versions of DOOM and Final DOOM
# doom2.wad loads all versions of DOOM II
# tnt.wad loads extra TNT-Evilution
# plutonia.wad loads Mission Pack 2
#------------
path="/home/pi/RetroPie/roms/ports/doom"
wadfile="doom1.wad"
# --------------------------------------------------------------------------------------
#
# Is file definated really available?
#------------
if ! [ -e "${path}/$wadfile" ]; then
echo "Error! ${path}/$wadfile not found!"
echo "Please resolve problem in script or install file!"
sleep 10
exit
fi
unzip -qq -o "${path}/savegames_${wadfile%.*}.zip" -d "$path"
"/opt/retropie/supplementary/runcommand/runcommand.sh" 0 _PORT_ "doom" "${path}/$wadfile"
cd "$path" && zip -mj "savegames_${wadfile%.*}.zip" prbmsav?.dsg