mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
display error message if audio file reading failed.
This commit is contained in:
parent
2593f9ffc3
commit
417b39a4c3
@ -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)
|
||||
{
|
||||
|
@ -51,5 +51,5 @@ using System.Windows;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion ("1.0.3.11")]
|
||||
[assembly: AssemblyFileVersion ("1.0.2.11")]
|
||||
[assembly: AssemblyVersion ("1.0.3.12")]
|
||||
[assembly: AssemblyFileVersion ("1.0.2.12")]
|
||||
|
Loading…
Reference in New Issue
Block a user