diff --git a/SpineViewer/Spine/SkeletonConverter.cs b/SpineViewer/Spine/SkeletonConverter.cs
index 23d9767..c470dbb 100644
--- a/SpineViewer/Spine/SkeletonConverter.cs
+++ b/SpineViewer/Spine/SkeletonConverter.cs
@@ -111,6 +111,29 @@ namespace SpineViewer.Spine
root.WriteTo(writer);
}
+ ///
+ /// 读取骨骼文件
+ ///
+ public JsonObject Read(string path)
+ {
+ try
+ {
+ return ReadBinary(path);
+ }
+ catch
+ {
+ try
+ {
+ return ReadJson(path);
+ }
+ catch
+ {
+ // 都不行就报错
+ throw new InvalidDataException($"Unknown skeleton file format {path}");
+ }
+ }
+ }
+
///
/// 转换到目标版本
///