Daemon icon indicating copy to clipboard operation
Daemon copied to clipboard

cg_api: make possible for game to know if an extension-independent image path exists

Open illwieckz opened this issue 4 years ago • 1 comments

I wanted to know if it's possible for the game to query the engine to know if an extension-independent image path exists, it looks like this code make it possible. It would also be possible to do the same for sounds if we have a need.

What this make possible is for example to check if Unvanquished's meta/<name>/<mapname> levelshot exists, but if it does not exist, try to load Quake3-like levelshot/<name> instead.

illwieckz avatar Sep 27 '21 18:09 illwieckz

Ignoring possible warning spam, is there some use case that you can't do by attempting to load the image and seeing if the handle is 0?

slipher avatar Oct 19 '21 07:10 slipher