mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-20 15:44:22 +01:00
Fix extraction of pmp failing
This commit is contained in:
parent
c2517499f2
commit
3c417d7aec
1 changed files with 3 additions and 0 deletions
|
|
@ -249,11 +249,13 @@ public class MigrationManager(Configuration config) : IService
|
||||||
{
|
{
|
||||||
var data = s.ToArray();
|
var data = s.ToArray();
|
||||||
var mdl = new MdlFile(data);
|
var mdl = new MdlFile(data);
|
||||||
|
Directory.CreateDirectory(Path.GetDirectoryName(path)!);
|
||||||
MigrateModel(path, mdl, false);
|
MigrateModel(path, mdl, false);
|
||||||
Penumbra.Log.Debug($"Migrated model {reader.Entry.Key} from V5 to V6 during import.");
|
Penumbra.Log.Debug($"Migrated model {reader.Entry.Key} from V5 to V6 during import.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Directory.CreateDirectory(Path.GetDirectoryName(path)!);
|
||||||
using var f = File.Open(path, FileMode.Create, FileAccess.Write);
|
using var f = File.Open(path, FileMode.Create, FileAccess.Write);
|
||||||
s.Seek(0, SeekOrigin.Begin);
|
s.Seek(0, SeekOrigin.Begin);
|
||||||
s.WriteTo(f);
|
s.WriteTo(f);
|
||||||
|
|
@ -279,6 +281,7 @@ public class MigrationManager(Configuration config) : IService
|
||||||
Penumbra.Log.Debug($"Migrated material {reader.Entry.Key} to Dawntrail during import.");
|
Penumbra.Log.Debug($"Migrated material {reader.Entry.Key} to Dawntrail during import.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Directory.CreateDirectory(Path.GetDirectoryName(path)!);
|
||||||
using var f = File.Open(path, FileMode.Create, FileAccess.Write);
|
using var f = File.Open(path, FileMode.Create, FileAccess.Write);
|
||||||
s.Seek(0, SeekOrigin.Begin);
|
s.Seek(0, SeekOrigin.Begin);
|
||||||
s.WriteTo(f);
|
s.WriteTo(f);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue