blob: 4f9314bd348c117da7b6f6e7d74fc144929325b6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* PSn00bSDK dynamic linker example (shared header)
* (C) 2021 spicyjpeg - MPL licensed
*/
#ifndef __DLL_COMMON_H
#define __DLL_COMMON_H
#include <psxgpu.h>
/* Common structures shared by the main executable and DLLs */
#define OT_LEN 256
#define PACKET_LEN 16384
typedef struct {
DISPENV disp;
DRAWENV draw;
uint32_t ot[OT_LEN];
uint8_t p[PACKET_LEN];
} DB;
typedef struct {
uint16_t xres, yres;
DB db[2];
uint32_t db_active;
uint8_t *db_nextpri;
} CONTEXT;
#endif
|