home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Films
MyFilms New version v4.0
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="hwahrmann" data-source="post: 154457" data-attributes="member: 10391"><p>Zebons,</p><p></p><p>it is not the Music setup, which is changing the path, but the Visualisation itself, like for example SoundSpectrum G-Force or Sonique Vis in this case.</p><p>However you should never rely on the Path being set correctly.</p><p></p><p>We've therefore introduced in August last year the Config Service Provider, which makes use of directoy locations stored in MediaportalDirs.xml.</p><p>This gives us the chance to change any directory location.</p><p>In your case, you are reading/writing a config file, which should go into the "Config" path set in MediaPortalDirs.xml.</p><p></p><p>So to address your file you should do:</p><p></p><p>string myFilmsPath = Config.GetFile(Config.Dir.Config, "MyFilms.xml");</p><p></p><p>While the method with Application.StartupPath would work as well, this could lead for your file being the only xml file in the MP Root dir, if we probably choose to move all xml files to a subdir named Config for example.</p><p></p><p>hope this help.</p><p></p><p>regards,</p><p></p><p>Helmut</p></blockquote><p></p>
[QUOTE="hwahrmann, post: 154457, member: 10391"] Zebons, it is not the Music setup, which is changing the path, but the Visualisation itself, like for example SoundSpectrum G-Force or Sonique Vis in this case. However you should never rely on the Path being set correctly. We've therefore introduced in August last year the Config Service Provider, which makes use of directoy locations stored in MediaportalDirs.xml. This gives us the chance to change any directory location. In your case, you are reading/writing a config file, which should go into the "Config" path set in MediaPortalDirs.xml. So to address your file you should do: string myFilmsPath = Config.GetFile(Config.Dir.Config, "MyFilms.xml"); While the method with Application.StartupPath would work as well, this could lead for your file being the only xml file in the MP Root dir, if we probably choose to move all xml files to a subdir named Config for example. hope this help. regards, Helmut [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Films
MyFilms New version v4.0
Contact us
RSS
Top
Bottom