mirror of https://github.com/nmlgc/ReC98.git
20 lines
313 B
C++
20 lines
313 B
C++
#pragma option -zCSHARED
|
|
|
|
extern "C" {
|
|
#include "platform.h"
|
|
#include "pc98.h"
|
|
#include "master.hpp"
|
|
#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;
|
|
}
|
|
|
|
}
|