Seite 305 von 340 ErsteErste ... 205 255 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 ... LetzteLetzte
Zeige Ergebnis 9.121 bis 9.150 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; are you kidding? EDIT: Actually ... he's right....

  
  1. #9121
    Banned for LIFE
    Points: 18.744, Level: 86
    Level completed: 79%, Points required for next Level: 106
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Ort
    East London, England
    Beiträge
    2
    Points
    18.744
    Level
    86
    Downloads
    0
    Uploads
    0

    Standard

    are you kidding?
    EDIT:

    Actually ... he's right.



  2. #9122
    QJ Gamer Blue
    Points: 5.672, Level: 48
    Level completed: 61%, Points required for next Level: 78
    Overall activity: 32,0%

    Registriert seit
    Dec 2007
    Ort
    Netherlands
    Beiträge
    148
    Points
    5.672
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Between the code tags?

    Edit:Damn, you know i mean the warnings, i didnt wrote the code for blit.c etc, so the warnings shouldnt be there?
    Geändert von basfreak (09-26-2008 um 12:27 PM Uhr)
    [SIZE="1"][color=#D1D1FF]______________________________________________________________[/color]
    [i]Last edited by basfreak; 01-01-1990 at [color=#666686]12:00 PM[/color][/i].[/SIZE]

  3. #9123
    QJ Gamer Bronze
    Points: 4.543, Level: 42
    Level completed: 97%, Points required for next Level: 7
    Overall activity: 0%

    Registriert seit
    Jun 2007
    Beiträge
    232
    Points
    4.543
    Level
    42
    Downloads
    0
    Uploads
    0

    Standard

    Warnings are just warnings and sometimes you can't fix the warnings.
    Don't worry about fixing those right now. Once you think you can do it, try it :)

  4. #9124
    I'm Baaaack!
    Points: 17.067, Level: 83
    Level completed: 44%, Points required for next Level: 283
    Overall activity: 52,0%

    Registriert seit
    May 2006
    Ort
    Nowhere
    Beiträge
    2.186
    Points
    17.067
    Level
    83
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von PirataNervo Beitrag anzeigen
    Warnings are just warnings and sometimes you can't fix the warnings.
    Don't worry about fixing those right now. Once you think you can do it, try it :)
    Actually, warnings should be treated as errors almost always. The code will still run, but it's still not good to have them, and it's usually quite easy to fix them.

  5. #9125
    Points: 2.908, Level: 33
    Level completed: 6%, Points required for next Level: 142
    Overall activity: 0%

    Registriert seit
    Nov 2007
    Beiträge
    21
    Points
    2.908
    Level
    33
    Downloads
    0
    Uploads
    0

    Standard

    someone knows some example of using libcurl/wifi initiating ??
    i have this example psp-programming.com/animate/wlan.rar but it doesnt want to run under 3xx kernel, i have slim and cant do it on 1.5

  6. #9126
    QJ Gamer Bronze
    Points: 6.517, Level: 52
    Level completed: 84%, Points required for next Level: 33
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Ort
    Ireland
    Beiträge
    978
    Points
    6.517
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    use this Time machine

    You can test your 1.5 kernel homebrew on it ;)

  7. #9127
    Points: 2.908, Level: 33
    Level completed: 6%, Points required for next Level: 142
    Overall activity: 0%

    Registriert seit
    Nov 2007
    Beiträge
    21
    Points
    2.908
    Level
    33
    Downloads
    0
    Uploads
    0

    Standard

    I don't have good pandora, anyway I don't want to use 1.5

  8. #9128
    QJ Gamer Silver
    Points: 8.475, Level: 62
    Level completed: 9%, Points required for next Level: 275
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Perth, Scotland
    Beiträge
    1.094
    Points
    8.475
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Well convert it to 3xx...

  9. #9129
    Points: 2.908, Level: 33
    Level completed: 6%, Points required for next Level: 142
    Overall activity: 0%

    Registriert seit
    Nov 2007
    Beiträge
    21
    Points
    2.908
    Level
    33
    Downloads
    0
    Uploads
    0

    Standard

    NO, I want libcurl samples for 3xx kernel

  10. #9130
    QJ Gamer Platinum
    Points: 57.528, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    h0000000rj
    Beiträge
    12.867
    Points
    57.528
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    If you're not willing to figure out how to convert a 1.50 app to the 3.xx/4.xx kernel, you won't make it as a PSP programmer.
    [I fail @ life]

  11. #9131
    Developer
    Points: 7.577, Level: 58
    Level completed: 14%, Points required for next Level: 173
    Overall activity: 0%

    Registriert seit
    Mar 2006
    Beiträge
    1.026
    Points
    7.577
    Level
    58
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von fiorello Beitrag anzeigen
    NO, I want libcurl samples for 3xx kernel
    There are non that I know of.

    If you can't convert my code from 1.5 to 3xx+ you're gonna face worse problems down the road.

    Check out my homebrew & C tutorials at http://insomniac.0x89.org/
    Coder formerly known as Insomniac197

    tshirtz: what is irshell ??
    Atarian_: it's where people who work for the IRS go when they die

  12. #9132
    Points: 2.908, Level: 33
    Level completed: 6%, Points required for next Level: 142
    Overall activity: 0%

    Registriert seit
    Nov 2007
    Beiträge
    21
    Points
    2.908
    Level
    33
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Insert_Witty_Name Beitrag anzeigen
    There are non that I know of.

    If you can't convert my code from 1.5 to 3xx+ you're gonna face worse problems down the road.
    I converted, it's no problem, but error 800200D9 appears and i have no idea what to do -_-'

    thats my makefile:

    TARGET = wlantest
    OBJS = main.o wifi.o

    #To build for custom firmware:
    BUILD_PRX = 1
    PSP_FW_VERSION=371


    INCDIR =
    CFLAGS = -G0 -Wall -O0 -fno-strict-aliasing
    CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
    ASFLAGS = $(CFLAGS)
    LIBDIR =
    LDFLAGS =
    LIBS= -lcurl -lz -lpspsdk -lpspwlan -lpspdebug

    EXTRA_TARGETS = EBOOT.PBP
    PSP_EBOOT_TITLE = PSPRPG
    PSP_EBOOT_ICON = ICON0.png


    PSPSDK=$(shell psp-config --pspsdk-path)

    include $(PSPSDK)/lib/build.mak

  13. #9133
    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

    You have to set the heap size.

    Add "PSP_HEAP_SIZE_KB(-1024);" to your main.c file, if you have a recent toolchain, otherwise try "PSP_HEAP_SIZE_KB(20000); ".

  14. #9134
    Points: 2.908, Level: 33
    Level completed: 6%, Points required for next Level: 142
    Overall activity: 0%

    Registriert seit
    Nov 2007
    Beiträge
    21
    Points
    2.908
    Level
    33
    Downloads
    0
    Uploads
    0

    Standard

    RLY ? I though to add this to code, lazy me ;p

    edit: hmm still not working
    Geändert von fiorello (09-27-2008 um 03:06 PM Uhr)

  15. #9135
    Developer
    Points: 7.577, Level: 58
    Level completed: 14%, Points required for next Level: 173
    Overall activity: 0%

    Registriert seit
    Mar 2006
    Beiträge
    1.026
    Points
    7.577
    Level
    58
    Downloads
    0
    Uploads
    0

    Standard

    You'll need to change it from kernel mode to user mode too, as well as remove the kernel mode function calls and replace them with user mode equivalents.

    Check out my homebrew & C tutorials at http://insomniac.0x89.org/
    Coder formerly known as Insomniac197

    tshirtz: what is irshell ??
    Atarian_: it's where people who work for the IRS go when they die

  16. #9136
    Points: 2.225, Level: 28
    Level completed: 50%, Points required for next Level: 75
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Sep 2008
    Beiträge
    2
    Points
    2.225
    Level
    28
    Downloads
    0
    Uploads
    0

    Standard

    I'm having trouble loading fonts with intraFont.

    This seems trivial, and the supplied example compiles and works on my psp, but doing it myself (only difference is that I use c++) it fails to load (it exits the game)

    The relevant code in main is just this:
    Code:
    int
    main ()
    {
    	pspDebugScreenInit();
    	setupCallbacks();
    
        if (!intraFontInit())
    		sceKernelExitGame();
    
    	// Load Fonts
        intraFont* ltn4;                                        
    	ltn4 = intraFontLoad("flash0:/font/ltn4.pgf", INTRAFONT_CACHE_ASCII);
    
    	if(!ltn4)
    		sceKernelExitGame();

  17. #9137
    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

    Start up PSPLink and debug it. Find the cause of the error. There are a few reasons your PSP will shutdown from that code (obviously). You should be able to find out yourself.

  18. #9138
    Points: 2.225, Level: 28
    Level completed: 50%, Points required for next Level: 75
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Sep 2008
    Beiträge
    2
    Points
    2.225
    Level
    28
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von _dysfunctional Beitrag anzeigen
    Start up PSPLink and debug it. Find the cause of the error. There are a few reasons your PSP will shutdown from that code (obviously). You should be able to find out yourself.
    Hmm, ok, I'll try to figure out how to use a debugger on the psp (hadn't needed to use one until now), but how could anything except the file not existing (which is not the case, I checked the flash0 just incase) be the problem if almost the exact same thing works in C?

    Thanks though, hopefully i can find a gdb-like debugger. (edit: wow, there exists a psp-gdb)
    Geändert von solinent (09-27-2008 um 07:36 PM Uhr)

  19. #9139
    QJ Gamer Blue
    Points: 5.672, Level: 48
    Level completed: 61%, Points required for next Level: 78
    Overall activity: 32,0%

    Registriert seit
    Dec 2007
    Ort
    Netherlands
    Beiträge
    148
    Points
    5.672
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Can some one please tell me how to patch functions?
    [SIZE="1"][color=#D1D1FF]______________________________________________________________[/color]
    [i]Last edited by basfreak; 01-01-1990 at [color=#666686]12:00 PM[/color][/i].[/SIZE]

  20. #9140
    QJ Gamer Silver
    Points: 8.475, Level: 62
    Level completed: 9%, Points required for next Level: 275
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Perth, Scotland
    Beiträge
    1.094
    Points
    8.475
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von basfreak Beitrag anzeigen
    Can some one please tell me how to patch functions?
    lol...

    How long is a piece of string?

  21. #9141
    Points: 2.908, Level: 33
    Level completed: 6%, Points required for next Level: 142
    Overall activity: 0%

    Registriert seit
    Nov 2007
    Beiträge
    21
    Points
    2.908
    Level
    33
    Downloads
    0
    Uploads
    0

    Standard

    So, anybody wants to help me with libcurl ?

  22. #9142
    QJ Gamer Blue
    Points: 5.672, Level: 48
    Level completed: 61%, Points required for next Level: 78
    Overall activity: 32,0%

    Registriert seit
    Dec 2007
    Ort
    Netherlands
    Beiträge
    148
    Points
    5.672
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Davee Beitrag anzeigen
    lol...

    How long is a piece of string?
    Okay what i ment, you know hellcats wallpaper changer?
    He does it too with the sceIoOpen function if it loads 01-12.bmp it loads his own from the ms.
    I saw his source but it isnt clear to me tough.
    [SIZE="1"][color=#D1D1FF]______________________________________________________________[/color]
    [i]Last edited by basfreak; 01-01-1990 at [color=#666686]12:00 PM[/color][/i].[/SIZE]

  23. #9143
    QJ Gamer Silver
    Points: 8.475, Level: 62
    Level completed: 9%, Points required for next Level: 275
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Perth, Scotland
    Beiträge
    1.094
    Points
    8.475
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von basfreak Beitrag anzeigen
    Okay what i ment, you know hellcats wallpaper changer?
    He does it too with the sceIoOpen function if it loads 01-12.bmp it loads his own from the ms.
    I saw his source but it isnt clear to me tough.
    Well if hooking isn't clear to you then maybe you shouldn't be doing it ;)

  24. #9144
    Points: 2.658, Level: 31
    Level completed: 39%, Points required for next Level: 92
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Beiträge
    47
    Points
    2.658
    Level
    31
    Downloads
    0
    Uploads
    0

    Standard

    Bas, google for stuff about hooking on psp. It's a little complicated, so it's going to take some effort to learn.

  25. #9145
    QJ Gamer Green
    Points: 5.712, Level: 48
    Level completed: 81%, Points required for next Level: 38
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    USA SC/NC
    Beiträge
    699
    Points
    5.712
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Davee Beitrag anzeigen
    Well if hooking isn't clear to you then maybe you shouldn't be doing it ;)
    Nonsense. If hooking isn't clear, then he should read up on it.

    Anyway, there is some nice code for hooking functions in the PSPLink source code. There's also a post on this forum by FreePlay that has some code for hooking functions.
    [CODE]Random Facts:
    irc://irc.malloc.us #wtf #**********
    [/CODE]

    [SIZE="6"][FONT="Century Gothic"][COLOR="Blue"][URL="http://forums.**********.net"]http://forums.**********.net[/URL][/COLOR][/FONT][/SIZE]

  26. #9146
    QJ Gamer Blue
    Points: 5.672, Level: 48
    Level completed: 61%, Points required for next Level: 78
    Overall activity: 32,0%

    Registriert seit
    Dec 2007
    Ort
    Netherlands
    Beiträge
    148
    Points
    5.672
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Thanks moca will take a look, any idea where the post from freeplay is?
    [SIZE="1"][color=#D1D1FF]______________________________________________________________[/color]
    [i]Last edited by basfreak; 01-01-1990 at [color=#666686]12:00 PM[/color][/i].[/SIZE]

  27. #9147
    Points: 2.658, Level: 31
    Level completed: 39%, Points required for next Level: 92
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Beiträge
    47
    Points
    2.658
    Level
    31
    Downloads
    0
    Uploads
    0

    Standard

    Thank you for that response, Moca. :)

    I'm also curious to find this thread. I've googled the site with a few different terms but I haven't been able to find Freeplay talking about hooking. Can you remember any other context from the discussion?

  28. #9148
    QJ Gamer Silver
    Points: 8.475, Level: 62
    Level completed: 9%, Points required for next Level: 275
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Perth, Scotland
    Beiträge
    1.094
    Points
    8.475
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Khatharr Beitrag anzeigen
    Thank you for that response, Moca. :)

    I'm also curious to find this thread. I've googled the site with a few different terms but I haven't been able to find Freeplay talking about hooking. Can you remember any other context from the discussion?
    I'm not surprised.

    http://www.x-fusion.co.uk/ModuleTutorialv1.pdf

    That will give you information on the module management and more.

  29. #9149
    QJ Gamer Green
    Points: 5.712, Level: 48
    Level completed: 81%, Points required for next Level: 38
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    USA SC/NC
    Beiträge
    699
    Points
    5.712
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Khatharr Beitrag anzeigen
    Thank you for that response, Moca. :)

    I'm also curious to find this thread. I've googled the site with a few different terms but I haven't been able to find Freeplay talking about hooking. Can you remember any other context from the discussion?
    Might not have been a post by FreePlay. I remember nothing else from the post.

    There's a lot of source code out there that should help you hook functions. The source code for Wildcard's firmware had some code for hooking functions in it. So did the source for CXMB.
    [CODE]Random Facts:
    irc://irc.malloc.us #wtf #**********
    [/CODE]

    [SIZE="6"][FONT="Century Gothic"][COLOR="Blue"][URL="http://forums.**********.net"]http://forums.**********.net[/URL][/COLOR][/FONT][/SIZE]

  30. #9150
    QJ Gamer Silver
    Points: 8.475, Level: 62
    Level completed: 9%, Points required for next Level: 275
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Perth, Scotland
    Beiträge
    1.094
    Points
    8.475
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Moca Beitrag anzeigen
    Might not have been a post by FreePlay. I remember nothing else from the post.

    There's a lot of source code out there that should help you hook functions. The source code for Wildcard's firmware had some code for hooking functions in it. So did the source for CXMB.
    Be careful with with the CXMB source. It hooks functions when they don't need to. For example they hook most of the Systemctrl functions, which, makes no sense.

    cfw patch game directory stuff

    Look at that post. Thats a simple hook of sceIoDopen.


 

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

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