Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4983b1fa88 | ||
|
|
f6b6d9f0e7 | ||
|
|
12a168df92 |
@@ -1,5 +1,10 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
|
||||||
|
## v0.12.11
|
||||||
|
|
||||||
|
- 修复可能的闪退错误
|
||||||
|
|
||||||
## v0.12.10
|
## v0.12.10
|
||||||
|
|
||||||
- 增加纹理全局加载选项
|
- 增加纹理全局加载选项
|
||||||
|
|||||||
@@ -50,7 +50,8 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
|
|
||||||
public SpineObject21(string skelPath, string atlasPath) : base(skelPath, atlasPath)
|
public SpineObject21(string skelPath, string atlasPath) : base(skelPath, atlasPath)
|
||||||
{
|
{
|
||||||
atlas = new Atlas(AtlasPath, textureLoader);
|
try { atlas = new Atlas(AtlasPath, textureLoader); }
|
||||||
|
catch (Exception ex) { throw new InvalidDataException($"Failed to load atlas '{atlasPath}'", ex); }
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// 先尝试二进制文件
|
// 先尝试二进制文件
|
||||||
@@ -70,6 +71,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
// 都不行就报错
|
// 都不行就报错
|
||||||
|
atlas.Dispose();
|
||||||
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}");
|
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -96,7 +98,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
{
|
{
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
atlas.Dispose();
|
atlas?.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string FileVersion { get => skeletonData.Version; }
|
public override string FileVersion { get => skeletonData.Version; }
|
||||||
|
|||||||
@@ -49,7 +49,8 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
|
|
||||||
public SpineObject36(string skelPath, string atlasPath) : base(skelPath, atlasPath)
|
public SpineObject36(string skelPath, string atlasPath) : base(skelPath, atlasPath)
|
||||||
{
|
{
|
||||||
atlas = new Atlas(AtlasPath, textureLoader);
|
try { atlas = new Atlas(AtlasPath, textureLoader); }
|
||||||
|
catch (Exception ex) { throw new InvalidDataException($"Failed to load atlas '{atlasPath}'", ex); }
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// 先尝试二进制文件
|
// 先尝试二进制文件
|
||||||
@@ -69,6 +70,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
// 都不行就报错
|
// 都不行就报错
|
||||||
|
atlas.Dispose();
|
||||||
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}");
|
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -95,7 +97,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
{
|
{
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
atlas.Dispose();
|
atlas?.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string FileVersion { get => skeletonData.Version; }
|
public override string FileVersion { get => skeletonData.Version; }
|
||||||
|
|||||||
@@ -46,7 +46,8 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
|
|
||||||
public SpineObject37(string skelPath, string atlasPath) : base(skelPath, atlasPath)
|
public SpineObject37(string skelPath, string atlasPath) : base(skelPath, atlasPath)
|
||||||
{
|
{
|
||||||
atlas = new Atlas(AtlasPath, textureLoader);
|
try { atlas = new Atlas(AtlasPath, textureLoader); }
|
||||||
|
catch (Exception ex) { throw new InvalidDataException($"Failed to load atlas '{atlasPath}'", ex); }
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// 先尝试二进制文件
|
// 先尝试二进制文件
|
||||||
@@ -66,6 +67,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
// 都不行就报错
|
// 都不行就报错
|
||||||
|
atlas.Dispose();
|
||||||
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}");
|
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -92,7 +94,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
{
|
{
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
atlas.Dispose();
|
atlas?.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string FileVersion { get => skeletonData.Version; }
|
public override string FileVersion { get => skeletonData.Version; }
|
||||||
|
|||||||
@@ -50,7 +50,8 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
|
|
||||||
public SpineObject38(string skelPath, string atlasPath) : base(skelPath, atlasPath)
|
public SpineObject38(string skelPath, string atlasPath) : base(skelPath, atlasPath)
|
||||||
{
|
{
|
||||||
atlas = new Atlas(AtlasPath, textureLoader);
|
try { atlas = new Atlas(AtlasPath, textureLoader); }
|
||||||
|
catch (Exception ex) { throw new InvalidDataException($"Failed to load atlas '{atlasPath}'", ex); }
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// 先尝试二进制文件
|
// 先尝试二进制文件
|
||||||
@@ -70,6 +71,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
// 都不行就报错
|
// 都不行就报错
|
||||||
|
atlas.Dispose();
|
||||||
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}", ex);
|
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -96,7 +98,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
{
|
{
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
atlas.Dispose();
|
atlas?.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string FileVersion { get => skeletonData.Version; }
|
public override string FileVersion { get => skeletonData.Version; }
|
||||||
|
|||||||
@@ -48,7 +48,8 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
|
|
||||||
public SpineObject40(string skelPath, string atlasPath) : base(skelPath, atlasPath)
|
public SpineObject40(string skelPath, string atlasPath) : base(skelPath, atlasPath)
|
||||||
{
|
{
|
||||||
atlas = new Atlas(AtlasPath, textureLoader);
|
try { atlas = new Atlas(AtlasPath, textureLoader); }
|
||||||
|
catch (Exception ex) { throw new InvalidDataException($"Failed to load atlas '{atlasPath}'", ex); }
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// 先尝试二进制文件
|
// 先尝试二进制文件
|
||||||
@@ -68,6 +69,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
// 都不行就报错
|
// 都不行就报错
|
||||||
|
atlas.Dispose();
|
||||||
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}");
|
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -95,7 +97,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
{
|
{
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
atlas.Dispose();
|
atlas?.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string FileVersion { get => skeletonData.Version; }
|
public override string FileVersion { get => skeletonData.Version; }
|
||||||
|
|||||||
@@ -48,7 +48,8 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
|
|
||||||
public SpineObject41(string skelPath, string atlasPath) : base(skelPath, atlasPath)
|
public SpineObject41(string skelPath, string atlasPath) : base(skelPath, atlasPath)
|
||||||
{
|
{
|
||||||
atlas = new Atlas(AtlasPath, textureLoader);
|
try { atlas = new Atlas(AtlasPath, textureLoader); }
|
||||||
|
catch (Exception ex) { throw new InvalidDataException($"Failed to load atlas '{atlasPath}'", ex); }
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// 先尝试二进制文件
|
// 先尝试二进制文件
|
||||||
@@ -68,6 +69,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
// 都不行就报错
|
// 都不行就报错
|
||||||
|
atlas.Dispose();
|
||||||
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}");
|
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -95,7 +97,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
{
|
{
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
atlas.Dispose();
|
atlas?.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string FileVersion { get => skeletonData.Version; }
|
public override string FileVersion { get => skeletonData.Version; }
|
||||||
|
|||||||
@@ -48,7 +48,8 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
|
|
||||||
public SpineObject42(string skelPath, string atlasPath) : base(skelPath, atlasPath)
|
public SpineObject42(string skelPath, string atlasPath) : base(skelPath, atlasPath)
|
||||||
{
|
{
|
||||||
atlas = new Atlas(AtlasPath, textureLoader);
|
try { atlas = new Atlas(AtlasPath, textureLoader); }
|
||||||
|
catch (Exception ex) { throw new InvalidDataException($"Failed to load atlas '{atlasPath}'", ex); }
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// 先尝试二进制文件
|
// 先尝试二进制文件
|
||||||
@@ -68,6 +69,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
// 都不行就报错
|
// 都不行就报错
|
||||||
|
atlas.Dispose();
|
||||||
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}");
|
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -95,7 +97,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
|||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
{
|
{
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
atlas.Dispose();
|
atlas?.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string FileVersion { get => skeletonData.Version; }
|
public override string FileVersion { get => skeletonData.Version; }
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<TargetFramework>net8.0-windows</TargetFramework>
|
<TargetFramework>net8.0-windows</TargetFramework>
|
||||||
<BaseOutputPath>$(SolutionDir)out</BaseOutputPath>
|
<BaseOutputPath>$(SolutionDir)out</BaseOutputPath>
|
||||||
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
|
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
|
||||||
<Version>0.12.10</Version>
|
<Version>0.12.11</Version>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<UseWindowsForms>true</UseWindowsForms>
|
<UseWindowsForms>true</UseWindowsForms>
|
||||||
<ApplicationIcon>appicon.ico</ApplicationIcon>
|
<ApplicationIcon>appicon.ico</ApplicationIcon>
|
||||||
|
|||||||
Reference in New Issue
Block a user