AGS: Assert in POSIXFilesystemNode::getChild
|Reported by:||criezy||Owned by:||criezy|
A user reported on the forum that while playing Blackwell Deception and Technobabylon he encountered a crash after a while with
scummvm: backends/fs/posix/posix-fs.cpp:132: virtual AbstractFSNode* POSIXFilesystemNode::getChild(const Common::String&) const: Assertion `!n.contains('/')' failed.
I have played a good chunk of Blackwell Deception without seeing that assert yet and this will need to be investigated further.
I also looked at the code and we are calling
FSNode::getChild() in two places, both in
Common::FSNode getFSNode(const char *path) in stdio_compat.cpp, and as far as I can see the logic there seems correct (it splits the path using '/' to look recursively for subdirs and then the file).
So I don't know what could be triggering the assert.