Content changes for file dialog stuff.

This commit is contained in:
Pieter-Jan Briers
2020-11-25 18:00:18 +01:00
parent af9e0a35ef
commit 0dbb75051e
2 changed files with 22 additions and 13 deletions

View File

@@ -349,12 +349,11 @@ namespace Content.Client.GameObjects.Components.Instruments
return true;
}
/// <inheritdoc cref="MidiRenderer.OpenMidi(string)"/>
public bool OpenMidi(string filename)
public bool OpenMidi(ReadOnlySpan<byte> data)
{
SetupRenderer();
if (_renderer == null || !_renderer.OpenMidi(filename))
if (_renderer == null || !_renderer.OpenMidi(data))
{
return false;
}