[Windows] How to setup the environment variables GZDoom uses to searchfor IWADs?

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE/EDuke32/Raze? Did your computer break? Ask here.

Moderator: GZDoom Developers

Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!

If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.

We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
HenKonen
Posts: 2
Joined: Fri Feb 07, 2025 3:24 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)

[Windows] How to setup the environment variables GZDoom uses to searchfor IWADs?

Post by HenKonen »

See title. I haven't found an answer

Just so you know, everything is working - GZdoom g4.14.0 found the IWADs from my Steam Copies of Doom and others, but as a fan of knowing how things work I'd like to inspect what exactly are the default paths stored in environment variables $DOOMWADDIR, $HOME and $PROGDIR and if there are ways to reconfigure these variables on windows.

The environment variables are found under [IWADSearch.Directories] in the gzdoom.ini file generated by GZDoom upon launch. But I've yet to find where these variables are configured and whether it is possible to have them point to another path.
User avatar
Rachael
Posts: 13884
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [Windows] How to setup the environment variables GZDoom uses to searchfor IWADs?

Post by Rachael »

They are dynamically generated from hard code.

https://github.com/ZDoom/gzdoom/blob/ma ... lpaths.cpp

For finding Steam/GOG games it tries to locate your database and then search games based off of that.

https://github.com/ZDoom/gzdoom/blob/ma ... _steam.cpp

Return to “Technical Issues”