PDA

View Full Version : NetRemote Directory Location Function?



NeoMorph
October 3rd, 2007, 02:06 AM
Is there a lua function that returns the directory where Girder resides so I can locate a graphic I have installed in that directory.

For example I have a "NoCoverArt.jpg" file I have put into the girder directory that I want to send to NR if the cover art is not available. Now I could use absolute addressing but if I eventually distribute this XBMC package for other Girder/NR users it won't work if their Girder install is non-standard.

Sorry if I'm asking a lot of questions today but I have looked elsewhere and the helpfile isn't helping.

Thanks in advance,

harleydude
October 3rd, 2007, 04:22 AM
local girfolder = win.GetDirectory('GIRDERDIR')

mhwlng
October 3rd, 2007, 04:26 AM
win.GetDirectory ("GIRDERDIR")

edit: too late :-)

Marcel

NeoMorph
October 3rd, 2007, 05:59 AM
Thanks both of you.

I really have got to print out the entire help file and then read through it because searching though it doesn't help much (no pun intended lol).

It's little nuggets like this that are hard to figure out but if you have done any programming you know this is an essential function. Trying to find it in the manual is harder than the function itself heh.

NeoMorph
November 9th, 2007, 09:26 PM
Just tried to do a win.GetDirectory("NetRemoteDir") but NR doesn't recognise the command...

Is there a command that lets you get the current install directory of NR or better yet the location of the CCF? I've looked through the docs but there doesn't seem to be anything there that covers it.

mhwlng
November 9th, 2007, 11:04 PM
NetRemote.GetVariable("NR.InstallDir")
NetRemote.GetVariable("NR.FILE.Path")

Marcel

NeoMorph
November 10th, 2007, 02:56 AM
Cheers Marcel...