mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Make AssetPassPackRsis not crap out due to ImageSharp errors.
Still just for testing.
This commit is contained in:
@@ -22,6 +22,12 @@ internal sealed class AssetPassPackRsis : AssetPass
|
||||
private static readonly Regex RegexMetaJson = new(@"^(.+)\.rsi/meta\.json$");
|
||||
private static readonly Regex RegexPng = new(@"^(.+)\.rsi/(.+)\.png$");
|
||||
|
||||
static AssetPassPackRsis()
|
||||
{
|
||||
// TODO: Nuke this
|
||||
Configuration.Default.PreferContiguousImageBuffers = true;
|
||||
}
|
||||
|
||||
protected override AssetFileAcceptResult AcceptFile(AssetFile file)
|
||||
{
|
||||
if (!file.Path.Contains(".rsi/"))
|
||||
|
||||
Reference in New Issue
Block a user