| 412 | //========================================================================== |
| 413 | |
| 414 | DEFINE_ACTION_FUNCTION(_TexMan, GetName) |
| 415 | { |
| 416 | PARAM_PROLOGUE; |
| 417 | PARAM_INT(texid); |
| 418 | auto tex = TexMan.GameByIndex(texid); |
| 419 | FString retval; |
| 420 | |
| 421 | if (tex != nullptr) |
| 422 | { |
| 423 | if (tex->GetName().IsNotEmpty()) retval = tex->GetName(); |
| 424 | else |
| 425 | { |
| 426 | // Textures for full path names do not have their own name, they merely link to the source lump. |
| 427 | auto lump = tex->GetSourceLump(); |
| 428 | if (TexMan.GetLinkedTexture(lump) == tex) |
| 429 | retval = fileSystem.GetFileFullName(lump); |
| 430 | } |
| 431 | } |
| 432 | ACTION_RETURN_STRING(retval); |
| 433 | } |
| 434 | |
| 435 | static int CheckForTexture(const FString& name, int type, int flags) |
| 436 | { |
nothing calls this directly
no test coverage detected