Skip to content

Commit 5df4a52

Browse files
committed
Do not mark tiny uasset files as packages.
There was a situation with zero-length uasset files which crashed UE Viewer under some conditions.
1 parent 537e88c commit 5df4a52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Unreal/GameFileSystem.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ void appRegisterGameFile(const char *FullName, FVirtualFileSystem* parentVfs)
349349
info->RelativeName = appStrdupPool(FullName);
350350
}
351351
info->SizeInKb = (info->Size + 512) / 1024;
352+
if (info->Size < 16) info->IsPackage = false;
352353

353354
// find filename
354355
const char* s = strrchr(info->RelativeName, '/');

0 commit comments

Comments
 (0)