private void UpdateVistaGameExplorerResources(string newExeName)
{
if (Factory.AGSEditor.CurrentGame.Settings.GameExplorerEnabled)
{
string xml = GenerateGameExplorerXML();
Factory.NativeProxy.UpdateGameExplorerXML(newExeName, Encoding.UTF8.GetBytes(xml));
if (File.Exists(AGSEditor.GAME_EXPLORER_THUMBNAIL_FILE_NAME))
{
BinaryReader br = new BinaryReader(new FileStream(AGSEditor.GAME_EXPLORER_THUMBNAIL_FILE_NAME, FileMode.Open, FileAccess.Read));
byte[] data = br.ReadBytes((int)br.BaseStream.Length);
br.Close();
Factory.NativeProxy.UpdateGameExplorerThumbnail(newExeName, data);
}
}
else
{
Factory.NativeProxy.UpdateGameExplorerXML(newExeName, null);
}
}