sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
sifinit.c
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
11
#include "
irx_imports.h
"
12
13
#ifdef _IOP
14
IRX_ID(
"SifInit"
, 1, 1);
15
#endif
16
// Based on the module from SCE SDK 1.3.4.
17
18
int
_start(
int
ac,
char
**av)
19
{
20
const
int
*BootMode3;
21
22
(void)ac;
23
(void)av;
24
25
BootMode3 = QueryBootMode(3);
26
if
( BootMode3 && (BootMode3[1] & 1) != 0 )
27
{
28
printf(
" Skip SIF init\n"
);
29
return
1;
30
}
31
else
32
{
33
const
int
*BootMode1;
34
35
BootMode1 = QueryBootMode(1);
36
if
( BootMode1 && *(
const
u16 *)BootMode1 == 1 )
37
{
38
printf(
" Skip SIF init (it is DECI1)\n"
);
39
return
1;
40
}
41
else
42
{
43
sceSifInit();
44
return
1;
45
}
46
}
47
}
irx_imports.h
core
sifinit
src
sifinit.c
Generated by
1.18.0