-
-
Notifications
You must be signed in to change notification settings - Fork 178
/
nobd.h
35 lines (30 loc) · 804 Bytes
/
nobd.h
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
#ifdef NOBD_PATCH
if(islike(param, "/nobd.ps3"))
{
// /nobd.ps3 toggle noBD
// /nobd.ps3? status noBD
// /nobd.ps3?enable patch noBD
// /nobd.ps3?disable patch normal
u8 noBD = 0;
// noBD LV1 4.75 - 4.88
if(ALLOW_NOBD)
{
if(!param[9])
noBD = !isNOBD; // toggle noBD
else if(!param[10])
noBD = isNOBD; // status noBD
else if( param[10] & 1) noBD = 1; //enable
else if(~param[10] & 1) noBD = 0; //disable
if(!param[9] || param[10])
{
apply_noBD_patches(noBD, false);
}
_concat2(&sbuffer, "noBD: ", noBD ? STR_ENABLED : STR_DISABLED);
sprintf(param, "/peek.lv1?712790");
ps3mapi_find_peek_poke_hexview(pbuffer, templn, param);
}
else
_concat2(&sbuffer, "noBD: ", STR_ERROR);
}
else
#endif // #ifdef NOBD_PATCH