Permalink
Browse files

Press square for custom boot2 from conf.

Set options in ps2rd.conf by adding an element to boot2[], located
inside loader: {}. Seperate the elements with commas.
  • Loading branch information...
root670 committed Sep 25, 2012
1 parent 888df32 commit 401a1083fd375f8d42ce3f120656a5363f63d3c1
Showing with 22 additions and 0 deletions.
  1. +22 −0 ee/loader/loader.c
View
@@ -364,6 +364,8 @@ int main(int argc, char *argv[])
int frame = 0;
int codeListModified = 0;
const int screenCenter = (gsGlobal->Width / 2);
+ int selectedBoot2 = 0;
+ char boot2Message[256];
while( 1 )
{
@@ -836,6 +838,26 @@ int main(int argc, char *argv[])
gsKit_fontm_print_scaled(gsGlobal, gsFontCentered, screenCenter, 220, 3, .60f, YellowFont, "Please insert a game disk");
}
gsKit_fontm_print_scaled(gsGlobal, gsFontCentered, screenCenter, 235, 3, .60f, YellowFont, "Press TRIANGLE to cancel.");
+ gsKit_fontm_print_scaled(gsGlobal, gsFontCentered, screenCenter, 250, 3, .60f, YellowFont, "Press SQUARE to select boot2.");
+
+
+ // Press square to select boot2 option
+ if( new_pad & PAD_SQUARE )
+ {
+ boot2 = (new_pad & PAD_SQUARE) ?
+ config_get_string_elem(&config, SET_BOOT2, selectedBoot2++) : NULL;
+
+ if( boot2 != NULL )
+ printf("boot2[%d] = %s\n", (selectedBoot2 - 1), boot2);
+ else
+ selectedBoot2 = 0; // go back to the first boot2 option
+ }
+
+ if( selectedBoot2 > 0 )
+ {
+ sprintf(boot2Message, "boot2 = %s", boot2);
+ gsKit_fontm_print_scaled(gsGlobal, gsFontCentered, screenCenter, 280, 3, .50f, YellowFont, boot2Message);
+ }
}
else if( curState == DELETE_CHEAT_PROMPT )

0 comments on commit 401a108

Please sign in to comment.