-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathh-encore-2.txt.bat
104 lines (93 loc) · 2.82 KB
/
h-encore-2.txt.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
@ echo off
TYPE XK.txt
:Exr
::Extracts work files to temp folder and switches to that folder
7z x %PROGRAMFILES%\Xirakado\preblt1.zip -o "%APPDATA%\xirakado\temp\H2"
7z x %PROGRAMFILES%\Xirakado\preblt2.zip -o "%APPDATA%\xirakado\temp\H"
cd %APPDATA%\xirakado\temp\H2
:message_to_user
echo Please check your PSVita, and ensure that your DNS is set to 212.47.229.76 to block updates....then reboot your PSVita
echo when this is done, launch Content Manager on your PS Vita and connect it to your computer...
echo when your PSVita is connected to your computer, please select PC -> PSVita then Applications
start %PROGRAMFILES%/qcma/qcma.exe
pause
goto :check
:check
echo scanning computer for connection...
if exist "%USERPROFILE%\Documents\PS Vita\APP" (
cd "%USERPROFILE%\Documents\PS Vita\APP"
dir /B "%USERPROFILE%\Documents\PS Vita\APP" GOTO :scan
set
) else (
goto :scan
)
:scan
:: will require cleanup
:: scans for folder required for AID
for /F %%i in ('dir /b "%USERPROFILE%\Documents\PS Vita\APP\*0*"') do (
echo File found
goto :flfnd
)
echo searching
for /F %%i in ('dir /b "%USERPROFILE%\Documents\PS Vita\APP\*1*"') do (
echo File found
goto :flfnd
)
echo searching.
for /F %%i in ('dir /b "%USERPROFILE%\Documents\PS Vita\APP\*2*"') do (
echo File found
goto :flfnd
)
echo searching..
for /F %%i in ('dir /b "%USERPROFILE%\Documents\PS Vita\APP\*3*"') do (
echo File found
goto :flfnd
)
echo searching...
for /F %%i in ('dir /b "%USERPROFILE%\Documents\PS Vita\APP\*4*"') do (
echo File found
goto :flfnd
)
echo searching....
for /F %%i in ('dir /b "%USERPROFILE%\Documents\PS Vita\APP\*5*"') do (
echo File found
goto :flfnd
)
echo searching.....
for /F %%i in ('dir /b "%USERPROFILE%\Documents\PS Vita\APP\*6*"') do (
echo File found
goto :flfnd
)
echo searching......
for /F %%i in ('dir /b "%USERPROFILE%\Documents\PS Vita\APP\*7*"') do (
echo File found
goto :flfnd
)
echo searching.......
for /F %%i in ('dir /b "%USERPROFILE%\Documents\PS Vita\APP\*8*"') do (
echo File found
goto :flfnd
)
echo searching........
for /F %%i in ('dir /b "%USERPROFILE%\Documents\PS Vita\APP\*9*"') do (
echo File found
goto :flfnd
)
echo searching.........
goto :scan
:flfnd
::AID folder was found and is set as local variable for conversion
echo File found!
cd %USERPROFILE%\Documents\PS Vita\APP
dir /B > %APPDATA%\xirakado\temp\AID\log1.txt
cd %APPDATA%\xirakado\temp\AID
set /p VAR=<log1.txt
:bldapp
cd %APPDATA%\xirakado\temp\H2
psvimg-create -n app -K %VOR% app PCSG90096/app
psvimg-create -n appmeta -K %VOR% appmeta PCSG90096/appmeta
psvimg-create -n license -K %VOR% license PCSG90096/license
psvimg-create -n savedata -K %VOR% savedata PCSG90096/savedata
robocopy PCSG90096 to "%USERPROFILE%\Documents\PS Vita\APP\%VAR%\PCSG90096"
taskkill /F /im qcma.exe
start %PROGRAMFILES%/qcma/qcma.exe