We have them for searching lumps by a specific name, but what if I wanted to do something different like, say, building a list of all lumps in the music namespace for a playlist?
If there's already something for this on the C++ side I'd gladly just expose it myself.
ZScript function for iterating through lumps
Moderator: GZDoom Developers
- Marisa the Magician
- Posts: 3886
- Joined: Fri Feb 08, 2008 9:15 am
- Preferred Pronouns: She/Her
- Operating System Version (Optional): (btw I use) Arch
- Graphics Processor: nVidia with Vulkan support
- Location: Vigo, Galicia
- Contact:
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49056
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: ZScript function for iterating through lumps
The only way on the C++ side is a simple loop iterating over the entire directory.
Re: ZScript function for iterating through lumps
This would indeed be useful for crafting some kind of system where the user can drop in additional content. :)
Re: ZScript function for iterating through lumps
Very nice! Thanks for fast and amazing work, as usual, _mental_. :D
- Major Cooke
- Posts: 8170
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: ZScript function for iterating through lumps
Hell yeah, this is awesome. Thanks Mental!
- Marisa the Magician
- Posts: 3886
- Joined: Fri Feb 08, 2008 9:15 am
- Preferred Pronouns: She/Her
- Operating System Version (Optional): (btw I use) Arch
- Graphics Processor: nVidia with Vulkan support
- Location: Vigo, Galicia
- Contact:
Re: ZScript function for iterating through lumps
Aw yeah, thanks!