Rev | Line | |
---|
[185] | 1 | #!/bin/sh
|
---|
| 2 | cd dat/original
|
---|
| 3 | if [ ! -e ../../../GameDataFolder ]
|
---|
| 4 | then
|
---|
| 5 | echo "Can't find GameDataFolder!"
|
---|
| 6 | echo "Make sure this is Oni/nikanabo"
|
---|
| 7 | else
|
---|
| 8 | echo "GameDataFolder detected!"
|
---|
| 9 | if [ -e backupok.txt ]
|
---|
| 10 | then
|
---|
| 11 | echo "Game content already backed up."
|
---|
| 12 | else
|
---|
| 13 | echo "Backing up game content..."
|
---|
| 14 | cp ../../../GameDataFolder/*.dat .
|
---|
| 15 | cp ../../../GameDataFolder/*.raw .
|
---|
| 16 | cp ../../../GameDataFolder/*.sep .
|
---|
| 17 | echo "Game content backup complete."
|
---|
| 18 | mv nobackup.txt backupok.txt
|
---|
| 19 | fi
|
---|
| 20 | fi
|
---|
| 21 | cd ../..
|
---|
| 22 | cd bsl/mybackup
|
---|
| 23 | if [ ! -e ../../../GameDataFolder/IGMD ]
|
---|
| 24 | then
|
---|
| 25 | echo "Can't find IGMD folder!"
|
---|
| 26 | echo "Make sure this is Oni/nikanabo"
|
---|
| 27 | else
|
---|
| 28 | echo "IGMD folder detected!"
|
---|
| 29 | if [ -e backupok.txt ]
|
---|
| 30 | then
|
---|
| 31 | echo "Level logic already backed up."
|
---|
| 32 | else
|
---|
| 33 | echo "Backing up level logic..."
|
---|
| 34 | cp -r ../../../GameDataFolder/IGMD IGMD
|
---|
| 35 | echo "Level logic backup complete."
|
---|
| 36 | mv nobackup.txt backupok.txt
|
---|
| 37 | fi
|
---|
| 38 | fi
|
---|
| 39 | cd ../..
|
---|
Note:
See
TracBrowser
for help on using the repository browser.