File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,9 @@ static void _main()
9797 // NOTE: this call can restart the application
9898 if (_ps2sdk_memory_init )
9999 _ps2sdk_memory_init ();
100+
101+ // Initialize the kernel (Apply necessary patches).
102+ _InitSys ();
100103
101104 // Use arguments sent through start if sent (by ps2link for instance)
102105 pa = & args ;
@@ -109,16 +112,13 @@ static void _main()
109112 // initialize libcglue
110113 _libcglue_init ();
111114
115+ // Enable interruts
116+ EI ();
117+
112118 // call global constructors (weak)
113119 if (_init )
114120 _init ();
115121
116- // Initialize the kernel (Apply necessary patches).
117- _InitSys ();
118-
119- // Enable interruts
120- EI ();
121-
122122 // call main
123123 retval = main (pa -> argc , pa -> argv );
124124
You can’t perform that action at this time.
0 commit comments