jmickle66666666 / DoomUnity

Unity libs for working with Doom, also my Doom engine: NaSTY
88 stars 7 forks source link

Improve iwad path loading #10

Closed jmickle66666666 closed 6 years ago

jmickle66666666 commented 6 years ago

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

jmickle66666666 commented 6 years ago

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?)

jmickle66666666 commented 6 years ago

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