Change IsNullOrWhitespace to IsNullOrEmpty, for compatibility with old Unity versions.

This commit is contained in:
William Fowler
2021-10-02 01:41:12 -06:00
parent 5995fac39b
commit 4727c72c5e

View File

@@ -231,7 +231,7 @@ namespace LibBSP {
/// </returns>
public byte[] ReadLump(int offset, int length, string fileName = null) {
byte[] output;
if (string.IsNullOrWhiteSpace(fileName)) {
if (string.IsNullOrEmpty(fileName)) {
fileName = bspFile.FullName;
}
using (FileStream stream = new FileStream(fileName, FileMode.Open, FileAccess.Read)) {