Yeah, after a couple of months without even looking at the code I've finally taken some time to sit down and programThis dll should be the most recent one.
I just gave it a try, but it didn't work. I found this in the log:
Code:
2007-05-08 17:18:17.281250 [Info.][MPMain]: window:MediaPortal.GUI.Home.GUIPlugIns init
2007-05-08 17:18:17.281250 [Info.][MPMain]: Exception :System.NullReferenceException: Object reference not set to an instance of an object.
at myEmulators.Class1.OnAction(Action action)
at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
at MediaPortalApp.OnAction(Action action)
2007-05-08 17:18:17.281250 [Info.][MPMain]: Exception :Object reference not set to an instance of an object.
2007-05-08 17:18:17.296875 [Info.][MPMain]: site :Void OnAction(MediaPortal.GUI.Library.Action)
2007-05-08 17:18:17.296875 [Info.][MPMain]: source :myEmulators
2007-05-08 17:18:17.296875 [Info.][MPMain]: stacktrace: at myEmulators.Class1.OnAction(Action action)
at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
at MediaPortalApp.OnAction(Action action)
2007-05-08 17:18:17.296875 [Info.][MPMain]: exception: Object reference not set to an instance of an object. myEmulators at myEmulators.Class1.OnAction(Action action)
at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
at MediaPortalApp.OnAction(Action action)
2007-05-08 17:18:17.296875 [Info.][MPMain]: Exception :System.Exception: exception occured ---> System.NullReferenceException: Object reference not set to an instance of an object.
at myEmulators.Class1.OnAction(Action action)
at MediaPortal.GUI.Library.GUIWindowManager.OnAction(Action action)
at MediaPortalApp.OnAction(Action action)
--- End of inner exception stack trace ---
at MediaPortalApp.OnAction(Action action)
at MediaPortal.GUI.Library.OnActionHandler.Invoke(Action action)
at MediaPortal.GUI.Library.GUIWindowManager.DispatchThreadMessages()
at MediaPortalApp.FrameMove()
2007-05-08 17:18:17.296875 [Info.][MPMain]: Exception :exception occured
2007-05-08 17:18:17.296875 [Info.][MPMain]: site :Void OnAction(MediaPortal.GUI.Library.Action)
2007-05-08 17:18:17.296875 [Info.][MPMain]: source :MediaPortal
2007-05-08 17:18:17.296875 [Info.][MPMain]: stacktrace: at MediaPortalApp.OnAction(Action action)
at MediaPortal.GUI.Library.OnActionHandler.Invoke(Action action)
at MediaPortal.GUI.Library.GUIWindowManager.DispatchThreadMessages()
at MediaPortalApp.FrameMove()
Do you need a new xml-file, too, or does it work with the last one? And have you thought about handling the translations with some fancy xml-stuff like other plugins do? I don't know if MP has some built-in features for it.
Until you released the new code I did the simply the following:
a) Edit myEmulators.xml and replaced the english strings with refernce-IDs.
b) Edit (in my case) strings_de.xml and added the referenced and now translated strings.
Another possibility is like Inker does in the MP TV-Series plugin with an extra xml-file for each language in a subdir in ./language. Perhaps you can ask him for some help/code.
Nevertheless: you solution should also does the job... but somehow not for me.
Best regards
G.B.
PS: Could you add the myEmulators.xml to the SVN?
Germany