forked from Doc22/birthstones-mod
-
Notifications
You must be signed in to change notification settings - Fork 1
/
update in C games Minetest games subgametest from 8bit.bat
32 lines (30 loc) · 1.33 KB
/
update in C games Minetest games subgametest from 8bit.bat
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
SET SOURCE_PATH=.\textures
IF NOT EXIST "%SOURCE_PATH%" GOTO ENDNOSOURCE
SET SOURCE_PATH=.\etc\8bit
IF NOT EXIST "%SOURCE_PATH%" GOTO ENDNOSOURCE
SET MT_PATH=C:\games\Minetest
IF NOT EXIST "%MT_PATH%" GOTO ENDNOMINETEST
SET MT_GAMES_PATH=%MT_PATH%\games
SET MT_GAME_PATH=%MT_GAMES_PATH%\subgametest
echo "subgametest is minetest_game, plus: birthstones, unified_inventory"
IF NOT EXIST "%MT_GAME_PATH%" GOTO ENDNOGAME
SET MODS_PATH=%MT_GAME_PATH%\mods
SET MOD_DEST_PATH=%MODS_PATH%\birthstones
IF NOT EXIST "%MOD_DEST_PATH%" md "%MOD_DEST_PATH%"
copy *.* "%MOD_DEST_PATH%\"
IF NOT EXIST "%MOD_DEST_PATH%\textures" md "%MOD_DEST_PATH%\textures"
copy /y .\textures\*.* "%MOD_DEST_PATH%\textures"
copy /y .\etc\8bit\*.* "%MOD_DEST_PATH%\textures"
GOTO ENDSILENTLY
:ENDNOMINETEST:
echo "Minetest is not installed at %MT_PATH% -- extract minetest there first or edit this batch file in your favorite text editor and edit the value for MT_PATH.
pause
GOTO ENDSILENTLY
:ENDNOGAME
echo "Subgame %MT_ENLIVEN_PATH% is not installed -- extract that subgame there first or edit this batch file in your favorite text editor and edit the value for MT_GAME_PATH.
pause
GOTO ENDSILENTLY
:ENDNOSOURCE
echo "Missing source folder '%SOURCE_PATH%'. You must extract all files and run from a drive letter, so that textures folder is in current working directory"
pause
:ENDSILENTLY