mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-21 07:17:53 +01:00
Make items changed in a mod sort before other items for item swap, also color them.
This commit is contained in:
parent
72f2834dfd
commit
246f4f65f5
3 changed files with 44 additions and 33 deletions
|
|
@ -15,13 +15,9 @@ public static class ItemSwap
|
|||
public class InvalidItemTypeException : Exception
|
||||
{ }
|
||||
|
||||
public class MissingFileException : Exception
|
||||
public class MissingFileException(ResourceType type, object path) : Exception($"Could not load {type} File Data for \"{path}\".")
|
||||
{
|
||||
public readonly ResourceType Type;
|
||||
|
||||
public MissingFileException(ResourceType type, object path)
|
||||
: base($"Could not load {type} File Data for \"{path}\".")
|
||||
=> Type = type;
|
||||
public readonly ResourceType Type = type;
|
||||
}
|
||||
|
||||
private static bool LoadFile(MetaFileManager manager, FullPath path, out byte[] data)
|
||||
|
|
@ -47,7 +43,7 @@ public static class ItemSwap
|
|||
Penumbra.Log.Debug($"Could not load file {path}:\n{e}");
|
||||
}
|
||||
|
||||
data = Array.Empty<byte>();
|
||||
data = [];
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue