RTech: disable assertion for log channels in FS_CloseAsyncFile

FS_OpenAsyncFile is inline in StreamDB_Init, and in our implementation, FS_OpenAsyncFile is the only place channel id's get mapped to file slots, so it will be null for stbsp's. Commented assert out as there isn't anything we could do about this besides rebuilding StreamDB_Init which is a large task.
This commit is contained in:
Kawe Mazidjatari 2024-11-16 21:33:00 +01:00
parent add4037504
commit 19896857e2

View File

@ -82,7 +82,10 @@ void FS_CloseAsyncFile(const int fileHandle)
if (selectedLogChannel && (selectedLogChannel == -1 || s_fileHandleLogChannelIDs[slotNum] == selectedLogChannel))
Msg(eDLL_T::RTECH, "%s: Closed file from slot #%d\n", __FUNCTION__, slotNum);
assert(s_fileHandleLogChannelIDs[slotNum] != 0);
// TODO: StreamDB_Init has an inline version of FS_OpenAsyncFile, therefore
// anything loaded there will never have the channel id's set. In order to
// fix this, StreamDB_Init has to be rebuilt.
//assert(s_fileHandleLogChannelIDs[slotNum] != 0);
s_fileHandleLogChannelIDs[slotNum] = 0;
}
}