You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main.c
+24-1Lines changed: 24 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,15 +28,19 @@ int main(int argc, char *argv[])
28
28
SifInitIopHeap(); // Initialize SIF services for loading modules and files.
29
29
SifLoadFileInit();
30
30
fioInit(); // NO scr_printf BEFORE here
31
+
32
+
#if !defined(CHAINLOAD) || !defined(NO_DPRINTF)
31
33
init_scr();
32
34
scr_setCursor(0); // get rid of annoying that cursor.
35
+
scr_printf(".\n"); // GBS control does not detect image output with scr debug till the first char is printed
36
+
#endif
37
+
33
38
DPRINTF_INIT()
34
39
#ifndefNO_DPRINTF
35
40
DPRINTF("PS2BBL: starting with %d argumments:\n", argc);
36
41
for (x=0; x<argc; x++)
37
42
DPRINTF("\targv[%d] = [%s]\n", x, argv[x]);
38
43
#endif
39
-
scr_printf(".\n"); // GBS control does not detect image output with scr debug till the first char is printed
40
44
// print a simple dot to allow gbs control to start displaying video before banner and pad timeout begins to run. othersiwe, users with timeout lower than 4000 will have issues to respond in time
41
45
DPRINTF("enabling LoadModuleBuffer\n");
42
46
sbv_patch_enable_lmb(); // The old IOP kernel has no support for LoadModuleBuffer. Apply the patch to enable it.
@@ -73,6 +77,8 @@ int main(int argc, char *argv[])
73
77
DPRINTF(" [MCSERV]: ID=%d, ret=%d\n", j, x);
74
78
mcInit(MC_TYPE_XMC);
75
79
#endif
80
+
81
+
#ifndefCHAINLOAD
76
82
#ifdefUSE_ROM_PADMAN
77
83
j=SifLoadStartModule("rom0:PADMAN", 0, NULL, &x);
78
84
DPRINTF(" [PADMAN]: ID=%d, ret=%d\n", j, x);
@@ -90,6 +96,7 @@ int main(int argc, char *argv[])
90
96
sleep(1);
91
97
#endif
92
98
}
99
+
#endif
93
100
94
101
#ifdefFILEXIO
95
102
if (LoadFIO() <0) {
@@ -171,6 +178,22 @@ int main(int argc, char *argv[])
171
178
// Remember to set the video output option (RGB or Y Cb/Pb Cr/Pr) accordingly, before SetGsCrt() is called.
0 commit comments