2023-06-17 15:51:26 +00:00
|
|
|
#pragma option -zCSHARED
|
2020-12-28 16:30:30 +00:00
|
|
|
|
|
|
|
#include "th02/formats/pi.h"
|
|
|
|
|
|
|
|
int DEFCONV pi_load(int slot, const char *fn)
|
|
|
|
{
|
|
|
|
#if (GAME >= 3)
|
|
|
|
pi_free(slot);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int ret = graph_pi_load_pack(fn, &pi_headers[slot], &pi_buffers[slot]);
|
|
|
|
return ret;
|
|
|
|
}
|