From 14d90c9e1171655b864316c9c4aa34033fdd3a45 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 21 Sep 2009 03:37:45 +0200 Subject: Very first bit towards a Mips/PSX disassembler --- Database/database.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Database/database.h') diff --git a/Database/database.h b/Database/database.h index be46598..222573d 100644 --- a/Database/database.h +++ b/Database/database.h @@ -22,6 +22,12 @@ class Database : public Base { return 0; } Uint32 GetNextSegId() { return currentId++; } + Segment * CreateSegment(Cpu * cpu, Uint64 cpu_base, absolute_ptr origin, Uint32 size, Uint32 extra_size = 0, const Byte * data = 0) { + DatabaseCell * r = new DatabaseCell(this, cpu, cpu_base, origin, size, extra_size, data); + return r->getSegment(); + } + void Serialize(Handle * out); + void Deserialize(Handle *in); private: DatabaseCell * start, * end; Uint32 currentId; -- cgit v1.2.3