-
Notifications
You must be signed in to change notification settings - Fork 0
/
vpx_close.bat
55 lines (49 loc) · 1.5 KB
/
vpx_close.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
REM Call this batch file from Popper's Visual Pinball X Close Script. It should be the last line.
REM CALL [STARTDIR]Scripts\vpx_launch.bat "[DIREMU]" "[DIRGAME]" "[DIRROM]" "[GAMEFULLNAME]" "[GAMENAME]" "[GAMEEXT]" "[STARTDIR]" "[CUSTOM1]" "[CUSTOM2]" "[CUSTOM3]" "[ALTEXE]" "[ALTMODE]" "[MEDIADIR]" "[?ROM?]" "[?GameType?]"
REM Use shift since we have more than 9 parameters
REM Remove quotes from variables
SET DIREMU=%~1
SHIFT
SET DIRGAME=%~1
SHIFT
SET DIRROM=%~1
SHIFT
SET GAMEFULLNAME=%~1
SHIFT
SET GAMENAME=%~1
SHIFT
SET GAMEEXT=%~1
SHIFT
SET STARTDIR=%~1
SHIFT
SET CUSTOM1=%~1
SHIFT
SET CUSTOM2=%~1
SHIFT
SET CUSTOM3=%~1
SHIFT
SET ALTEXE=%~1
SHIFT
SET ALTMODE=%~1
SHIFT
SET MEDIADIR=%~1
SHIFT
REM ?game_field? entries...
SET ROM=%~1
SHIFT
SET GameType=%~1
SHIFT
ECHO VPX close script start>> "%STARTDIR%\scripts\logs\debug.log"
IF NOT "%ROM%"=="" (
ECHO Starting high score generation...>> "%STARTDIR%\scripts\logs\debug.log"
ECHO "%STARTDIR%Scripts\hiscore.bat" %ROM% "%GAMENAME%" "%GameType%">> "%STARTDIR%\scripts\logs\debug.log"
REM Generate HiScore media file
CALL "%STARTDIR%Scripts\hiscore.bat" %ROM% "%GAMENAME%" "%GameType%"
ECHO Completed high score generation>> "%STARTDIR%\scripts\logs\debug.log"
)
ECHO Restoring settings...>> "%STARTDIR%\scripts\logs\debug.log"
CALL "%STARTDIR%restore_settings.bat"
REM DEL "%STARTDIR%restore_settings.bat"
ECHO Settings have been restored.>> "%STARTDIR%\scripts\logs\debug.log"
ECHO VPX close script end>> "%STARTDIR%\scripts\logs\debug.log"
exit /B