XBMC Community Forum  

Go Back   XBMC Community Forum > Development > XBMC Development

XBMC Development Developers forums for XBMC related development. Programmers/Coders only!
No end-user support, no bug reports, and no feature/function requests here!
Please, add platform prefix for suggestions that are not platform-independent!:
Thread prefixes; "[LINUX]", "[LIVE]", "[MAC]", "[WINDOWS]", and "[XBOX]"

Reply
 
Thread Tools Search this Thread Display Modes
Old 2003-10-07, 06:42   #1
tslayer
Team-XBMC Developer
 
tslayer's Avatar
 
Join Date: Oct 2003
Posts: 3,174
tslayer is on a distinguished road
Default

so.. i've taken a first stab at helping out with xbmc and basically, i feel as though to be able to use xbmc as a dashboard, the loading/display of the programs needed to be faster when large directories were involved.

xbmp had the option of flatten directory as well as only showing default apps. xbmc does not yet have that and i took the liberty of adding some code to take this into account.

but, this is my first time trying xbox programming, so i am not sure how good my code is.

anyhow, what i did was add an option to only display default.xbe when displaying the bookmarks. as well, i have added added the flatten hierarchy that was there in xbmp.

in loaddirectory i also added some code such that if you are flattening the directory, it will first look for xbe before recursing into subdirectories. the code in loaddirectory will obviously recursively call itself to look into subdirectories. so, when testing, it all looks fairly good and a lot faster than it was with xbmp. it would normally take about 5 minutes to load my games directory (about 15 games) because some games had over 1000 files and things like that.

anyhow, enough babbling. off to the real point here...

i've noticed that it is possible to brows up to a directory prior to what is defined in the bookmarks. now, i want to add some checks such that ".." would be ignored and not displayed if the current directory is one of the bookmarks. is that a safe assumption to make? (obviously, if flatten directory is set, ".." would not be displayed at all).

also, my changes have been made so that if default applications is used, then scan will only create shortcuts for default.xbe.

also, it seems that when going to the shortcuts menu option, going to ".." will show you the xbmc root directory.. i can probably take a look into that as well.

anyhow, is there a way i should or could show somebody the code i did so that i can get some feedback?

thanks a lot,

ts
__________________
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
tslayer is offline   Reply With Quote
Old 2003-10-07, 08:20   #2
Frodo
Team MediaPortal
 
Join Date: Sep 2003
Posts: 509
Frodo is on a distinguished road
Default

sounds good
please upload any patches to sourcesafe
like here

frodo
__________________
XBMC Project Founder (Retired), now head programmer of MediaPortal
Frodo is offline   Reply With Quote
Old 2003-10-08, 11:38   #3
Fluffster
Junior Member
 
Join Date: Oct 2003
Posts: 7
Fluffster is on a distinguished road
Default

i just posted a feature request about just displaying default.xbe's. i should have read all the forums first.
very cool :d
Fluffster is offline   Reply With Quote
Old 2003-10-08, 19:46   #4
tslayer
Team-XBMC Developer
 
tslayer's Avatar
 
Join Date: Oct 2003
Posts: 3,174
tslayer is on a distinguished road
Default

ooopss.. i guess i better finish the code and then post a patch. maybe you can help test it for me to see whether i am missing anything.

i'll let you know..
__________________
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
tslayer is offline   Reply With Quote
Old 2003-10-08, 20:02   #5
Gamester17
Team-XBMC Project Manager
 
Gamester17's Avatar
 
Join Date: Sep 2003
Location: Sweden
Posts: 10,582
Gamester17 will become famous soon enough
Thumbs up

please remember to make sure that getting name from xbe/folder is is case sensitive, tia
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Gamester17 is offline   Reply With Quote
Old 2003-10-08, 20:08   #6
tslayer
Team-XBMC Developer
 
tslayer's Avatar
 
Join Date: Oct 2003
Posts: 3,174
tslayer is on a distinguished road
Default

getting default xbe will use the following which does should work:

bool cutil::isdefaultxbe(const cstdstring& strfilename)
{
char* pfilename=getfilename(strfilename);
if (!pfilename) return false;
if (cutil::cmpnocase(pfilename, "default.xbe")==0) return true;
return false;
}


as for folders, i havn't changed anything in that really.. i'll check through the changes i made though.
__________________
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
tslayer is offline   Reply With Quote
Old 2003-10-09, 05:22   #7
tslayer
Team-XBMC Developer
 
tslayer's Avatar
 
Join Date: Oct 2003
Posts: 3,174
tslayer is on a distinguished road
Default

hey..

i've uploaded my patch here: https://sourceforge.net/tracker....=581840

if somebody can try it or let me know where i have gone wrong or what i could have done to make it better, that would be great.

thanks a lot!

ts
__________________
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
tslayer is offline   Reply With Quote
Old 2004-01-22, 01:14   #8
calle81
Junior Member
 
Join Date: Oct 2003
Posts: 29
calle81 is on a distinguished road
Thumbs up

hello

why hasnt this been implemented? it would be great if you could choose to show only the default.xbe. as it is now many apps use a launcher named default.xbe and have several other xbes that shouldnt be launced indepenently, like mame and surreal64. this makes the my programs view very cluttered.

hope i make sense *
calle81 is offline   Reply With Quote
Old 2004-01-22, 02:36   #9
tslayer
Team-XBMC Developer
 
tslayer's Avatar
 
Join Date: Oct 2003
Posts: 3,174
tslayer is on a distinguished road
Default

does not look like it is gonna be included.

maybe the devs have something else in mind.

ts
__________________
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
tslayer is offline   Reply With Quote
Old 2004-01-22, 19:01   #10
ripcurl
Junior Member
 
Join Date: Dec 2003
Posts: 12
ripcurl is on a distinguished road
Default

this should be added in!!!
ripcurl is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My Programs to No Programs? GoldMasterPain XBMC for Xbox Specific Support 5 2005-11-16 23:22
No programs.. joepmeloen XBMC for Xbox Specific Support 0 2004-10-28 01:34
All programs gone! wheezzl XBMC for Xbox Specific Support 2 2004-10-02 17:52
Under MY Programs mrblue XBMC for Xbox Specific Support 2 2004-09-12 17:26
My Programs Frodo XBMC Tips, Tricks, and HOW-TO (Step-by-Step Guides) 0 2003-10-02 13:19


All times are GMT +2. The time now is 23:44.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project