Seite 317 von 340 ErsteErste ... 217 267 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 ... LetzteLetzte
Zeige Ergebnis 9.481 bis 9.510 von 10174

C/C++ Programming Help Thread

This is a discussion on C/C++ Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; $(PSPBIN) is not properly set....

  
  1. #9481
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    $(PSPBIN) is not properly set.


    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  2. #9482
    xMod.
    Points: 4.576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Melbourne, Australia
    Beiträge
    675
    Points
    4.576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Standard

    yea change it to the REAL path =P

    ~!SlasheR!~

  3. #9483
    QJ Gamer Blue
    Points: 4.511, Level: 42
    Level completed: 81%, Points required for next Level: 39
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Germany
    Beiträge
    216
    Points
    4.511
    Level
    42
    Downloads
    0
    Uploads
    0

    Standard

    Well, first of all thanks for all the aswers, but it still won't work. I now get the original errors that he (still) can't find "freetype/config/ftheader.h". As for the environment variables, if this is what you geht when you type "echo %PATH%" - the (right) bin path is there - twice!
    -=Double Post Merge =-
    Ok, here comes the cheap solution. Inside the includedirectory was a folder "freetype2", inside that a folder "freetype" with all the files in it. Copied "freetype" into the include directory, everything works. I could have tried that earlier -_-. Anyways, thanks for all the help.
    Geändert von Lukeson (01-08-2009 um 03:35 AM Uhr) Grund: Automerged Doublepost

  4. #9484
    QJ Gamer Bronze
    Points: 5.583, Level: 48
    Level completed: 17%, Points required for next Level: 167
    Overall activity: 0%

    Registriert seit
    May 2007
    Beiträge
    127
    Points
    5.583
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    do echo %PSPBIN% and see what it outputs

    because.. ya know.. pspbin env variable is not the path variable..
    -- Code Monkey : Sarien, Fishguts, Cracks and Crevices --

    "Did IQ's just drop sharply while I was away?" (Ripley)

  5. #9485
    QJ Gamer Blue
    Points: 4.511, Level: 42
    Level completed: 81%, Points required for next Level: 39
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Germany
    Beiträge
    216
    Points
    4.511
    Level
    42
    Downloads
    0
    Uploads
    0

    Standard

    It echos... wait for it... %PSPBIN% !

    Where can I change that?

  6. #9486
    QJ Gamer Blue
    Points: 3.795, Level: 38
    Level completed: 97%, Points required for next Level: 5
    Overall activity: 27,0%

    Registriert seit
    Jul 2007
    Beiträge
    296
    Points
    3.795
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    It's not a windows environment variable, you have to do it for cygwin.

    Type (In a cygwin command prompt):
    PSPBIN = /usr/local/pspdev/bin
    or
    PSPBIN = /usr/local/pspdev/psp/bin
    Depending on the directory freetype-config is in.

    Then try running it again.

  7. #9487
    xMod.
    Points: 4.576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Melbourne, Australia
    Beiträge
    675
    Points
    4.576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Standard

    could some1 please answer my question???
    [help] xmb plugin


    ~!SlasheR!~

  8. #9488
    QJ Gamer Blue
    Points: 4.511, Level: 42
    Level completed: 81%, Points required for next Level: 39
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Germany
    Beiträge
    216
    Points
    4.511
    Level
    42
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von _dysfunctional Beitrag anzeigen
    It's not a windows environment variable, you have to do it for cygwin.

    Type (In a cygwin command prompt):

    Depending on the directory freetype-config is in.

    Then try running it again.
    Thx!


    -=Double Post Merge =-


    I'm having troubles with pgeFont. I use it with the graphics.c library from Psilocybeing that is included as a sample that comes with pgeFont.

    When I print a font with pge to the screen and use blitAlphaImageToScreen from the library, the image is totally messed up. I can do that before I print the text of after that, the result is the same.

    Does anyone have a clue?
    Geändert von Lukeson (01-09-2009 um 06:12 AM Uhr) Grund: Automerged Doublepost

  9. #9489
    I'm back!
    Points: 8.236, Level: 61
    Level completed: 29%, Points required for next Level: 214
    Overall activity: 99,0%

    Registriert seit
    Feb 2007
    Ort
    England
    Beiträge
    902
    Points
    8.236
    Level
    61
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von slasher2661996 Beitrag anzeigen
    could some1 please answer my question???
    [help] xmb plugin


    ~!SlasheR!~
    I read the thread and you've been given plenty of help. Use sceDisplayGetFrameBuf to get the address to send to pspDebugScreenSetOffset. Theres not much more that we can say without giving you the code.

    -Aura

    Is there any functions to open/read/modify an archive in the SDK? I need to use an archive (type not important) but I don't want to reinvent the wheel if theres a way already.
    Geändert von Auraomega (01-09-2009 um 09:52 AM Uhr)
    Last.fm | Deviant Art | First working OS picture

    Zitat Zitat von nickxab Beitrag anzeigen
    I will beat myself. :p

  10. #9490
    xMod.
    Points: 4.576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Melbourne, Australia
    Beiträge
    675
    Points
    4.576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Standard

    Yea i know Aura but i still need help?
    thanks to every1 =)

    ~!SlasheR!~

  11. #9491
    QJ Gamer Bronze
    Points: 5.583, Level: 48
    Level completed: 17%, Points required for next Level: 167
    Overall activity: 0%

    Registriert seit
    May 2007
    Beiträge
    127
    Points
    5.583
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Auraomega Beitrag anzeigen
    Is there any functions to open/read/modify an archive in the SDK? I need to use an archive (type not important) but I don't want to reinvent the wheel if theres a way already.
    you can build libzip for zip files and there are loads of stuff for doing 'wad/pak' files etc.
    -- Code Monkey : Sarien, Fishguts, Cracks and Crevices --

    "Did IQ's just drop sharply while I was away?" (Ripley)

  12. #9492
    I'm back!
    Points: 8.236, Level: 61
    Level completed: 29%, Points required for next Level: 214
    Overall activity: 99,0%

    Registriert seit
    Feb 2007
    Ort
    England
    Beiträge
    902
    Points
    8.236
    Level
    61
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von _df_ Beitrag anzeigen
    you can build libzip for zip files and there are loads of stuff for doing 'wad/pak' files etc.
    Ok awesome, I'll check that out thanks.

    -Aura
    Last.fm | Deviant Art | First working OS picture

    Zitat Zitat von nickxab Beitrag anzeigen
    I will beat myself. :p

  13. #9493
    xMod.
    Points: 4.576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Melbourne, Australia
    Beiträge
    675
    Points
    4.576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Standard

    any libs for unraring files?

    ~!SlasheR!~

  14. #9494
    I'm back!
    Points: 8.236, Level: 61
    Level completed: 29%, Points required for next Level: 214
    Overall activity: 99,0%

    Registriert seit
    Feb 2007
    Ort
    England
    Beiträge
    902
    Points
    8.236
    Level
    61
    Downloads
    0
    Uploads
    0

    Standard

    Is there a way to list heap UIDs? I see functions for listing the UID of modules but I've not found anything for memory. Am I right in assuming the PSP_HEAP_SIZE_KB allocates a heap with a determinable UID also? Finally if I allocate a heap in a function using sceKernelCreateHeap does that remove the need for the PSP_HEAP_SIZE_KB macro and no extra additions, or would I then have to allocate from the heap each time using sceKernelAllocHeapMemory? I'm just not sure if the latter function is a method of using malloc with a heap?

    Sorry for all the questions, I just stumbled across sysmem and become interested

    -Aura
    Last.fm | Deviant Art | First working OS picture

    Zitat Zitat von nickxab Beitrag anzeigen
    I will beat myself. :p

  15. #9495
    QJ Gamer Bronze
    Points: 5.583, Level: 48
    Level completed: 17%, Points required for next Level: 167
    Overall activity: 0%

    Registriert seit
    May 2007
    Beiträge
    127
    Points
    5.583
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von slasher2661996 Beitrag anzeigen
    any libs for unraring files?

    ~!SlasheR!~
    there is an unrar lib but it only does rar2 not rar3.. rar is proprietary there is source out there but its not free.

    google is your friend, seriously, did you even bother to try?
    -- Code Monkey : Sarien, Fishguts, Cracks and Crevices --

    "Did IQ's just drop sharply while I was away?" (Ripley)

  16. #9496
    xMod.
    Points: 4.576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Melbourne, Australia
    Beiträge
    675
    Points
    4.576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Standard

    yep i did i found the one that ur talking about (rar2)
    but i was wondering if there was any rar3 ones out there

    Thx 4 ur reply anyways

    ~!SlasheR!~

  17. #9497
    QJ Gamer Green
    Points: 4.092, Level: 40
    Level completed: 72%, Points required for next Level: 58
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    508
    Points
    4.092
    Level
    40
    Downloads
    0
    Uploads
    0

    Thumbs down

    Zitat Zitat von slasher2661996 Beitrag anzeigen
    yep i did i found the one that ur talking about (rar2)
    but i was wondering if there was any rar3 ones out there

    Thx 4 ur reply anyways

    ~!SlasheR!~
    Zitat Zitat von _df_ Beitrag anzeigen
    ...rar is proprietary there is source out there but its not free.
    In other words, probably not.
    I gone and made that one power spoofer and that gay cheat device.

  18. #9498
    QJ Gamer Bronze
    Points: 5.583, Level: 48
    Level completed: 17%, Points required for next Level: 167
    Overall activity: 0%

    Registriert seit
    May 2007
    Beiträge
    127
    Points
    5.583
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von NoEffex Beitrag anzeigen
    In other words, probably not.
    no, the company/guy behind rar provides the code to decompress (but not create) but its not a free software license.
    -- Code Monkey : Sarien, Fishguts, Cracks and Crevices --

    "Did IQ's just drop sharply while I was away?" (Ripley)

  19. #9499
    I'm back!
    Points: 8.236, Level: 61
    Level completed: 29%, Points required for next Level: 214
    Overall activity: 99,0%

    Registriert seit
    Feb 2007
    Ort
    England
    Beiträge
    902
    Points
    8.236
    Level
    61
    Downloads
    0
    Uploads
    0

    Standard

    Is there any reason for a prx (as in, a module not an app on its own) to give me errors when its C++ and not C? Whenever I compile a module in C++ it gives me:

    /usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/bin/ld: warning: cannot find
    entry symbol module_start; defaulting to 0000000000000000
    /usr/local/pspdev/psp/sdk/lib/prxexports.o.rodata.sceResident+0x8): undefined
    reference to `module_start'
    collect2: ld returned 1 exit status
    make: *** [heaparea1.elf] Error 1

    if the extention is C it works fine...

    I'm compiling with -lstdc++ as well...

    At the moment its no major biggy, I can get away with using C but when I want to introduce classes things are going to get hairy.

    -Aura
    Last.fm | Deviant Art | First working OS picture

    Zitat Zitat von nickxab Beitrag anzeigen
    I will beat myself. :p

  20. #9500
    QJ Gamer Green
    Points: 4.092, Level: 40
    Level completed: 72%, Points required for next Level: 58
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    508
    Points
    4.092
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    I'm pretty sure there are some essential differences between the two, so you might have to use extern tags.
    I gone and made that one power spoofer and that gay cheat device.

  21. #9501
    QJ Gamer Bronze
    Points: 5.594, Level: 48
    Level completed: 22%, Points required for next Level: 156
    Overall activity: 0%

    Registriert seit
    Aug 2008
    Ort
    thugz mansion
    Beiträge
    875
    Points
    5.594
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Anybody know where theres some samples to how the vlf library works.

    Like something simple i was only able to find one and i was to complex for my tiny brain to take in.
    Zitat Zitat von SuperBatXS
    I use my psp all the time in the plane. I was masturbating once while watching some lesbian videos when a fat lady beside me was sleeping and her really hot daughter next to her was getting ready for my dong to shove up her ding. Then, her daughter and I were about to go to the bathroom together but, the air hostess came to tell me i should stop right now. I swear this happened. I am never taking my psp to the plane again. Always got my iPod though...hehe. ;)

  22. #9502
    xMod.
    Points: 4.576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Melbourne, Australia
    Beiträge
    675
    Points
    4.576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Standard

    what does that library do...?

    ive heard of it but dont know what it does

    ~!SlasheR!~

  23. #9503
    QJ Gamer Bronze
    Points: 5.594, Level: 48
    Level completed: 22%, Points required for next Level: 156
    Overall activity: 0%

    Registriert seit
    Aug 2008
    Ort
    thugz mansion
    Beiträge
    875
    Points
    5.594
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von slasher2661996 Beitrag anzeigen
    what does that library do...?

    ive heard of it but dont know what it does

    ~!SlasheR!~
    its what dark_alex used to make dc7-dc8

    with the waves.

    it lets you use official sony style application gfx like the side menu update bar license agreement type text and a whole bunch of other stuff.
    Zitat Zitat von SuperBatXS
    I use my psp all the time in the plane. I was masturbating once while watching some lesbian videos when a fat lady beside me was sleeping and her really hot daughter next to her was getting ready for my dong to shove up her ding. Then, her daughter and I were about to go to the bathroom together but, the air hostess came to tell me i should stop right now. I swear this happened. I am never taking my psp to the plane again. Always got my iPod though...hehe. ;)

  24. #9504
    xMod.
    Points: 4.576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Melbourne, Australia
    Beiträge
    675
    Points
    4.576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Standard

    thats KOOL as!!!

    ill look into it if i figure out anything ill pm u

    ~!SlasheR!~

  25. #9505
    QJ Gamer Green
    Points: 3.567, Level: 37
    Level completed: 45%, Points required for next Level: 83
    Overall activity: 0%

    Registriert seit
    May 2008
    Ort
    The Netherlands
    Beiträge
    330
    Points
    3.567
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    I didn't accomplish to get my menu to work, and fixing the errors is giving me even
    more problems. Can somebody sort this out for me?:

    Spoiler for main.c:

    #include <pspsdk.h>
    #include <pspkernel.h>
    #include <psppower.h>
    #include <pspctrl.h>
    #include <pspdisplay.h>
    #include <pspdebug.h>

    #define printf pspDebugScreenPrintf

    PSP_MODULE_INFO("menu", 0, 1, 0);
    PSP_MAIN_THREAD_ATTR(PSP_ THREAD_ATTR_USER);

    int exit_callback(int arg1, int arg2, void *common)
    {
    sceKernelExitGame();
    return 0;
    }

    int CallbackThread(SceSize args, void *argp)
    {
    int cbid;

    cbid = sceKernelCreateCallback(" Exit Callback", exit_callback, NULL);
    sceKernelRegisterExitCall back(cbid);

    sceKernelSleepThreadCB();

    return 0;
    }

    int SetupCallbacks(void)
    {
    int thid = 0;

    thid = sceKernelCreateThread("up date_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
    if(thid >= 0)
    {
    sceKernelStartThread(thid , 0, 0);
    }

    return thid;
    }

    #define N_Entries 3
    char *MenuItems[] =
    {
    "ITEM",
    "ITEM2",
    "ITEM3"
    };

    int MainMenu()
    {
    SceCtrlData menupad, lastpad;
    sceCtrlPeekBufferPositive (&lastpad, 1);

    int i, selection = 0;

    while(1)
    {
    pspDebugScreenSetXY(0, 0);
    printf("Welcome to PROGRAM-NAME\n");

    for(i = 0; i < N_Entries; i++)
    {
    if (i != selection)
    printf(" %s\n", MenuItems[i]);

    else
    printf(" -> %s\n", MenuItems[i]);
    }

    sceCtrlBufferPeekPositive (&menupad, 1);
    if (lastpad.Buttons != menupad.Buttons)
    {
    lastpad.Buttons = menupad.Buttons;

    if (menupad.Buttons & PSP_CTRL_DOWN)
    {
    selection++;
    if (selection >= N_Entries)
    selection = 0;
    }

    else if(menupad.Buttons & PSP_CTRL_UP)
    {
    selection--;
    if (selection < 0)
    selection = N_Entries - 1;
    }

    else if(menupad.Buttons & PSP_CTRL_CROSS)
    {
    break;
    }
    }
    }

    return selection;
    }


    Spoiler for Makefile:

    TARGET = menu
    OBJS = main.o

    CFLAGS = -O2 -G0 -Wall
    CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
    ASFLAGS = $(CFLAGS)
    LIBS = -lpspgu

    EXTRA_TARGETS = EBOOT.PBP
    PSP_EBOOT_TITLE = Menu Example

    BUILD_PRX = 1
    PSP_FW_VERSION = 502

    PSPSDK=$(shell psp-config --pspsdk-path)
    include $(PSPSDK)/lib/build.mak


    Error I'm getting:

    Code:
    main.c: In function 'MainMenu':
    main.c:<.text+0x9c>: Undefined reference to 'sceCtrlBufferPeekPositive'
    main.c:<.text+0xfc>: Undefined reference to 'sceCtrlBufferPeekPositive'
    collect2: ld returned 1 exit status
    make: ** [menu.elf] Error1
    [spoiler=My Releases So Far]
    PSP_Operator v2.0 Final (and earlier; stopped with this one)
    Mario's Road v2.0 (working on 2.5:D)
    UMD_Operator v0.0.2 (and earlier; stopped with this one)
    PSP-Quiz v0.1 (working on v0.2 already:D)
    [/spoiler]

  26. #9506
    QJ Gamer Bronze
    Points: 8.045, Level: 60
    Level completed: 48%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Ort
    Australia
    Beiträge
    659
    Points
    8.045
    Level
    60
    Downloads
    0
    Uploads
    0

    Standard

    add -lpspctrl to your makefile

  27. #9507
    QJ Gamer Green
    Points: 3.567, Level: 37
    Level completed: 45%, Points required for next Level: 83
    Overall activity: 0%

    Registriert seit
    May 2008
    Ort
    The Netherlands
    Beiträge
    330
    Points
    3.567
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    It's giving the same errors again.
    [spoiler=My Releases So Far]
    PSP_Operator v2.0 Final (and earlier; stopped with this one)
    Mario's Road v2.0 (working on 2.5:D)
    UMD_Operator v0.0.2 (and earlier; stopped with this one)
    PSP-Quiz v0.1 (working on v0.2 already:D)
    [/spoiler]

  28. #9508
    I'm back!
    Points: 8.236, Level: 61
    Level completed: 29%, Points required for next Level: 214
    Overall activity: 99,0%

    Registriert seit
    Feb 2007
    Ort
    England
    Beiträge
    902
    Points
    8.236
    Level
    61
    Downloads
    0
    Uploads
    0

    Standard

    *Facepalm*

    Check the header file in the future please, it'll save us all so many headaches:

    Your code:
    Code:
    ...
    sceCtrlBufferPeekPositive
    ...
    header
    Code:
    ...
    sceCtrlPeekBufferPositive
    ...
    -Aura
    Last.fm | Deviant Art | First working OS picture

    Zitat Zitat von nickxab Beitrag anzeigen
    I will beat myself. :p

  29. #9509
    QJ Gamer Green
    Points: 3.567, Level: 37
    Level completed: 45%, Points required for next Level: 83
    Overall activity: 0%

    Registriert seit
    May 2008
    Ort
    The Netherlands
    Beiträge
    330
    Points
    3.567
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    I don't understand your answer actually
    [spoiler=My Releases So Far]
    PSP_Operator v2.0 Final (and earlier; stopped with this one)
    Mario's Road v2.0 (working on 2.5:D)
    UMD_Operator v0.0.2 (and earlier; stopped with this one)
    PSP-Quiz v0.1 (working on v0.2 already:D)
    [/spoiler]

  30. #9510
    QJ Gamer Bronze
    Points: 5.594, Level: 48
    Level completed: 22%, Points required for next Level: 156
    Overall activity: 0%

    Registriert seit
    Aug 2008
    Ort
    thugz mansion
    Beiträge
    875
    Points
    5.594
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    #include <pspsdk.h>
    #include <pspkernel.h>
    #include <psppower.h>
    #include <pspctrl.h>
    #include <pspdisplay.h>
    #include <pspdebug.h>

    #define printf pspDebugScreenPrintf

    PSP_MODULE_INFO("menu", 0, 1, 0);
    PSP_MAIN_THREAD_ATTR(PSP_ THREAD_ATTR_USER);

    int exit_callback(int arg1, int arg2, void *common)
    {
    sceKernelExitGame();
    return 0;
    }

    int CallbackThread(SceSize args, void *argp)
    {
    int cbid;

    cbid = sceKernelCreateCallback(" Exit Callback", exit_callback, NULL);
    sceKernelRegisterExitCall back(cbid);

    sceKernelSleepThreadCB();

    return 0;
    }

    int SetupCallbacks(void)
    {
    int thid = 0;

    thid = sceKernelCreateThread("up date_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
    if(thid >= 0)
    {
    sceKernelStartThread(thid , 0, 0);
    }

    return thid;
    }

    #define N_Entries 3
    char *MenuItems[] =
    {
    "ITEM",
    "ITEM2",
    "ITEM3"
    };

    int MainMenu()
    {
    SceCtrlData menupad, lastpad;
    sceCtrlPeekBufferPositive (&lastpad, 1);

    int i, selection = 0;

    while(1)
    {
    pspDebugScreenSetXY(0, 0);
    printf("Welcome to PROGRAM-NAME\n");

    for(i = 0; i < N_Entries; i++)
    {
    if (i != selection)
    printf(" %s\n", MenuItems[i]);

    else
    printf(" -> %s\n", MenuItems[i]);
    }

    sceCtrlPeekBufferPositive (&menupad, 1);
    if (lastpad.Buttons != menupad.Buttons)
    {
    lastpad.Buttons = menupad.Buttons;

    if (menupad.Buttons & PSP_CTRL_DOWN)
    {
    selection++;
    if (selection >= N_Entries)
    selection = 0;
    }

    else if(menupad.Buttons & PSP_CTRL_UP)
    {
    selection--;
    if (selection < 0)
    selection = N_Entries - 1;
    }

    else if(menupad.Buttons & PSP_CTRL_CROSS)
    {
    break;
    }
    }
    }

    return selection;
    }
    I just changed it for you.

    Use the code tag it looks sloppy as a spoiler or quote.
    Zitat Zitat von SuperBatXS
    I use my psp all the time in the plane. I was masturbating once while watching some lesbian videos when a fat lady beside me was sleeping and her really hot daughter next to her was getting ready for my dong to shove up her ding. Then, her daughter and I were about to go to the bathroom together but, the air hostess came to tell me i should stop right now. I swear this happened. I am never taking my psp to the plane again. Always got my iPod though...hehe. ;)


 

Tags for this Thread

Forumregeln

  • Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
  • Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
  • Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
  • Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
  •  





Alle Zeitangaben in WEZ -8. Es ist jetzt 09:12 PM Uhr.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © , Caputo Media, LLC. All Rights Reserved. Cluster .