Fix pstv check .. add pup type check
This commit is contained in:
parent
a424cf7454
commit
4aba38c508
|
@ -88,7 +88,27 @@ SOFTWARE.
|
|||
|
||||
PSV-PUP-Extractor-- https://github.com/Princess-of-Sleeping/PSV-PUP-Extractor
|
||||
|
||||
NO LICENSE INFORMATION
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019 Princess of Sleeping
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
memdump / testkit spoofer-- https://github.com/zecoxao/memdump/tree/spoof_testkit
|
||||
|
||||
|
|
BIN
app/app.info
BIN
app/app.info
Binary file not shown.
|
@ -129,7 +129,9 @@ void config()
|
|||
psvDebugScreenPrintf("Writing testkit.skprx");
|
||||
CopyFile("app0:/testkit.skprx","ur0:tai/testkit.skprx");
|
||||
|
||||
int pstv = vshSblAimgrIsGenuineDolce();
|
||||
//int pstv = vshSblAimgrIsGenuineDolce(); - my PSTV was not genuine :'( I need to buy a product key for it..
|
||||
//In the meantime, sceKernelIsPSVitaTV() it is!
|
||||
int pstv = sceKernelIsPSVitaTV();
|
||||
if(pstv)
|
||||
{
|
||||
CopyFile("app0:/pstvConfig.txt","ur0:tai/boot_config.txt");
|
||||
|
@ -459,12 +461,25 @@ void copyappinfo() // Setup Epic "interlectural property notices" thing
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
int main() {
|
||||
copyappinfo();
|
||||
psvDebugScreenInit();
|
||||
psvDebugScreenClear(0);
|
||||
int size = getFileSize("ux0:/DEX.PUP");
|
||||
if(size <= 0)
|
||||
|
||||
int pup_type = 0;
|
||||
int fd = sceIoOpen("ux0:/DEX.PUP", SCE_O_RDONLY, 0777);
|
||||
if(fd > 0)
|
||||
{
|
||||
sceIoLseek(fd,0x3c,SCE_SEEK_SET);
|
||||
sceIoRead(fd,&pup_type, sizeof(int));
|
||||
sceIoClose(fd);
|
||||
if(pup_type != 0x4)
|
||||
{
|
||||
psvDebugScreenPrintf("ux0:/DEX.PUP is NOT a TESTKIT UPDATE! (pup_type 0x%x expected 0x4)",pup_type);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
char version[16];
|
||||
SceKernelFwInfo data;
|
||||
|
@ -476,6 +491,7 @@ int main() {
|
|||
while(1){};
|
||||
}
|
||||
|
||||
|
||||
if(isRex() == 0)
|
||||
{
|
||||
psvDebugScreenPrintf("CEX-2-REX 2.0 - Currently CEX\n");
|
||||
|
|
Loading…
Reference in New Issue