rendered paste body pspDebugScreenSetXY(0, 0);
printf("%d internet configuration(s) found.\n\n", start);
printf("Select which configuration to use from\n");
printf("the list and press either %s or %s.\n", NSCROSS, NSCIRCLE);
i = 1;
while (i <= start) {
printf(" Configuration %d: %s\n", i, getconfname(i));
i++;
}
while (select) {
sceCtrlReadBufferPositive(&pad, 1);
if (pad.Buttons & PSP_CTRL_UP) {
if (selComponent > 1) {
selComponent--;
}
} else if (pad.Buttons & PSP_CTRL_DOWN) {
if (selComponent < start) {
selComponent++;
}
}
if ((pad.Buttons & PSP_CTRL_CIRCLE) || (pad.Buttons & PSP_CTRL_CROSS)) {
select = 0;
}
if (last != selComponent) {
pspDebugScreenSetXY(0, 4);
for(i = 1; i <= start; i++) {
if (i == selComponent) {
pspDebugScreenSetTextColor(RED);
} else {
pspDebugScreenSetTextColor(WHITE);
}
printf(" Configuration %d: %s\n", i, getconfname(i));
pspDebugScreenSetTextColor(WHITE);
}
}
last = selComponent;
sceDisplayWaitVblankStart();
}