All pastes #116551 Raw Edit

Someone

public text v1 · immutable
·published 2006-08-05 10:12 UTC
rendered paste body
    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) {
        select = 0;
      }
      pspDebugScreenSetXY(0, 0);
      printf("%d internet configuration(s) found.\n\n", start);
      printf("Select which connection to use from the list\n");
      printf("and press either %s or %s:\n", NSCROSS, NSCIRCLE);
      i = 1;
      while (i <= start) {
        if (i == selComponent) {
          pspDebugScreenSetTextColor(RED);
        } else {
          pspDebugScreenSetTextColor(WHITE);
        }
        printf("Connection %d: %s\n", i, getconfname(i));
        pspDebugScreenSetTextColor(WHITE);
        i++;
      }
      //sceDisplayWaitVblankStart();
    }