-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathload.liddle
More file actions
executable file
·34 lines (26 loc) · 1.02 KB
/
load.liddle
File metadata and controls
executable file
·34 lines (26 loc) · 1.02 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
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/scripts/working/Liddle
function loadFile {
# --------------------------------------------------
# Function to load saved progress
# Ignores any arguments given
# --------------------------------------------------
# If the save file exists
if [ -r "${core[DIR]}${core[PROGNAME]}.end" ]; then
# Tell core to load file
loadfile="true"
# If the save file does not exist
else
# Throw an error message and exit without saving
echo ""
echo "---------------------------------------------------"
echo " FATAL ERROR "
echo "---------------------------------------------------"
echo ""
echo "Cannot find or cannot access saved progress file"
echo "Exiting..."
echo "---------------------------------------------------"
echo ""
exit 1
fi
}