mirror of
https://github.com/reswitched/Mephisto.git
synced 2024-06-16 03:16:50 -04:00
32 lines
507 B
C++
32 lines
507 B
C++
#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 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;
|
|
};
|