Closed sink666 closed 2 years ago
did you intentionally add the rule that entire paths can be attempted after the PWAD directory if not found? What if they start with D:\, based on
pwadPath += resBackup
, is it going to happen thatD:\Wads\C:\Games\Doom\res.wad
? Haven't tested that though…
No, it was a naive assumption. Since the path returned by GetRelativePath is relative to the current working directory, I assumed that if the resource or resource folder is in the same folder as the pwad I could append it to the pwad path minus basename. I hadn't fully considered or tested what using a resource from another disk might do with this method.
I've cloned your changes into a branch here called pr124-relpath
. Thanks! I'll work on top of it and see to make it fit.
Solved this ticket. The Eureka lump shouldn't store user data in the form of absolute paths in the map WAD. The changes made affect only the Eureka lump writer and parser.