2020-03-12 23:54:35 +00:00
|
|
|
// Option and error constants, according to PILOADC.DOC.
|
|
|
|
|
|
|
|
#define PILOAD_OPT_COLORKEY(col) ((col << 8) | 0x40)
|
|
|
|
|
2020-06-18 18:01:29 +00:00
|
|
|
// PiLoad also returns values >0 to indicate DOS file I/O errors.
|
2020-03-12 23:54:35 +00:00
|
|
|
#define PILOAD_ERR_OK 0
|
|
|
|
#define PILOAD_ERR_BUFFER_TOO_SMALL -8
|
|
|
|
#define PILOAD_ERR_NO_PI -31
|
|
|
|
#define PILOAD_ERR_NOT_SUPPORTED -32
|
|
|
|
|
|
|
|
#if defined(__LARGE__) || defined(__HUGE__)
|
2022-07-08 21:18:43 +00:00
|
|
|
#define PiLoad PiLoadL
|
2020-03-12 23:54:35 +00:00
|
|
|
#elif defined(__COMPACT__)
|
2022-07-08 21:18:43 +00:00
|
|
|
#define PiLoad PiLoadC
|
2020-03-12 23:54:35 +00:00
|
|
|
#endif
|
|
|
|
|
2023-02-06 01:31:31 +00:00
|
|
|
extern "C" int __cdecl PiLoad(
|
2020-03-12 23:54:35 +00:00
|
|
|
const char *name, char *buff, int Size, int X, int Y, int tone, int option
|
|
|
|
);
|