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:
parent
11b136f6d1
commit
a225380467
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue