Fix pspemu

This commit is contained in:
SilicaAndPina 2019-12-18 19:39:37 +13:00
parent db99e48095
commit a026d83480
2 changed files with 4 additions and 5 deletions

View File

@ -34,7 +34,6 @@ target_link_libraries(DolcePolce
SceLibKernel_stub
SceAppMgr_stub
SceLibc_stub
SceVshBridge_stub
SceIofilemgr_stub
)

View File

@ -18,7 +18,7 @@ static int check_psm_allowed(char **game, int *is_allowed, int *unk) {
int ret = TAI_CONTINUE(int, check_psm_allowed_hook_ref,game, is_allowed, unk);
sceClibPrintf("[DolcePolce] check_psm_allowed(%s,%x,%x); ret = %x!\n",*game, *is_allowed, *unk, ret);
if(*is_allowed <= 0)
if(*is_allowed != 1)
{
sceClibPrintf("[DolcePolce] check_psm_allowed: %s is blacklisted... launching anyway!\n",*game);
*is_allowed = 1;
@ -31,7 +31,7 @@ static int check_vita_allowed(char **game, int *is_allowed, int *unk) {
int ret = TAI_CONTINUE(int, check_vita_allowed_hook_ref, game, is_allowed, unk);
sceClibPrintf("[DolcePolce] check_vita_allowed(%s,%x,%x); ret = %x!\n",*game, *is_allowed, *unk, ret);
if(*is_allowed <= 0)
if(*is_allowed != 1)
{
sceClibPrintf("[DolcePolce] check_vita_allowed: %s is blacklisted... launching anyway!\n",*game);
*is_allowed = 1;
@ -44,10 +44,10 @@ static int check_pspemu_allowed(char **game, int *is_allowed, int *unk) {
int ret = TAI_CONTINUE(int, check_pspemu_allowed_hook_ref, game, is_allowed, unk);
sceClibPrintf("[DolcePolce] check_pspemu_allowed(%s,%x,%x); ret = %x!\n",*game, *is_allowed, *unk, ret);
if(*is_allowed <= 0)
if(*is_allowed != 0x1000001)
{
sceClibPrintf("[DolcePolce] check_pspemu_allowed %s is blacklisted... launching anyway!\n",*game);
*is_allowed = 1;
*is_allowed = 0x1000001;
}
return ret;