1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed shutdown issue

This commit is contained in:
Brian Fiete 2025-01-17 11:18:41 -08:00
parent 11b136f6d1
commit a225380467

View file

@ -282,19 +282,19 @@ static class FilePackManager
{
}
static StableIndexedList<Stream> sStreams = new .() ~ DeleteContainerAndItems!(_);
static StableIndexedList<FilePack.FindFileData> sFindFileData = new .() ~ DeleteContainerAndItems!(_);
static StableIndexedList<Stream> sStreams = new .() ~ { DeleteContainerAndItems!(_); _ = null; }
static StableIndexedList<FilePack.FindFileData> sFindFileData = new .() ~ { DeleteContainerAndItems!(_); _ = null; }
static Stream TryGetStream(Platform.BfpFile* file, out int idx)
{
idx = (int)(void*)file;
return sStreams.SafeGet(idx);
return sStreams?.SafeGet(idx);
}
static FilePack.FindFileData TryGetFindFileData(Platform.BfpFindFileData* findFileData, out int idx)
{
idx = (int)(void*)findFileData;
return sFindFileData.SafeGet(idx);
return sFindFileData?.SafeGet(idx);
}
public static struct HookOverrides