-
Notifications
You must be signed in to change notification settings - Fork 19
/
Nxo.h
39 lines (29 loc) · 659 Bytes
/
Nxo.h
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
31
32
33
34
35
36
37
38
39
#pragma once
#include "Ctu.h"
class Nxo {
public:
Nxo(string fn);
virtual ~Nxo() {}
virtual guint load(Ctu &ctu, gptr base, bool relocate=false) = 0;
protected:
ifstream fp;
uint32_t length;
};
class Kip : Nxo {
public:
Kip(string fn) : Nxo(fn) {}
virtual ~Kip() override {}
guint load(Ctu &ctu, gptr base, bool relocate=false) override;
};
class Nso : Nxo {
public:
Nso(string fn) : Nxo(fn) {}
virtual ~Nso() override {}
guint load(Ctu &ctu, gptr base, bool relocate=false) override;
};
class Nro : Nxo {
public:
Nro(string fn) : Nxo(fn) {}
virtual ~Nro() override {}
guint load(Ctu &ctu, gptr base, bool reloacte=false) override;
};