Missing or invalid XML-Files - Analysis (1 Viewer)

McHep

Portal Member
February 2, 2005
18
0
Hi together,

i'm using the G-Force Visualize Add-In in Mediaplayer. Each time I start playing music and the G-Force Visualize starts each following switch to any other screen results with an error "Missing or invalid File ....".

No I debug Mediaportal to see what happens. When MP loads a skinfile it will be done relativ to the current directory with

_windowXmlFileName = GUIGraphicsContext.Skin + _windowXmlFileName.Substring(_windowXmlFileName.LastIndexOf("\\"));

This will function correctly if no other addin/plugin or whatever will not switch the directory to another path. And that is what happen when G-Force in Mediaplayer starts.

From my point of view it will be good to save the Mediaportal-Directory in a global and to open all skin-files in a way like

_windowXmlFileName = _mphomedirectory + GUIGraphicsContext.Skin + _windowXmlFileName.Substring(_windowXmlFileName.LastIndexOf("\\"));

In that way the files will be opened by an absolute path.

Hope it can be done in one of the next svn-builds.

Regards
 

Users who are viewing this thread

Top Bottom