summaryrefslogtreecommitdiff
path: root/Loader/loader-psyq.cpp
blob: d6d887672f16afeac20073ab283d40276621343b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "database.h"

union psyq_header_t {
    struct {
        Uint8 id[8];
        Uint32 text, data, pc0, gp0, t_addr, t_size;
        Uint32 d_addr, d_size, b_addr, b_size, s_addr, s_size;
        Uint32 sp, fp, gp, ra, s0;
    };
    Uint8 raw[0x800];
};

class loader_psyq : public Base {
  public:
    static void load(Handle * input, Database * database) {
        psyq_header_t head;
        
        input->read(&head, sizeof(head));
    }
};