Help with FileBrowser -> Excute files
-
- Posts: 88
- Joined: Fri Aug 24, 2007 8:23 pm
Help with FileBrowser -> Excute files
/No helpers . :(
Last edited by Question_dev on Sun Mar 23, 2008 9:03 pm, edited 2 times in total.
Im not trying to be smart ass or something...But...
Why you don't write your own file browser and you're wasting your time with pre-made code?
A file browser is a really easy thing to write(imagine the hole thing as a menu with dynamic elements).
You just need:
-file/folder structures/classes
-A function that scans current directory and writes the data in
a buffer : vector<your_class/structure>(C++) or your_class/structure* typename(C).
-With up/down keys you move one index up/down in array
-To render the text , you simply loop through all visible elements
and draw them on the screen using a gfx library.
-To execute a file/folder/app or whatever , simply , read the active element...
Edited:
And as for your current problem , i think you can't just run another application like that.
Someone else might be able to help you with this..
Why you don't write your own file browser and you're wasting your time with pre-made code?
A file browser is a really easy thing to write(imagine the hole thing as a menu with dynamic elements).
You just need:
-file/folder structures/classes
-A function that scans current directory and writes the data in
a buffer : vector<your_class/structure>(C++) or your_class/structure* typename(C).
-With up/down keys you move one index up/down in array
-To render the text , you simply loop through all visible elements
and draw them on the screen using a gfx library.
-To execute a file/folder/app or whatever , simply , read the active element...
Edited:
And as for your current problem , i think you can't just run another application like that.
Someone else might be able to help you with this..
Last edited by PosX100 on Sun Mar 23, 2008 7:24 pm, edited 1 time in total.
-
- Posts: 88
- Joined: Fri Aug 24, 2007 8:23 pm
I'm searching for a function to excute PBP files
And a function to view PNG files
And how to get back to main in main.c (SOmething like ReturnMe ?)
(And if possible, give ONLY THE FOLDERS another color, but that's not really needed..)
Tnx
@Pox100 : I have tried, but it's too difficult, plz help me out of this, then i understand how it works...
And a function to view PNG files
And how to get back to main in main.c (SOmething like ReturnMe ?)
(And if possible, give ONLY THE FOLDERS another color, but that's not really needed..)
Tnx
@Pox100 : I have tried, but it's too difficult, plz help me out of this, then i understand how it works...
-
- Posts: 409
- Joined: Tue Oct 09, 2007 4:22 am
Question dev, LEARN C AND HOW TO DEVELOP HOMEBREW FOR PSP before going into advanced C programming!!
Damn, LEARN, LEARNM LEARN AND LEARN!
DONT ask for "samples" or "snippets"!!
NO ONE DOES.
If you really want to LEARN, make some research, it may take MONTHS or just a day, BUT please, STOP FROM ASKING FOR HELP ON SUCH AN EASY THING LIKE DISPLAYING IMAGES!
Damn, LEARN, LEARNM LEARN AND LEARN!
DONT ask for "samples" or "snippets"!!
NO ONE DOES.
If you really want to LEARN, make some research, it may take MONTHS or just a day, BUT please, STOP FROM ASKING FOR HELP ON SUCH AN EASY THING LIKE DISPLAYING IMAGES!
Last edited by Pirata Nervo on Sun Mar 23, 2008 8:05 pm, edited 1 time in total.
-
- Posts: 88
- Joined: Fri Aug 24, 2007 8:23 pm
-
- Posts: 409
- Joined: Tue Oct 09, 2007 4:22 am
-
- Posts: 88
- Joined: Fri Aug 24, 2007 8:23 pm
-
- Posts: 409
- Joined: Tue Oct 09, 2007 4:22 am
-
- Posts: 88
- Joined: Fri Aug 24, 2007 8:23 pm
-
- Posts: 409
- Joined: Tue Oct 09, 2007 4:22 am
Here is a filebrowser I have used for the PSP:
http://www.psp-programming.com/forums/i ... pic=1333.0
It puts the selected path in a string array for you.
Pirata Nervo is probably right. I have my doubts you will be able to do anything with it
if you have to ask how to make selections various colours and other such simple stuff.
http://www.psp-programming.com/forums/i ... pic=1333.0
It puts the selected path in a string array for you.
Pirata Nervo is probably right. I have my doubts you will be able to do anything with it
if you have to ask how to make selections various colours and other such simple stuff.
If not actually, then potentially.