use ResourceInstance for formats instantiation.

This commit is contained in:
morkt
2017-04-08 19:23:46 +04:00
parent 3b74dae09f
commit 20cf6c191b
3 changed files with 16 additions and 15 deletions

View File

@@ -138,6 +138,6 @@ namespace GameRes.Formats
public static AudioFormat Instance { get { return s_OggFormat.Value; } }
static readonly Lazy<AudioFormat> s_OggFormat = new Lazy<AudioFormat> (() => FormatCatalog.Instance.AudioFormats.FirstOrDefault (x => x.Tag == "OGG"));
static readonly ResourceInstance<AudioFormat> s_OggFormat = new ResourceInstance<AudioFormat> ("OGG");
}
}