NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 51 52 53 54 55 … 93 Next »
SkinUtilities.FullActiveSkinPath

 
  • 0 Vote(s) - 0 Average
SkinUtilities.FullActiveSkinPath
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#1
2006-05-18, 06:22 AM
SkinUtilities.FullActiveSkinPath returns: "C:\Program Files\devnz\gbpvr\.\skin\Blue\"

What's with the dot between gbpvr and skin?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#2
2006-08-14, 08:44 PM
Bump. Anyone?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#3
2006-08-14, 08:52 PM
Probably because of this:
Code:
<RootSkinDirectory>.\skin\</RootSkinDirectory>
In the config.xml file.....but I'm guessing.
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#4
2006-08-14, 09:05 PM
McBainUK Wrote:SkinUtilities.FullActiveSkinPath returns: "C:\Program Files\devnz\gbpvr\.\skin\Blue\"

What's with the dot between gbpvr and skin?

Its a concatenation of InstallPath and SkinPath returned by core gbpvr functions.

"C:\Program Files\devnz\gbpvr\" + ".\skin\Blue\"

(I don't have any reference material handy else I would be more specific)
Learning new tricks!
Visit Plain Jane's Collection
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#5
2006-08-14, 09:26 PM
Is this something of mine? or something other library? The name didnt sound familar to me.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#6
2006-08-14, 09:49 PM
sub Wrote:Is this something of mine? or something other library? The name didnt sound familar to me.

PluginHelperFactory.getPluginHelper().GetSkinRootDirectory()
returns ".\skin\Blue\", which is annoying when trying to find the full path as:

Path.Combine( PluginHelperFactory.getPluginHelper().GetInstallDirectory()
returns "C:\Program Files\devnz\gbpvr\"

So when you Path.Combine() them you get: "C:\Program Files\devnz\gbpvr\.\skin\Blue\" which dosn't exist.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#7
2006-08-14, 09:55 PM
Quote:PluginHelperFactory.getPluginHelper().GetSkinRootDirectory()
returns ".\skin\Blue\"
Yes, thats correct.

Quote:which is annoying when trying to find the full path as:

Path.Combine( PluginHelperFactory.getPluginHelper().GetInstallDi rectory()
returns "C:\Program Files\devnz\gbpvr\"

So when you Path.Combine() them you get: "C:\Program Files\devnz\gbpvr\.\skin\Blue\" which dosn't exist.
So the problem is in your code where you're doing a Path.Combine()? I'd suggest the best fix is changing your code, finding some alternative instead of Path.Combine(). I'd prefer not change my code since its been this way for a couple of years, and there is bound be a plugin or two that will break if I change it.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#8
2006-08-14, 10:03 PM
Yeah I've sorted it in my code.

I just expected GetSkinRootDirectory() to return the full path. Thought I would bring it up it in case it was a bug.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#9
2006-08-15, 01:30 AM
McBainUK Wrote:So when you Path.Combine() them you get: "C:\Program Files\devnz\gbpvr\.\skin\Blue\" which dosn't exist.

Actually, it does exist. There is not a problem with this pathname. The "." refers to the current directory and is relative, when used in a full path like this, it acts like a NOP.

Try getting a directory listing of the path (without the final backslash) from the command line, it should work fine.
Learning new tricks!
Visit Plain Jane's Collection
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode