changes to RW layer so loading foreign files works

This commit is contained in:
aap 2020-11-11 09:42:30 +01:00
parent 460f3cea44
commit 546ed0ff07
8 changed files with 143 additions and 22 deletions

View file

@ -390,6 +390,7 @@ CStreaming::LoadCdDirectory(const char *dirname, int n)
assert(sizeof(direntry) == 32);
while(CFileMgr::Read(fd, (char*)&direntry, sizeof(direntry))){
dot = strchr(direntry.name, '.');
assert(dot);
if(dot) *dot = '\0';
if(direntry.size > (uint32)ms_streamingBufferSize)
ms_streamingBufferSize = direntry.size;