NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 25 26 27 28 29 … 93 Next »
PluginHelper.GetSkinRootDirectory(); returns "skin" and not "skin2"

 
  • 0 Vote(s) - 0 Average
PluginHelper.GetSkinRootDirectory(); returns "skin" and not "skin2"
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2009-02-10, 07:47 PM
hey sub, i think i found a bug.

PluginHelper.GetSkinRootDirectory();
returns the "skin" directory and not "skin2"
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#2
2009-02-10, 08:08 PM
reven Wrote:hey sub, i think i found a bug.

PluginHelper.GetSkinRootDirectory();
returns the "skin" directory and not "skin2"

That's probably a pre-pvrx2 based method.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#3
2009-02-10, 08:15 PM
Yeah, sorry it still returns "skin" for compatibility with the legacy plugins. You can probably do a .Replace("\\skin\\", "\\skin2\\").
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#4
2009-02-11, 02:12 AM
yeah i ended up replacing it like that, but dont want to hard code that replacement incase the skin directory changes (reverts back to just being skin).

is there anyway for the pluginhelper to detect the assembly its excuting from, and if its PVRX2 return the correct path?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#5
2009-02-11, 02:32 AM
reven Wrote:is there anyway for the pluginhelper to detect the assembly its excuting from, and if its PVRX2 return the correct path?
PVRX2 can run old legacy plugins too, so I cant make that assumption.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#6
2009-02-11, 08:39 AM
oh bugger. im just concerned that hardcoding the path could break if the skin2 path name was ever changed
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#7
2009-02-11, 03:15 PM
I'm not intending to change the skin2 part of the name, so you're pretty safe. In two place I've done "PluginHelper.GetSkinRootDirectory().Replace("\\skin\\", "\\skin2\\");" myself, so you're pretty safe doing it if you need to.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  is there a service?method which returns listings for multiple channels? reven 16 6,868 2022-04-11, 04:30 PM
Last Post: mandai
  API request returns xml on error scJohn 4 1,891 2020-08-25, 05:41 PM
Last Post: sub
  Skin help (correct location?) SFX Group 4 3,861 2018-01-24, 07:42 AM
Last Post: pBS
  skin question pBS 2 3,332 2016-06-18, 07:03 PM
Last Post: pBS
  Skin - view further into the future, scale the guide Vitenka 5 3,249 2014-11-26, 07:28 PM
Last Post: Vitenka
  Skin element Details in NowNext Jaggy 2 1,778 2011-09-19, 11:50 PM
Last Post: Jaggy
  Skin Help with Line Drawing Northpole 2 1,895 2011-07-19, 05:14 PM
Last Post: Northpole
  Anyone interested in developing a Skin Plugin? Hairy 13 4,959 2011-07-10, 04:13 PM
Last Post: mvallevand
  Skin help needed for EventDetails.xml bgowland 7 3,281 2011-06-26, 11:55 PM
Last Post: Jaggy
  Skin question - how to centre a list UiList control on screen? McBainUK 2 1,832 2011-02-17, 08:46 AM
Last Post: McBainUK

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

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

Linear Mode
Threaded Mode