File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ namespace xivModdingFramework.Models.FileTypes
49
49
/// </summary>
50
50
public static class Sklb
51
51
{
52
- private const string SkeletonsFolder = "Skeletons" ;
52
+ public const string SkeletonsFolder = "Skeletons" ;
53
53
54
54
/// <summary>
55
55
/// Retrieves the base racial or body skeleton for a given model file, parsing it from the base
Original file line number Diff line number Diff line change @@ -386,13 +386,13 @@ public async Task<IndexFile> GetIndexFile(XivDataFile dataFile)
386
386
{
387
387
while ( _LoadingIndexFiles )
388
388
{
389
- Thread . Sleep ( 1 ) ;
389
+ await Task . Delay ( 10 ) ;
390
390
}
391
-
392
- if ( ! _IndexFiles . ContainsKey ( dataFile ) )
391
+
392
+ _LoadingIndexFiles = true ;
393
+ try
393
394
{
394
- _LoadingIndexFiles = true ;
395
- try
395
+ if ( ! _IndexFiles . ContainsKey ( dataFile ) )
396
396
{
397
397
if ( ! _ReadOnly )
398
398
{
@@ -421,12 +421,12 @@ public async Task<IndexFile> GetIndexFile(XivDataFile dataFile)
421
421
422
422
var idx = await Index . INTERNAL_GetIndexFile ( dataFile , false , ReadOnly ) ;
423
423
_IndexFiles . Add ( dataFile , idx ) ;
424
- }
425
- finally
426
- {
427
- _LoadingIndexFiles = false ;
428
- }
429
424
425
+ }
426
+ }
427
+ finally
428
+ {
429
+ _LoadingIndexFiles = false ;
430
430
}
431
431
return _IndexFiles [ dataFile ] ;
432
432
}
You can’t perform that action at this time.
0 commit comments