mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 00:18:39 +00:00
Only throw IsFileSafe error on debug builds
This commit is contained in:
parent
c84c15fa2c
commit
d1093fdf8f
1 changed files with 5 additions and 1 deletions
|
@ -14,7 +14,11 @@ namespace ProjectLighthouse.Helpers {
|
|||
LbpFileType.Level => true,
|
||||
LbpFileType.FileArchive => false,
|
||||
LbpFileType.Unknown => false,
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(file), "Unknown file type."),
|
||||
#if DEBUG
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(file), $"Unhandled file type ({file.FileType}) in FileHelper.IsFileSafe()"),
|
||||
#else
|
||||
_ => false,
|
||||
#endif
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue