Seite 247 von 340 ErsteErste ... 147 197 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 297 ... LetzteLetzte
Zeige Ergebnis 7.381 bis 7.410 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; How much harder is it than mp3 decoding + streaming? Btw, i am looking for some lua examples. Thanks! ;)...

  
  1. #7381
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    How much harder is it than mp3 decoding + streaming? Btw, i am looking for some lua examples. Thanks! ;)


    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  2. #7382
    lol
    Points: 20.859, Level: 91
    Level completed: 2%, Points required for next Level: 491
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Whittier, CA
    Beiträge
    5.791
    Points
    20.859
    Level
    91
    Downloads
    0
    Uploads
    0

    Standard

    Its easier.
    But it seems that you had so much trouble with MP3 so it may be hard to some extent.

  3. #7383
    Ænima
    Points: 6.447, Level: 52
    Level completed: 49%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Sep 2007
    Beiträge
    587
    Points
    6.447
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    How exactly does streaming work? Is it like you load a chunk of data, then trash that, and load a new chunk? Or are you continuously loading small parts?
    [IMG]http://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Zoso.svg/744px-Zoso.svg.png[/IMG]

    Looking for some good C programming tutorials for the PSP? Look no further! [URL="http://psp-coding.com/"]PSP-Coding.com[/URL] is your source for all your PSP coding needs.

  4. #7384
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Judas
    How exactly does streaming work? Is it like you load a chunk of data, then trash that, and load a new chunk? Or are you continuously loading small parts?
    Wikipedia helped me.
    http://en.wikipedia.org/wiki/Dynamic_data
    http://en.wikipedia.org/wiki/Streaming_media
    http://www.webopedia.com/TERM/s/streaming.html

    Learn about those.

    Edit: Ugh, i can't pass my own level in my game....should be a challenge for you guys when i release it. Anyways, is it smarter to use osl? I have a problem with including -lmikmod in my makefile so it never works for me.
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  5. #7385
    Ænima
    Points: 6.447, Level: 52
    Level completed: 49%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Sep 2007
    Beiträge
    587
    Points
    6.447
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von TMNT
    Wikipedia helped me.
    http://en.wikipedia.org/wiki/Dynamic_data
    http://en.wikipedia.org/wiki/Streaming_media
    http://www.webopedia.com/TERM/s/streaming.html

    Learn about those.

    Edit: Ugh, i can't pass my own level in my game....should be a challenge for you guys when i release it. Anyways, is it smarter to use osl? I have a problem with including -lmikmod in my makefile so it never works for me.
    Thanks. And I don't know about OSL, as I've only ever used the graphics library. To my understanding, they're both about the same speed, as neither use the hardware to render graphics. But OSL has some function pre-written to make it easier. (Correct me if I'm wrong)
    [IMG]http://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Zoso.svg/744px-Zoso.svg.png[/IMG]

    Looking for some good C programming tutorials for the PSP? Look no further! [URL="http://psp-coding.com/"]PSP-Coding.com[/URL] is your source for all your PSP coding needs.

  6. #7386
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Exactly, which is why i want to use OSL. Anyways, does anyone know what to do after the package installs here:

    http://oslib.playeradvance.org./doku.php?id=day1

    I can't understand a single word in the installer since its in French.
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  7. #7387
    lol
    Points: 20.859, Level: 91
    Level completed: 2%, Points required for next Level: 491
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Whittier, CA
    Beiträge
    5.791
    Points
    20.859
    Level
    91
    Downloads
    0
    Uploads
    0

    Standard

    Um, yea...Once you run the installer then everything else should be easy since the instructions on the site is in English :/
    The installer is pretty straight forward and you should be able to know what it wants...I was able to and I don't know french.

    Or you can just install it manually instead of installing cygwin, pspsdk and oslib...Since you already have the sdk and stuff set up your just making it harder when using the installer.

  8. #7388
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    But mikmod doesn't work for me...also, my toolchain is really really out of date, and a lot of programs don't compile for me.
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  9. #7389
    lol
    Points: 20.859, Level: 91
    Level completed: 2%, Points required for next Level: 491
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Whittier, CA
    Beiträge
    5.791
    Points
    20.859
    Level
    91
    Downloads
    0
    Uploads
    0

    Standard

    Um, update sdk then install OSLib manually.
    Heh, maybe thats why mikmod don't work for you either and I think that installer installs a older version anyways.

  10. #7390
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Can anyone help me out with step 3? Explain it a bit?

    http://oslib.playeradvance.org./doku.php?id=day1
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  11. #7391
    lol
    Points: 20.859, Level: 91
    Level completed: 2%, Points required for next Level: 491
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Whittier, CA
    Beiträge
    5.791
    Points
    20.859
    Level
    91
    Downloads
    0
    Uploads
    0

    Standard

    Dude, seriously, what don't you get on step 3? I went over it just now and I understand pefectly.

  12. #7392
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    How do i make it work with my psp? I mean what's the point of step 3? To configure the program with cygwin? Why not use cygwin only?
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  13. #7393
    lol
    Points: 20.859, Level: 91
    Level completed: 2%, Points required for next Level: 491
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Whittier, CA
    Beiträge
    5.791
    Points
    20.859
    Level
    91
    Downloads
    0
    Uploads
    0

    Standard

    To make it work with your PSP you compile the program with cygwin :/
    I don't know French but I do know English so I know that step 3 makes the eboot using VS...How can you not understand that?

  14. #7394
    QJ Gamer Blue
    Points: 4.295, Level: 41
    Level completed: 73%, Points required for next Level: 55
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Homebrewland, CA
    Beiträge
    191
    Points
    4.295
    Level
    41
    Downloads
    0
    Uploads
    0

    Standard

    Hello, I'm having problems installing the psptoolchain on cygwin. If anyone could help I'm getting this error after running ./toolchain.sh:
    Code:
    make[2]: Leaving directory `/tmp/pspdev/binutils-2.16.1/build-psp/bfd/po'
    make[2]: Entering directory `/tmp/pspdev/binutils-2.16.1/build-psp/bfd'
    make[3]: Entering directory `/tmp/pspdev/binutils-2.16.1/build-psp/bfd'
    make[3]: Nothing to be done for `install-exec-am'.
    /bin/sh ../../bfd/../mkinstalldirs /usr/local/pspdev/i686-pc-cygwin/psp/lib
    /bin/sh ../../bfd/../mkinstalldirs /usr/local/pspdev/i686-pc-cygwin/psp/include
    /bin/sh ./libtool  --mode=install /usr/bin/install -c libbfd.la /usr/local/pspde
    v/i686-pc-cygwin/psp/lib/libbfd.la
    /usr/bin/install -c .libs/libbfd.lai /usr/local/pspdev/i686-pc-cygwin/psp/lib/li
    bbfd.la
    /usr/bin/install: cannot create regular file `/usr/local/pspdev/i686-pc-cygwin/p
    sp/lib/libbfd.la': Permission denied
    make[3]: *** [install_libbfd] Error 1
    make[3]: Leaving directory `/tmp/pspdev/binutils-2.16.1/build-psp/bfd'
    make[2]: *** [install-am] Error 2
    make[2]: Leaving directory `/tmp/pspdev/binutils-2.16.1/build-psp/bfd'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/tmp/pspdev/binutils-2.16.1/build-psp/bfd'
    make: *** [install-bfd] Error 2
    ERROR INSTALLING BINUTILS

  15. #7395
    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

    1:29:29 AM Junkie: 7394 <- lol he got permission errors in cygwin xD does it even check permissions?
    1:29:44 AM Junkie: I don't have Mass Effect
    1:29:48 AM Ryalla: lmao
    1:29:54 AM Junkie: It's a bit too RPG-y for me
    1:30:00 AM Ryalla: Check if he's using Vista.
    1:30:10 AM Ryalla: Then tell him to give himself full access on the cygwin folder.
    1:30:19 AM Ryalla: I've felt his pain...
    1:30:23 AM Junkie: lol
    1:30:28 AM Ryalla: Except worsely.
    oh hi

  16. #7396
    QJ Gamer Silver
    Points: 8.717, Level: 62
    Level completed: 89%, Points required for next Level: 33
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Ort
    Melbourne, Australia
    Beiträge
    1.773
    Points
    8.717
    Level
    62
    My Mood
    Amused
    Downloads
    0
    Uploads
    0

    Standard

    Grr, I still have a problem with my program.. It still only shows two or three of the little squares... I uploaded the source to my program to see if anyone can help .
    Link
    WHA!?

  17. #7397
    Points: 3.612, Level: 37
    Level completed: 75%, Points required for next Level: 38
    Overall activity: 0%

    Registriert seit
    Nov 2006
    Beiträge
    17
    Points
    3.612
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard In need of more..

    I have been making an honest effort to Learn C and using it with the PSP.

    I have an idea churning in my head, that I know is beyond my skill level, so I would like to ask advice and help on gaining the appropriate information.

    I wonder if it is possible to have a menu in game, where the player can pick items to use. Not only picking the item, put also using the analog to set it on the screen, like setting up a row of tanks.

    also where can I get info on programming AI. I want to make my sprites enter on the left side and move on to the right side. The tricky part is they have avoid all the objects (tanks) along the way, so they have to detect a potential collision and adjust course. So I assume fairly advance collision detection and AI.

    (I did look at the sticky about tutorials on QJ, and the AI post is no longer linked and the sticky itself is outdated)

  18. #7398
    Ænima
    Points: 6.447, Level: 52
    Level completed: 49%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Sep 2007
    Beiträge
    587
    Points
    6.447
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von fatmarley
    I have been making an honest effort to Learn C and using it with the PSP.

    I have an idea churning in my head, that I know is beyond my skill level, so I would like to ask advice and help on gaining the appropriate information.

    I wonder if it is possible to have a menu in game, where the player can pick items to use. Not only picking the item, put also using the analog to set it on the screen, like setting up a row of tanks.

    also where can I get info on programming AI. I want to make my sprites enter on the left side and move on to the right side. The tricky part is they have avoid all the objects (tanks) along the way, so they have to detect a potential collision and adjust course. So I assume fairly advance collision detection and AI.

    (I did look at the sticky about tutorials on QJ, and the AI post is no longer linked and the sticky itself is outdated)
    Those topics are universal to all programming languages, not just C for the PSP. The first you will learn as you learn more C, as it's not really too hard. As for AI, search google. You can't really have a specific example of AI, it's more of an idea. So you'll most likely find a tutorial that isn't language specific.
    [IMG]http://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Zoso.svg/744px-Zoso.svg.png[/IMG]

    Looking for some good C programming tutorials for the PSP? Look no further! [URL="http://psp-coding.com/"]PSP-Coding.com[/URL] is your source for all your PSP coding needs.

  19. #7399
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    go to gamedev.net they have multitudes of articles on AI, ranging from theory to actual implementation.
    --------------------------------------------------------------------------------------

  20. #7400
    Developer and Tutor.
    Points: 8.736, Level: 62
    Level completed: 96%, Points required for next Level: 14
    Overall activity: 0%

    Registriert seit
    Jul 2007
    Ort
    Widnes, England
    Beiträge
    1.649
    Points
    8.736
    Level
    62
    My Mood
    Happy
    Downloads
    0
    Uploads
    0

    Standard

    hi i have started to port lua player 0.16 to 3.XX kernel i have changed the makefile and the main.cpp so that they run in user mode and i have uses prxtool to find out which commands i need to change by the nid address and comparing it to the codes from here http://silverspring.lan.st/1.5x/index.html i just wanted to know where i could find a user mode command that does the same thing - if there isn't one then i will either find a way of making the function work with more than one command or by simply deleting it

    an example is sceKernelStdoutReopen

    does anyone know where i can find replacement commands for the 1.50 ones to 3.xx ones thanks
    ------ FaT3oYCG -----
    AKA Craig, call me what you want to It's your preference.
    My Website: http://www.modern-gamer.co.uk/

    Currently working on:
    (0) MediaGrab
    (0) PGE Gears Of War - On hold (Very large project).
    (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).

  21. #7401
    QJ Gamer Silver
    Points: 7.278, Level: 56
    Level completed: 64%, Points required for next Level: 72
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Ort
    Pimp'en in the US F#
    Beiträge
    1.254
    Points
    7.278
    Level
    56
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Judas
    Thanks. And I don't know about OSL, as I've only ever used the graphics library. To my understanding, they're both about the same speed, as neither use the hardware to render graphics. But OSL has some function pre-written to make it easier. (Correct me if I'm wrong)
    Actuelly Oslib is faster because it does utilize the Hardware for rendering, and like you said, it does make alot of things easier, like key handling, debugging, message outputs, drawing etc.
    The Wentire Worls in two Sectors....
    When did I get dev statz?
    Spoiler for my PSP homebrewReleases:
    Ace of Space V1|PvP Pong Online|PvP Pong v3 | 3.03 BlackShark Custom Firmware
    (PvP Pong DL'ed well over 2403 times combined! get yours now!)
    Spoiler for Great Quotes:

    "No Snowflake in an Avalanche ever feels responsible....." - Fortune Cookie.

  22. #7402
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    OSlib is to god as graphics.c is to a rock.
    --------------------------------------------------------------------------------------

  23. #7403
    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

    How can I use functions from modules in the flash, ones part of the firmware? I tried making a stub and linking it to my code, but I'm not sure I did it right, is there any examples of someone doing this? Also, are there any tools for reversing Sony modules, I've tried the one from ps2dev but it only works with non-Sony files. Finally, is there any way to either change the normal pspbtcnf.bin file in 3.7X or could I use sceKernelExitVSHVSH to load a predefined pspbtcnf.bin file?

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

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

  24. #7404
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    OMG! I got oslib working!!!! Woohoooo!! This weekend has been very successful for me so far...:Jump:

    Anyways, does anyone have a website where i can learn some oslib functions? I know that oslib 2.10 has docs, but those are outdated.
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  25. #7405
    QJ Gamer Bronze
    Points: 5.402, Level: 47
    Level completed: 26%, Points required for next Level: 148
    Overall activity: 0%

    Registriert seit
    Apr 2007
    Beiträge
    468
    Points
    5.402
    Level
    47
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von TMNT
    OMG! I got oslib working!!!! Woohoooo!! This weekend has been very successful for me so far...:Jump:

    Anyways, does anyone have a website where i can learn some oslib functions? I know that oslib 2.10 has docs, but those are outdated.
    http://oslib.playeradvance.org/doku.php?id=home

  26. #7406
    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

    Hey guys, just need some help. Iv been trying to write to a file using the sce functions but iv got a problem. The program compiled fine and ran but whenever i tried to wright to a file nothing ever happend, i was just left with an empty file. I was pretty sure the problem was sceIoWrite() so i did a quick check with this:
    Code:
        char file_data[32];
        sprintf(file_data, "hello");
        int file = sceIoOpen("ms0:/file.txt", PSP_O_RDONLY, 0777);
        if(file > 0)printf("File Opened\n");
        if(file <= 0)
        {
                printf("Failed Opening File, Exitting");
                sceKernelDelayThread(1000000);
                sceKernelExitGame();
        }
        sceKernelDelayThread(1000000);
        int write = sceIoWrite(file, file_data, 10);
        if(write > 0)printf("Data Written to file\n\n");
        if(write <= 0)
        {
                printf("Failed Writting to File, Exitting");
                sceKernelDelayThread(1000000);
                sceKernelExitGame();
        }
        sceKernelDelayThread(1000000);
        printf("Exitting Game...");
        sceKernelDelayThread(1000000);
        sceKernelExitGame();
    ...and sure enough it stuffed up at writing. Any help would be awesome, thanks

  27. #7407
    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

    Zitat Zitat von Xsjado7
    Hey guys, just need some help. Iv been trying to write to a file using the sce functions but iv got a problem. The program compiled fine and ran but whenever i tried to wright to a file nothing ever happend, i was just left with an empty file. I was pretty sure the problem was sceIoWrite() so i did a quick check with this:
    Code:
        char file_data[32];
        sprintf(file_data, "hello");
        int file = sceIoOpen("ms0:/file.txt", PSP_O_RDONLY, 0777);
        if(file > 0)printf("File Opened\n");
        if(file <= 0)
        {
                printf("Failed Opening File, Exitting");
                sceKernelDelayThread(1000000);
                sceKernelExitGame();
        }
        sceKernelDelayThread(1000000);
        int write = sceIoWrite(file, file_data, 10);
        if(write > 0)printf("Data Written to file\n\n");
        if(write <= 0)
        {
                printf("Failed Writting to File, Exitting");
                sceKernelDelayThread(1000000);
                sceKernelExitGame();
        }
        sceKernelDelayThread(1000000);
        printf("Exitting Game...");
        sceKernelDelayThread(1000000);
        sceKernelExitGame();
    ...and sure enough it stuffed up at writing. Any help would be awesome, thanks
    Well, for starts you opened the file with the flag PSP_O_RDONLY....

  28. #7408
    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

    Yep, the only problem I can see in the code is you are opening it in read only mode (PSP_O_RDONLY), you'll need to open it in read/write mode, which I believe is in the header. If you still have some problems let me know and I'll send you over some code you can work from.

    Oh, and does anyone know what the octal as the third agrument actually means? I think I read somewhere that it truncates the file, but is there a list somewhere in the SDK saying all the options?

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

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

  29. #7409
    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

    haha, my bad. i cant believe i missed that, im completely blind. thanks

  30. #7410
    QJ Gamer Silver
    Points: 14.087, Level: 77
    Level completed: 10%, Points required for next Level: 363
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Ort
    Germany
    Beiträge
    926
    Points
    14.087
    Level
    77
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Auraomega
    Oh, and does anyone know what the octal as the third agrument actually means? I think I read somewhere that it truncates the file, but is there a list somewhere in the SDK saying all the options?
    It's the posix style umask of the file when it gets created. Ie 0777 = read/write/execute all and that shouldn't be changed really.
    http://en.wikipedia.org/wiki/Umask
    Raphs board rules #31: Excessive use of punctuation is either a sign of a lesser ego or a small mind. Avoid it if you don't want to look like a total moron.
    Raphs board rules #17: When you need to ask whether you are capable of doing something, you are not.
    Raphs board rules #2: Exploits aren't found by changing version numbers, blindly merging data into a file or turning your PSP upside down.
    Raphs board rules #1: If you have no clue how exploits work, don't come up with ideas about them.


 

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:15 PM Uhr.

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