Help with FileBrowser -> Excute files

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Question_dev
Posts: 88
Joined: Fri Aug 24, 2007 8:23 pm

Help with FileBrowser -> Excute files

Post by Question_dev »

/No helpers . :(
Last edited by Question_dev on Sun Mar 23, 2008 9:03 pm, edited 2 times in total.
PosX100
Posts: 98
Joined: Wed Aug 15, 2007 1:02 am

Post by PosX100 »

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.
Question_dev
Posts: 88
Joined: Fri Aug 24, 2007 8:23 pm

Post by Question_dev »

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...
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

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!
Last edited by Pirata Nervo on Sun Mar 23, 2008 8:05 pm, edited 1 time in total.
Image
Upgrade your PSP
Question_dev
Posts: 88
Joined: Fri Aug 24, 2007 8:23 pm

Post by Question_dev »

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 ??
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

"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.
Image
Upgrade your PSP
Question_dev
Posts: 88
Joined: Fri Aug 24, 2007 8:23 pm

Post by Question_dev »

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
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

Make sure you read and understand all files which coems in the file browser rar/zip and you will know.
Image
Upgrade your PSP
Question_dev
Posts: 88
Joined: Fri Aug 24, 2007 8:23 pm

Post by Question_dev »

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
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

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,
Image
Upgrade your PSP
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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.
If not actually, then potentially.
Post Reply