private void LoadSpecial(string gamePath) { var gl = new GameLoader(gamePath); gl.Load(); var entrySceneManager = gl.GetEntrySceneManager(); sceneManager.LoadingScene = gl.GetLoading(device); SetPropertyToScene(sceneManager.LoadingScene); var spriteResourceManager = new PPDFramework.Resource.SpriteResourceManager(device, entrySceneManager.SpriteDir); sceneManager.LoadingScene.ResourceManager = spriteResourceManager; sceneManager.LoadingScene.Load(); var scene = entrySceneManager.GetSceneWithArgs(device, Args, out Dictionary <string, object> dic); if (!String.IsNullOrEmpty(scene.SpriteDir)) { spriteResourceManager = new PPDFramework.Resource.SpriteResourceManager(device, scene.SpriteDir); } sceneManager.ChangeGame(scene, dic, spriteResourceManager); currentGame = gl; debugMode = true; }
private void ParseGameList(XmlReader reader) { while (reader.Read()) { if (reader.IsStartElement()) { switch (reader.LocalName) { case "Game": var sl = new GameLoader(Path.Combine("skins", reader.GetAttribute("Name"))); sl.Load(); games.Add(sl); break; } } } reader.Close(); }