| View previous topic :: View next topic |
| Author |
Message |
Question_dev
Joined: 24 Aug 2007 Posts: 88
|
Posted: Sun Mar 23, 2008 6:37 pm Post subject: 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 |
|
| Back to top |
|
 |
PosX100
Joined: 15 Aug 2007 Posts: 98
|
Posted: Sun Mar 23, 2008 7:16 pm Post subject: |
|
|
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..
Last edited by PosX100 on Sun Mar 23, 2008 7:24 pm; edited 1 time in total |
|
| Back to top |
|
 |
Question_dev
Joined: 24 Aug 2007 Posts: 88
|
Posted: Sun Mar 23, 2008 7:22 pm Post subject: |
|
|
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... |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Sun Mar 23, 2008 8:02 pm Post subject: |
|
|
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! _________________
Upgrade your PSP
Last edited by Pirata Nervo on Sun Mar 23, 2008 8:05 pm; edited 1 time in total |
|
| Back to top |
|
 |
Question_dev
Joined: 24 Aug 2007 Posts: 88
|
Posted: Sun Mar 23, 2008 8:05 pm Post subject: |
|
|
I'm learning.
I just want to make this but i search for help ....
I now how to display images, etc...
But how do i get the file path of the selected file to load ?? |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Sun Mar 23, 2008 8:06 pm Post subject: |
|
|
"you are learning".
YOU MUST KNOW C when going into advanced C programming!
If you are learning C yet, then start by displaying text or blitting imges. _________________
Upgrade your PSP |
|
| Back to top |
|
 |
Question_dev
Joined: 24 Aug 2007 Posts: 88
|
Posted: Sun Mar 23, 2008 8:09 pm Post subject: |
|
|
I did ....
Pirata Nervo, what need i to use to get the file path of the selected file to load ?
Tnx
If i have this i can code it by myself |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Sun Mar 23, 2008 8:10 pm Post subject: |
|
|
Make sure you read and understand all files which coems in the file browser rar/zip and you will know. _________________
Upgrade your PSP |
|
| Back to top |
|
 |
Question_dev
Joined: 24 Aug 2007 Posts: 88
|
Posted: Sun Mar 23, 2008 8:13 pm Post subject: |
|
|
I can't find it in filebrowser.c so i will take a look at the other files.
If i can't find, plz don't be an egoist and explain me
EDIT : Sorry, can't find info in the other files |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Sun Mar 23, 2008 11:17 pm Post subject: |
|
|
If you can't, then you should learn more C because you are not understanding it.
I am NOT a C teacher, if you were having problems with something and you if you knew what you were doing, I would help you, but in this case, I won't help you with something you won't understand, _________________
Upgrade your PSP |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Mon Mar 24, 2008 3:17 pm Post subject: |
|
|
Here is a filebrowser I have used for the PSP:
http://www.psp-programming.com/forums/index.php?topic=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. |
|
| Back to top |
|
 |
|