mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-06 10:46:53 +08:00
Braces on same line!
This commit is contained in:
parent
814f6c0230
commit
75d393d928
@ -38,27 +38,19 @@ namespace Spine {
|
|||||||
TextureLoader textureLoader;
|
TextureLoader textureLoader;
|
||||||
|
|
||||||
#if WINDOWS_STOREAPP
|
#if WINDOWS_STOREAPP
|
||||||
private async Task ReadFile(string path, TextureLoader textureLoader)
|
private async Task ReadFile(string path, TextureLoader textureLoader) {
|
||||||
{
|
|
||||||
var folder = Windows.ApplicationModel.Package.Current.InstalledLocation;
|
var folder = Windows.ApplicationModel.Package.Current.InstalledLocation;
|
||||||
|
|
||||||
var file = await folder.GetFileAsync(path).AsTask().ConfigureAwait(false);
|
var file = await folder.GetFileAsync(path).AsTask().ConfigureAwait(false);
|
||||||
|
using (var reader = new StreamReader(await file.OpenStreamForReadAsync().ConfigureAwait(false))) {
|
||||||
using (var reader = new StreamReader(await file.OpenStreamForReadAsync().ConfigureAwait(false)))
|
try {
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
Load(reader, Path.GetDirectoryName(path), textureLoader);
|
Load(reader, Path.GetDirectoryName(path), textureLoader);
|
||||||
}
|
} catch (Exception ex) {
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
throw new Exception("Error reading atlas file: " + path, ex);
|
throw new Exception("Error reading atlas file: " + path, ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Atlas(String path, TextureLoader textureLoader)
|
public Atlas(String path, TextureLoader textureLoader) {
|
||||||
{
|
|
||||||
this.ReadFile(path, textureLoader).Wait();
|
this.ReadFile(path, textureLoader).Wait();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user