HomeWildfire Games

fix VFS real path retrieval for files mounted from multiple directories (e.g.

Description

fix VFS real path retrieval for files mounted from multiple directories (e.g. mods)
closes #564
GetRealPath was too simplistic and just asked the directory *most recently mounted* into the file's VFS directory for its path. the correct solution is to ask the file's loader for its path. the archiver IFileLoader new returns the archive's pathname as the real path.
also simplified VfsFile's interface.

Event Timeline

wraitii added inline comments.
/ps/trunk/source/lib/file/vfs/vfs.cpp
175

This should probably have renamed the function to something else, particularly since in rP10454 GetDirectoryRealPath was added, and we had the situation where GetRealPath(file) != GetDirectoryRealPath(parent) / filename, which is extra confusing.