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....
-
09-26-2008, 12:01 PM #9121Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
are you kidding?
EDIT:
Actually ... he's right.
-
09-26-2008, 12:11 PM #9122QJ Gamer Blue
- Registriert seit
- Dec 2007
- Ort
- Netherlands
- Beiträge
- 148
- Points
- 5.672
- Level
- 48
- Downloads
- 0
- Uploads
- 0
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]
-
09-26-2008, 11:20 PM #9123QJ Gamer Bronze

- Registriert seit
- Jun 2007
- Beiträge
- 232
- Points
- 4.543
- Level
- 42
- Downloads
- 0
- Uploads
- 0
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 :)
-
09-27-2008, 06:14 AM #9124I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
-
09-27-2008, 08:13 AM #9125
- Registriert seit
- Nov 2007
- Beiträge
- 21
- Points
- 2.908
- Level
- 33
- Downloads
- 0
- Uploads
- 0
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
-
09-27-2008, 08:18 AM #9126QJ Gamer Bronze
- Registriert seit
- Apr 2008
- Ort
- Ireland
- Beiträge
- 978
- Points
- 6.517
- Level
- 52
- Downloads
- 0
- Uploads
- 0
use this Time machine
You can test your 1.5 kernel homebrew on it ;)
-
09-27-2008, 09:35 AM #9127
- Registriert seit
- Nov 2007
- Beiträge
- 21
- Points
- 2.908
- Level
- 33
- Downloads
- 0
- Uploads
- 0
I don't have good pandora, anyway I don't want to use 1.5
-
09-27-2008, 10:01 AM #9128QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Perth, Scotland
- Beiträge
- 1.094
- Points
- 8.475
- Level
- 62
- Downloads
- 0
- Uploads
- 0
Well convert it to 3xx...
-
09-27-2008, 10:59 AM #9129
- Registriert seit
- Nov 2007
- Beiträge
- 21
- Points
- 2.908
- Level
- 33
- Downloads
- 0
- Uploads
- 0
NO, I want libcurl samples for 3xx kernel
-
09-27-2008, 11:45 AM #9130QJ Gamer Platinum
- Registriert seit
- Dec 2005
- Ort
- h0000000rj
- Beiträge
- 12.867
- Points
- 57.528
- Level
- 100
- Downloads
- 0
- Uploads
- 0
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]
-
09-27-2008, 11:51 AM #9131Developer

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

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
-
09-27-2008, 02:42 PM #9132
- Registriert seit
- Nov 2007
- Beiträge
- 21
- Points
- 2.908
- Level
- 33
- Downloads
- 0
- Uploads
- 0
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
-
09-27-2008, 02:52 PM #9133QJ Gamer Blue
- Registriert seit
- Jul 2007
- Beiträge
- 296
- Points
- 3.795
- Level
- 38
- Downloads
- 0
- Uploads
- 0
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); ".
-
09-27-2008, 02:55 PM #9134
- Registriert seit
- Nov 2007
- Beiträge
- 21
- Points
- 2.908
- Level
- 33
- Downloads
- 0
- Uploads
- 0
RLY ? I though to add this to code, lazy me ;p
edit: hmm still not workingGeändert von fiorello (09-27-2008 um 03:06 PM Uhr)
-
09-27-2008, 03:52 PM #9135Developer

- Registriert seit
- Mar 2006
- Beiträge
- 1.026
- Points
- 7.577
- Level
- 58
- Downloads
- 0
- Uploads
- 0
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
-
09-27-2008, 07:15 PM #9136
Achievements:
- Registriert seit
- Sep 2008
- Beiträge
- 2
- Points
- 2.225
- Level
- 28
- Downloads
- 0
- Uploads
- 0
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();
-
09-27-2008, 07:18 PM #9137QJ Gamer Blue
- Registriert seit
- Jul 2007
- Beiträge
- 296
- Points
- 3.795
- Level
- 38
- Downloads
- 0
- Uploads
- 0
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.
-
09-27-2008, 07:23 PM #9138
Achievements:
- Registriert seit
- Sep 2008
- Beiträge
- 2
- Points
- 2.225
- Level
- 28
- Downloads
- 0
- Uploads
- 0
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)
-
09-28-2008, 12:58 AM #9139QJ Gamer Blue
- Registriert seit
- Dec 2007
- Ort
- Netherlands
- Beiträge
- 148
- Points
- 5.672
- Level
- 48
- Downloads
- 0
- Uploads
- 0
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]
-
09-28-2008, 04:40 AM #9140QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Perth, Scotland
- Beiträge
- 1.094
- Points
- 8.475
- Level
- 62
- Downloads
- 0
- Uploads
- 0
-
09-28-2008, 06:51 AM #9141
- Registriert seit
- Nov 2007
- Beiträge
- 21
- Points
- 2.908
- Level
- 33
- Downloads
- 0
- Uploads
- 0
So, anybody wants to help me with libcurl ?
-
09-28-2008, 06:59 AM #9142QJ Gamer Blue
- Registriert seit
- Dec 2007
- Ort
- Netherlands
- Beiträge
- 148
- Points
- 5.672
- Level
- 48
- Downloads
- 0
- Uploads
- 0
[SIZE="1"][color=#D1D1FF]______________________________________________________________[/color]
[i]Last edited by basfreak; 01-01-1990 at [color=#666686]12:00 PM[/color][/i].[/SIZE]
-
09-28-2008, 07:20 AM #9143QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Perth, Scotland
- Beiträge
- 1.094
- Points
- 8.475
- Level
- 62
- Downloads
- 0
- Uploads
- 0
-
09-29-2008, 04:34 PM #9144
- Registriert seit
- Apr 2008
- Beiträge
- 47
- Points
- 2.658
- Level
- 31
- Downloads
- 0
- Uploads
- 0
Bas, google for stuff about hooking on psp. It's a little complicated, so it's going to take some effort to learn.
-
09-29-2008, 08:33 PM #9145QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- USA SC/NC
- Beiträge
- 699
- Points
- 5.712
- Level
- 48
- Downloads
- 0
- Uploads
- 0
[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]
-
09-30-2008, 08:11 AM #9146QJ Gamer Blue
- Registriert seit
- Dec 2007
- Ort
- Netherlands
- Beiträge
- 148
- Points
- 5.672
- Level
- 48
- Downloads
- 0
- Uploads
- 0
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]
-
10-04-2008, 02:34 PM #9147
- Registriert seit
- Apr 2008
- Beiträge
- 47
- Points
- 2.658
- Level
- 31
- Downloads
- 0
- Uploads
- 0
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?
-
10-04-2008, 03:55 PM #9148QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Perth, Scotland
- Beiträge
- 1.094
- Points
- 8.475
- Level
- 62
- Downloads
- 0
- Uploads
- 0
I'm not surprised.
http://www.x-fusion.co.uk/ModuleTutorialv1.pdf
That will give you information on the module management and more.
-
10-04-2008, 11:17 PM #9149QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- USA SC/NC
- Beiträge
- 699
- Points
- 5.712
- Level
- 48
- Downloads
- 0
- Uploads
- 0
[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]
-
10-05-2008, 03:14 AM #9150QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Perth, Scotland
- Beiträge
- 1.094
- Points
- 8.475
- Level
- 62
- Downloads
- 0
- Uploads
- 0
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.


LinkBack URL
About LinkBacks
Mit Zitat antworten



Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum