/// <summary> /// Saves the texture dictionary to a file. /// </summary> public void Save(string fileName) { var w = new TextureDictionaryWrapper_GTA5_pc(textureDictionary); w.UpdateClass(); var resource = new ResourceFile_GTA5_pc<TextureDictionary_GTA5_pc>(); resource.ResourceData = textureDictionary; resource.Version = 13; resource.Save(fileName); }
public void Save(Stream stream) { var w = new TextureDictionaryWrapper_GTA5_pc(textureDictionary); w.UpdateClass(); var resource = new ResourceFile_GTA5_pc <TextureDictionary>(); resource.ResourceData = textureDictionary; resource.Version = 13; resource.Save(stream); }