/// <summary> /// Edits the specified shader with the specified data. /// </summary> /// <param name="p_intPackage">The package containing the shader to edit.</param> /// <param name="p_strShaderName">The shader to edit.</param> /// <param name="p_bteData">The value to which to edit the shader.</param> /// <returns><c>true</c> if the value was set; <c>false</c> /// if the user chose not to overwrite the existing value.</returns> public bool EditShader(int p_intPackage, string p_strShaderName, byte[] p_bteData) { GamebryoGameSpecificValueInstaller.ShaderEdit sedShader = new GamebryoGameSpecificValueInstaller.ShaderEdit(p_intPackage, p_strShaderName); return Installers.GameSpecificValueInstaller.EditGameSpecificValue(sedShader.ToString(), p_bteData); }
/// <summary> /// Edits the specified shader with the specified data. /// </summary> /// <param name="p_intPackage">The package containing the shader to edit.</param> /// <param name="p_strShaderName">The shader to edit.</param> /// <param name="p_strNewDataFilePath">The path to the mod file containing the value to which to edit the shader.</param> /// <returns><c>true</c> if the value was set; <c>false</c> /// if the user chose not to overwrite the existing value.</returns> public bool EditShader(string p_intPackage, string p_strShaderName, string p_strNewDataFilePath) { Int32 intPackage = Int32.Parse(p_intPackage); byte[] bteData = GetFileFromMod(p_strNewDataFilePath); GamebryoGameSpecificValueInstaller.ShaderEdit sedShader = new GamebryoGameSpecificValueInstaller.ShaderEdit(intPackage, p_strShaderName); return Installers.GameSpecificValueInstaller.EditGameSpecificValue(sedShader.ToString(), bteData); }