![]() |
|
#21
|
|||
|
|||
|
Quote:
Code:
1156 music_title = file_browser(NULL); 1157 MP3_Load(music_title); 1158 MP3_Play(); Code:
PirataNervo@PirataNervoPC ~/meus/calculator $ make psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=150 -c -o main.c: In function 'main': main.c(1156) : error: incompatible types in assignment make: *** [main.o] Error 1 |
|
#22
|
|||
|
|||
|
ok, some problems with that code...theres actually a few more errors than the compiler caught...
1. i dont know the variable you declared, but it needs to be a char POINTER, not just a char like so Code:
char *location 2. in the long run, this is how your code should look... Code:
char *mp3location = filebrowser("ms0:/psp/blah/blah/blah/");
MP3_Load(mp3location);
MP3_Play();
__________________
![]() http://www.psp-hacks.com/file/1126 good programmers know something, then experiment. |
|
#23
|
|||
|
|||
|
well youre wrong when you say that NULL will do that.
NULL will be like this: ms0:/PSP/GAME/ EDIT: I forgot to say thanks. EDIT EDIT: and its ms0:/psp not ms0:psp but i think you know that this just for people that dont know and see that. |
|
#24
|
|||
|
|||
|
oop sorry thats true, i'll edit the post, well, did it work or what??? i just want to know, cuz i had that problem and dropped it because it didnt have the time, and i wanted to write my own file browser.... im just curious is all
__________________
![]() http://www.psp-hacks.com/file/1126 good programmers know something, then experiment. |
|
#25
|
|||
|
|||
|
no didnt work.
|
|
#26
|
|||
|
|||
|
*sigh* ok show me the code then....if not all then most because this problem might be elswhere
__________________
![]() http://www.psp-hacks.com/file/1126 good programmers know something, then experiment. |
|
#27
|
|||
|
|||
|
Its working now! wowow thanks. :mrgreen:
I had this: Code:
if (BrowserMenu == 1)
{
MP3_End();
MP3_Init(1);
char *music_title = file_browser(CustomDir);
MP3_Load(music_title);
MP3_Play();
}
And now i have this lol. Code:
if (BrowserMenu == 1)
{
MP3_End();
MP3_Init(1);
char *music_title = file_browser(CustomDir);
MP3_Load(music_title);
MP3_Play();
pspDebugScreenClear();
BrowserMenu = 0;
MediaPlayer = 1;
}
|
|
#28
|
|||
|
|||
|
glad to hear it then...
__________________
![]() http://www.psp-hacks.com/file/1126 good programmers know something, then experiment. |
|
#29
|
|||
|
|||
|
how do you put it on your psp? do you just copy it? and where do you copy it to?
|
|
#30
|
|||
|
|||
|
copy the folder calculator to the GAME150 folder.
EDIT: the screenshots are ok now. |
![]() |
|
|
|||
|
|||
|
|
| Thread Tools | |
| Display Modes | |
|
|