-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathap-type-checker.bat
executable file
·50 lines (45 loc) · 1.48 KB
/
ap-type-checker.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
@echo off
echo DuckStation AP Type Checker v1.0.1 For Windows
echo By Alex Free
set argC=0
for %%x in (%*) do Set /A argC+=1
IF NOT "%argC%" == "2" (
echo Error: Incorrect number of arguments given to %0%.
echo Usage:
echo %0% ^<DuckStation executable file^> ^<PSX game cue file^>
echo.
cmd /k
)
IF NOT EXIST "%~f1" (
echo Error: Can't open the DuckStation executable file: "%~f1"
echo.
cmd /k
)
IF NOT EXIST "%~f2" (
echo Error: Can't open the PSX game cue file: "%~f2"
echo.
cmd /k
)
FOR /F "tokens=3 delims= " %%G IN ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Personal"') DO (SET docsdir=%%G)
set log="%docsdir%\DuckStation\duckstation.log"
del %log% 2> nul
"%~f1" "%~f2"
echo.
echo Number Of 0x19 Test Commands Sent:
%SystemRoot%\system32\find /C "CDROM executing command 0x19" %log%
echo.
%SystemRoot%\system32\find "CDROM executing command 0x19" %log%
echo.
echo Number Of 0x1E ReadTOC Commands Sent:
%SystemRoot%\system32\find /C "CDROM executing command 0x1E" %log%
echo.
%SystemRoot%\system32\find "CDROM executing command 0x1E" %log%
echo Number Of 0x13 GetTN Commands Sent:
%SystemRoot%\system32\find /C "CDROM executing command 0x13" %log%
echo.
%SystemRoot%\system32\find "CDROM executing command 0x13" %log%
echo.
echo Number Of 0x14 GetTD Commands Sent:
%SystemRoot%\system32\find /C "CDROM executing command 0x14" %log%
echo.
%SystemRoot%\system32\find "CDROM executing command 0x14" %log%