mirror of
https://github.com/celisej567/LibBSP.git
synced 2026-09-04 15:35:12 +03:00
Change IsNullOrWhitespace to IsNullOrEmpty, for compatibility with old Unity versions.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user