mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
display error message if audio file reading failed.
This commit is contained in:
@@ -799,9 +799,14 @@ namespace GARbro.GUI
|
||||
{
|
||||
using (var input = OpenEntry (entry))
|
||||
{
|
||||
FormatCatalog.Instance.LastError = null;
|
||||
var sound = AudioFormat.Read (input);
|
||||
if (null == sound)
|
||||
{
|
||||
if (null != FormatCatalog.Instance.LastError)
|
||||
throw FormatCatalog.Instance.LastError;
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_audio != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user