GetLumpFullName

From ZDoom Wiki
Jump to navigation Jump to search

Wads

native static string GetLumpFullName(int lump)

Usage

Returns the full name of the lump at the given index. The full name will contain a path to the lump (starting at the archive's root) and the lump's file extension (if any).

For getting the short name (without path or extension), see GetLumpName.

Return values

  • String — the short name of the lump.

Examples

This example shows how to find all lumps among the currently loaded archives and dump their names and full names to the console:

int totallumps = Wads.GetNumLumps();
int currlump = 0;
while (lumpcount < totallumps)
{
	Console.Printf("Lump %d name: %s | full name: %s", currlump, Wads.GetLumpName(currlump), Wads.GetLumpFullName(currlump));
	lumpcount++;
}

See also