You write correctly using 3rd grade punctuation and spelling skills...
Consult Art for a working answer...
Printable View
You write correctly using 3rd grade punctuation and spelling skills...
Consult Art for a working answer...
You probably will have to mount flash1 like flash0.Zitat:
Zitat von hallo007
is there a way i can get my psp to act like x is being pressed when i press select & note
something like
if (pad_data.Buttons & PSP_CTRL_SELECT & PSP_CTRL_NOTE){
PSP_CTRL_CROSS
}
Not without hooking some functions.
Maybe if you explained exactly what you are trying to achieve we could offer an alternative idea.
basicly say one of your psp buttons stoped working this could be used to make a 2 buttons pressed together do what that button did befor.
-= Double Post =-
would this code be able to help with hooking
http://0okm.blogspot.com/2006/11/psp...-released.html
Yes. There's always RemaPSP as an alternative too.
i didZitat:
Zitat von SodR
Zitat:
Zitat von hallo007
Spoiler for Copy a file to flash1:
Some of you may know that in some Compiler IDE's, you have to tell the program your writing to wait for you. So that you can see your output.
With C I use getchar(); "mainly for simple programs, or just in the develpoment process" What I have here is two simple programs, the first one everyone knows.
Spoiler for Example :: Hello World:
Getting to my point and question
If I compile and run Hello World it paused and waited for me to hit a key. My second example I did.
Spoiler for Example :: Multiply two numbers:
When I go to run it I will enter my two numbers, but when I get the output. The console closes before I can see it. This has been bothering me all day. With no answers from goggle ...so far! I know some of you may say just to use Visual C++ or something of that nature, and it will pause it for me. Thats all good! What I have been doing lately is going through some different IDE's. Especially for use with Cygwin for PSP development. "Plus scrapping some of the rust off thats collected on my programming knowledge"
Maybe thats just it and I'm not seeing the obvious. Maybe someone can put my mind to ease. And I hope this wasn't a waste of time. Sorry if it was, I do need some sleep! :Argh:
Honestly, I would just use another scanf instead of getchar.
I be guessing you are using DevCpp for the IDE, I personally prefer Code::Blocks myself.
it flashes backup.mp3 as an folder:|Zitat:
Zitat von Moca
Add aZitat:
Zitat von HYde
right before you return the main function.Code:system("PAUSE");
hey, im a new programmer, and i just wondered if there was an equivalent to "scanf()" for the psp...if not is there a way i can easily replace this function?
thanks in advance
Huh? WTF!??!?? :)Zitat:
Zitat von hallo007
It does not :P :(
It's really not a problem now! Just thought it was weird how one program would stay open and the other wouldn't. I can't figure it out and I hate that.
Do you have code::blocks working with cygwin by chance?Zitat:
Zitat von yaustar
@Moonchil, yeah I know about system("pause"); personally I think its overkill.
Just throwing this out there, what IDE's are people useing that work good with cygwin?
Tried using functions in PSPUMD.h & I get these errors! How do i solve it?Code:$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -L. -L/usr/local/
pspdev/psp/sdk/lib main.o -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk
-lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspus
er -lpspkernel -o Saywhat.elf
main.o: In function `checkumd':
main.c:(.text+0x8): undefined reference to `sceUmdCheckMedium'
collect2: ld returned 1 exit status
make: *** [Saywhat.elf] Error 1
I even added these
LIBDIR =
LIBS = -lpspumd
LDFLAGS =
How do I solve it. Please help. PLease!
Crazy I was at this site yesterday I don't know how I didnt see this yesterday but this is a good FAQ about implementing a pause. Different examples some not portable and thats what im watching out for.
http://faq.cprogramming.com/cgi-bin/...&id=1043284385
Please post your source code. Please!Zitat:
Zitat von Mr305
Use it exactly as you would in non-PSP specific programming.Zitat:
Zitat von willolner
include stdio.h and just call scanf as you would normally.
-= Double Post =-
Make sure you have included pspumd.h in your code, and that your LIBS has -lpspumd.Zitat:
Zitat von Mr305
The output you gave did not have -lpspumd in the LIBS.
It's because after pressing enter to submit the last value the script will quickly move on and get to the getchar(), then seeing as you still are pressing enter it will move on.Zitat:
Zitat von HYde
If you added another getchar() right after the last scanf() then it would wait until you release the enter button and then press it again before continuing on the last getchar().
Heh, good call. I took the lazy road ;)Zitat:
Zitat von Insert_Witty_Name
Nice! I Knew it was going to be something as simple as that.Zitat:
Zitat von Waterbottle
wich icons are for wat (PIC0.png,...)
and how do you convert your mp3 to at3??
Use Goldwave or similar to change your MP3 to AT3.
PIC1.PNG is the large backround image of your eboot.
ICON0.PNG is the 144x80 image you see in the menu.
thnx i did it:)
but how do you let repeat the at3 song?
At the present time, you can't.
didn't art did it?
Please speak propper english or don't speak it at all...
Insomniac - The EBOOT AT3 music can be looped. I don't know how, I just know I've seen it. I liked the bg music of an app and let it play for 5 minutes or so...
i dont see what's wrong with that:
art = developerZitat:
didn't art did it
it= looping at3's
dind't= i am not sure , but i thnik
;)
I don't believe Art did his icon.
Zitat:
Zitat von ganon
-= Double Post =-Zitat:
Zitat von Art
Hallo007, are you from the states? It's like when im talking to my cousin from the phillipines. I got ya?
its ok, just a simple grammar error (i hate being a teacher), it would beZitat:
Zitat von hallo007
"didn't art do it?"
What does LL after a number mean?
example,
key * 6364136223846793005LL + 1;
At a wild guess, it means use this constant as a long long datatype.
http://publib.boulder.ibm.com/infoce...as400clr36.htm
That's pretty much it.
Same as you can put an 'f' at the end of a float to signify float (rather than double), as in '3.85f'.
It's useful if you want to use a value but not declare it as a variable and you want it to be a certain data type.
Cant you just do:
float(#)
(float)#
Or is that just for a variable?
hey can anyone point me to a tut on doing 3d games and also how to install/where to find the gui libary's(believe there the 3d ones) as i'm trying to re create my game i'm working on into 3d thanks in advance
edit: also i've searched this forum and ps2dev forums like: 3d, three,etc but now that i think of it i well try gui
For one, its called GU for one reason - Graphics Utility abbreviation. Not GUI.
Just thought Id say that...
And your best bet would be to go to psp-programming.com and find that 12 tutorial lesson for the GU in the forums.
o ok i wasn't sure between gu and gui anyways thanks i'll check them=-)(didn't think of psp-programming)
-= Double Post =-
ok sweet found them thanks a bunch this well really help
Hey all,
I need to know how to define a function for something I'm making.
Oh and more than or equal to and less than and equal to.
Thanks.
EDIT - is it just
?Code:void lol() {
printf("lololoolooooolllll");
}
//and then to call it
lol();
Is it supposed to be inside or outside the main loop?
I just want to make my code cleaner and more organized.
outisde of the mainfuction, yes.
> more than
< less than
>= more than or equal
<= less than or equal