![]() |
|
|||||||
| 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]" |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Team-XBMC Developer
Join Date: Oct 2003
Posts: 3,174
![]() |
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. |
|
|
|
|
|
#2 |
|
Team MediaPortal
Join Date: Sep 2003
Posts: 509
![]() |
__________________
XBMC Project Founder (Retired), now head programmer of MediaPortal |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2003
Posts: 7
![]() |
i just posted a feature request about just displaying default.xbe's. i should have read all the forums first.
very cool :d |
|
|
|
|
|
#4 |
|
Team-XBMC Developer
Join Date: Oct 2003
Posts: 3,174
![]() |
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. |
|
|
|
|
|
#5 |
|
Team-XBMC Project Manager
Join Date: Sep 2003
Location: Sweden
Posts: 10,582
![]() |
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. |
|
|
|
|
|
#6 |
|
Team-XBMC Developer
Join Date: Oct 2003
Posts: 3,174
![]() |
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. |
|
|
|
|
|
#7 |
|
Team-XBMC Developer
Join Date: Oct 2003
Posts: 3,174
![]() |
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. |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Oct 2003
Posts: 29
![]() |
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 * |
|
|
|
|
|
#9 |
|
Team-XBMC Developer
Join Date: Oct 2003
Posts: 3,174
![]() |
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. |
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Dec 2003
Posts: 12
![]() |
this should be added in!!!
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |