PDA

View Full Version : home:// drive mapping


countzero
2009-01-03, 00:21
As XBMC does not support relative paths (and resolves internally mapped drive letters to absolute paths in the 'path' table), one can not use the Library mode when using XBMC on a USB drive with a changing drive letter.

Is there any outlook on the implementation of a "home://" internal drive letter designation to accomodate for relative paths ?

http://xbmc.org/trac/ticket/5162

spiff
2009-01-03, 00:25
make it special://home/ please in the patch you obviously plan to submit since you opened a thread in the dev forum

countzero
2009-01-03, 07:20
I am happy to bollocks up xbmc code, but as I don't know python and am not familiar with xbmc coding style I don't think you would want me in there.

If someone could hint me in the right direction (i.e. which files are likely to refer to drive letter code) I would be happy to give it a go and tinker with the svn code myself.

althekiller
2009-01-03, 07:23
Lucky for you xbmc is C++. See xbmc/Application.cpp and xbmc/Util.cpp for a start. :)

countzero
2009-01-03, 07:25
Thanks; will do !

WiSo
2009-01-03, 12:54
We'll plan to change from drive letters to special path but I dunno if this address your problem. Even the special paths will be resolved to absolute path in the DB afaik. I would say this is a principal question on how we wanna store the paths in the DB.

countzero
2009-01-03, 14:55
Hmmm...I see.

Conceptually it would be polite if XBMC would allow for both relative and absolute paths. If I were to move XBMC to a different folder on the same hard disk, should things then still work or should this require reinstallation / rebuilding the database ? Having "home://" or "special://home" or the internal drive letters says "relative", but having the DB resolve paths says "absolute".

Also implementing a relative-to-absolute-path translator should leave all other code untouched.

(Thanks for having me on this forum + you are doing a great job + I can't code C++ and therefore should basically shut up :-)