Macaw OS C reference

Function levelprobepath

#include <macawlevel.h>
int levelprobepath(const char *path, char *buf, int size);

Gives the file a level's baked reflection probes are kept in: the same name with .prb in place of .lvl.

Parameters

pathconst char *
The level's file name.
bufchar *
Where the .prb file's name goes, a char array.
sizeint
How many bytes buf holds.

Returns int

The length of the .prb file's name.

In Opening, saving and building, with openlevel, loadlevel, newlevel, savelevel, buildlevel, freelevel, levelerror, levelbuilt, levellit, levelpath, levellitpath.