mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(GameRes): use ResourceInstance instead of Lazy.
This commit is contained in:
@@ -197,8 +197,8 @@ namespace GameRes
|
||||
return null;
|
||||
}
|
||||
|
||||
public static AudioFormat Wav { get { return s_WavFormat.Value; } }
|
||||
public static AudioFormat Wav => s_WavFormat.Value;
|
||||
|
||||
static readonly Lazy<AudioFormat> s_WavFormat = new Lazy<AudioFormat> (() => FormatCatalog.Instance.AudioFormats.FirstOrDefault (x => x.Tag == "WAV"));
|
||||
static readonly ResourceInstance<AudioFormat> s_WavFormat = new ResourceInstance<AudioFormat> ("WAV");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user