![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on [RELEASE] OpenSource File browser within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hi guys, I've been working on a file browser last summer, and now, it has been finished for quite a ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
Hi guys,
I've been working on a file browser last summer, and now, it has been finished for quite a while, and I haven't a clue of what I could use it for... So, I just thought I would release the source code under GPL, so that other people can use it. Here are the few features that makes it a little more than a basic fil browser: -It has different themes you can change into the option menu -The display is made in a Rolodex style presentation, dunno if it means what I mean, but that's basically the same idea as Art used in his xflash (but coded from scratch). So, I like it ![]() -Other small stuff you'll discover. So, for any non developer, this is kind of a useless stuff, because if you run the eboot which is in the zip, you'll have a very nice file browser, but which won't do anything when you select a fle... So, if you do are a dev, just modify it a little, just adding the action you want to apply to the file selected, or modify it a lot, just remember to release it under gpl too, and to quote the author (myself )Of course, It'd be great if anyone using the source coud send a little mail to show me how they used it, I would love that! Here are is a screenshot of the browser with the default theme more are available on my flickr page. ![]() Don't hesitate to send a mail here: maxthebest.dev@gmail.com And, visit my web blog Download Source Code & (useless) Binaries Last edited by maxthebest; 10-01-2008 at 01:20 PM.. |
|
|
|
|
|
#4 |
![]() |
maxthebest:
Generally this "rolling way" is called a "rolodex" style presentation (if you ask me, and yeah I remember when rolodexes were still the iPhone/pda of the year gizmo.) See here for an example image of a now seemingly ancient (but surprisingly still not hard to find) uber desktop item. |
|
|
|
|
|
#5 |
![]() PSP Developer On Break
My Mood:
Join Date: Jan 2008
Real First Name: [The]Cobra
Location: New York
Just Played: GameLive Shell
Posts: 587
Trader Feedback: 0
|
maxthebest,cool thanks for giving the source code. it may be helpful for some people here.
__________________
Project:GameLive-Shell(Perc:19% | Ver: V0.1) |
|
|
|
|
|
#6 | ||
![]() |
Quote:
![]() Quote:
|
||
|
|
|
|
|
#7 |
![]() |
A few reasons why I wouldn't use this:
Well, good luck with this. I hope you don't take any of the above personally, I'm only trying to help. |
|
|
|
|
|
#8 |
![]() |
Well, thanks a lot for all of this, I' taking notes of this...
But, first, it first was a personal project, so, the variables names are very understandable for me, and that's all I cared about. I is not meant to be any kind of library, it's just a code sample I thought I wuld use, but didn't (yet), and any programer can use this in his text, as the tittle suggests, it's an open source file browser, and not a file browser library. About the debug stuff, I think that everyone uses the debug library for printing... maybe it's not great, but it works for me... and I don't know any other ways to print text. About including *.c files, I know it's evil, but well, it was easuer for me, and ... it works, lol What do you mean by generating manually colors? Anyways, thanks again, I'll try to remember that, but I have to say, about the variable names and place of declaration: I guess it depends on the programmer's choice, I feel like it's esier to have all the declarations at the same place, so, you know where to look for it. |
|
|
|
|
|
#9 |
![]() Enter Custom Title
Join Date: Sep 2006
Real First Name: Davee
Location: Perth, Scotland
Posts: 1,041
Trader Feedback: 0
|
Globals are slower than local vars.
__________________
VSH Scramble Patcher || VSH Module Descrambler || Unlimted Character Version Changer (5.00) |
|
|
|
|
|
#10 |
![]() ![]() Developer
|
Not necessarily but it does help the compiler optimise better at times. There are also some rare cases where using a global over a local variable can make it run faster.
@maxthebest: The advice given is for future reference and to make you a better programmer. Some the advice such as variable naming is more to do with working with other people and making it as easy as possible to work with your code.
__________________
[Blog] [Portfolio] [Homebrew Illuminati - Serious Homebrew Development Forums] [I want to make Homebrew FAQ] [How I broke into the Games Industry] [Programming Book List] [Programming Article List] Last edited by FreePlay; 10-01-2008 at 04:17 PM.. |
|
|
|
|
|
#12 |
![]() ![]() Developer
|
max, globals are variables declared at the top of the scope of the program
anyways, globals are not evil when making an damn game, i can understand why their evil in a library, but if your designing a game with a few function's that rely on multiple variables, it's far easier to have a global variable which can be easily accessed from any point in the program, than to have to pass a million parameters though your function
__________________
1. Failed....again... 2. http://slicer.gibbocool.com/ stay updated on all my projects |
|
|
|
|
|
#14 |
![]() |
max, if you're like me you do what works until you find (or are taught, rather than ridiculed into) a better way
![]() A short read that I've found quite helpful and touches on a lot of the previous comments, google for the pdf of: C & C++ Programming Style Guidelines Fred Richards |
|
|
|
|
|
#16 |
![]() ![]() Developer
|
globals should never be used in programs, in a library it is ok as you only use a few that you realy need as they are not visable to the software when the library is linked.
that is what you should try and keep to and is what \i try to keep to in my software, too many globals in software can cause major issues as your program grows
__________________
www.xart.co.uk coreXlib, old school library. ColorSync Display Profiles for MacBook (LG LCD) & New MacBook (AUO LCD) Profile for LG LP133WX1 Profile for AUO B133EW01 |
|
|
|
|
|
#17 | |
![]() Enter Custom Title
Join Date: Sep 2006
Real First Name: Davee
Location: Perth, Scotland
Posts: 1,041
Trader Feedback: 0
|
Quote:
__________________
VSH Scramble Patcher || VSH Module Descrambler || Unlimted Character Version Changer (5.00) |
|
|
|
|
|
|
#18 |
![]() ![]() Developer
|
Ideally, in that case you should pass it as a parameter to the function that needs it.
__________________
[Blog] [Portfolio] [Homebrew Illuminati - Serious Homebrew Development Forums] [I want to make Homebrew FAQ] [How I broke into the Games Industry] [Programming Book List] [Programming Article List] |
|
|
|
|
|
#19 | |
![]() PSP Developer On Break
My Mood:
Join Date: Jan 2008
Real First Name: [The]Cobra
Location: New York
Just Played: GameLive Shell
Posts: 587
Trader Feedback: 0
|
Quote:
__________________
Project:GameLive-Shell(Perc:19% | Ver: V0.1) |
|
|
|
|
|
|
#21 |
![]() Enter Custom Title
Join Date: Sep 2006
Real First Name: Davee
Location: Perth, Scotland
Posts: 1,041
Trader Feedback: 0
|
Yes, I know that, I'm not stupid. Sometimes however, it's just not possible to do that.
__________________
VSH Scramble Patcher || VSH Module Descrambler || Unlimted Character Version Changer (5.00) |
|
|
|
|
|
#22 |
![]() |
Such as?
__________________
[size=3][url=http://luaplayer.org/forums/index.php?topic=507]Complete Lua development cycle outline[/url][/size] |
|
|
|
|
|
#23 |
![]() Enter Custom Title
Join Date: Sep 2006
Real First Name: Davee
Location: Perth, Scotland
Posts: 1,041
Trader Feedback: 0
|
__________________
VSH Scramble Patcher || VSH Module Descrambler || Unlimted Character Version Changer (5.00) |
|
|
|
|
|
#24 |
![]() |
Function hooks aren't commonly used it programs in this sense, but I will agree they are one use for it.
__________________
[size=3][url=http://luaplayer.org/forums/index.php?topic=507]Complete Lua development cycle outline[/url][/size] |
|
|
|
|
|
#25 | |
![]() Enter Custom Title
Join Date: Sep 2006
Real First Name: Davee
Location: Perth, Scotland
Posts: 1,041
Trader Feedback: 0
|
Quote:
__________________
VSH Scramble Patcher || VSH Module Descrambler || Unlimted Character Version Changer (5.00) |
|
|
|
|
|
|
#26 |
![]() |
Well, I know in some cases it makes it pretty much easier to use globals, because sometimes, you're having troubles passing arrays in parameters (well, I had that kind of problem, dunno why... so I chose the easy way...)
|
|
|
|
|
|
#27 |
![]() ![]() Developer
|
Globals should never be used in general and you can write software with zero globals, for libs you never going to make any globals if used accessible so globals in lib can in away be ok to a point.
Any one writing software knows this. If you need a global you need to think again about your software code structure. I admit I have used globals myself as we have all done it as it is a lazy and quick and dirty hack out of a issue of recoding stuff but if global is used must be address in some stage of development of the software. One way you could easly solve your issue is to create a struct then pass it to a function, struct pointers
__________________
www.xart.co.uk coreXlib, old school library. ColorSync Display Profiles for MacBook (LG LCD) & New MacBook (AUO LCD) Profile for LG LP133WX1 Profile for AUO B133EW01 |
|
|
|
|
|
#28 | |
![]() Enter Custom Title
Join Date: Sep 2006
Real First Name: Davee
Location: Perth, Scotland
Posts: 1,041
Trader Feedback: 0
|
Quote:
For example if you need to check a certain file is opened. You would record the return SceUID into a global. Then when it comes to reading the file you would compare the passed SceUID with the one in the global.
__________________
VSH Scramble Patcher || VSH Module Descrambler || Unlimted Character Version Changer (5.00) |
|
|
|
|
|
|
#30 | |
![]() Enter Custom Title
Join Date: Sep 2006
Real First Name: Davee
Location: Perth, Scotland
Posts: 1,041
Trader Feedback: 0
|
Quote:
This is the PSP Development section afterall
__________________
VSH Scramble Patcher || VSH Module Descrambler || Unlimted Character Version Changer (5.00) |
|
|
|
|
![]() |
| Tags |
| browser , file , opensource , release |
| Thread Tools | |
|
|