mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-16 05:34:25 +01:00
Update build step and check for pre 7.2 shps.
This commit is contained in:
parent
1a1d1c1840
commit
23ba77c107
3 changed files with 12 additions and 15 deletions
|
|
@ -56,8 +56,8 @@ public sealed class ShpkPathPreProcessor(ResourceManagerService resourceManager,
|
|||
using var file = MmioMemoryManager.CreateFromFile(path, access: MemoryMappedFileAccess.Read);
|
||||
var bytes = file.GetSpan();
|
||||
|
||||
return ShpkFile.FastIsLegacy(bytes)
|
||||
? SanityCheckResult.Legacy
|
||||
return ShpkFile.FastIsObsolete(bytes)
|
||||
? SanityCheckResult.Obsolete
|
||||
: SanityCheckResult.Success;
|
||||
}
|
||||
catch (FileNotFoundException)
|
||||
|
|
@ -75,7 +75,7 @@ public sealed class ShpkPathPreProcessor(ResourceManagerService resourceManager,
|
|||
{
|
||||
SanityCheckResult.IoError => "Cannot read the modded file.",
|
||||
SanityCheckResult.NotFound => "The modded file does not exist.",
|
||||
SanityCheckResult.Legacy => "This mod is not compatible with Dawntrail. Get an updated version, if possible, or disable it.",
|
||||
SanityCheckResult.Obsolete => "This mod is not compatible with Dawntrail post patch 7.2. Get an updated version, if possible, or disable it.",
|
||||
_ => string.Empty,
|
||||
};
|
||||
|
||||
|
|
@ -84,6 +84,6 @@ public sealed class ShpkPathPreProcessor(ResourceManagerService resourceManager,
|
|||
Success,
|
||||
IoError,
|
||||
NotFound,
|
||||
Legacy,
|
||||
Obsolete,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue