jmickle66666666/DoomUnity

Improve iwad path loading

Closed this issue · 2 comments

Currently hardcoded values (in nasty.wad) are used for the IWAD filenames. That's not a good idea.

I think we need to have a system that detects what IWAD it is. There are ways to do this and it's how ZDoom works. It looks for lumps found only in certain wads: https://github.com/coelckers/gzdoom/blob/master/wadsrc/static/iwadinfo.txt

Probably not the most elegant way to do it but I'm not sure there is a better way. (Checksums of certain lumps? Checksums of iwads?)

now detecting by md5 checksum. can be slow if there are a lot of wads in the iwad directory