@@ -176,11 +176,11 @@ VPADRead(0, &vpad_data, 1, &error);
176
176
177
177
if (vpad_data .btn_hold & BUTTON_A ) { // Press A
178
178
179
- /* Clean up the heap and driver list so we can exit */
179
+ /* Clean up the heap and driver list so we can exit */
180
180
kern_write ((void * )(KERN_HEAP + STARTID_OFFSET ), 0 );
181
181
kern_write ((void * )KERN_DRVPTR , drvhax [0x48 /4 ]);
182
182
183
- /* Modify the kernel address table and exit */
183
+ /* Modify the kernel address table and exit */
184
184
kern_write (KERN_ADDRESS_TBL + 0x12 , 0x10000000 );
185
185
kern_write (KERN_ADDRESS_TBL + 0x13 , 0x28305800 );
186
186
@@ -191,11 +191,11 @@ VPADRead(0, &vpad_data, 1, &error);
191
191
192
192
if (vpad_data .btn_hold & BUTTON_B ) { // Press B
193
193
194
- /* Clean up the heap and driver list so we can exit */
194
+ /* Clean up the heap and driver list so we can exit */
195
195
kern_write ((void * )(KERN_HEAP + STARTID_OFFSET ), 0 );
196
196
kern_write ((void * )KERN_DRVPTR , drvhax [0x48 /4 ]);
197
197
198
- /* Modify the kernel address table and exit */
198
+ /* Modify the kernel address table and exit */
199
199
kern_write (KERN_ADDRESS_TBL + 0x12 , 0x31000000 );
200
200
kern_write (KERN_ADDRESS_TBL + 0x13 , 0x28305800 );
201
201
@@ -354,4 +354,4 @@ void initScreen() {
354
354
fillScreen (0 ,0 ,0 ,0 );
355
355
flipBuffers ();
356
356
}
357
- }
357
+ }
0 commit comments