aboutsummaryrefslogtreecommitdiffstats
path: root/src/leeds/base/relocatableChunk.cpp
blob: 5391f42049d605783a803e09bbc3b475efc11ae1 (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
31
32
33
34
35
36
37
38
#include "common.h"
#include "relocatableChunk.h"

namespace base
{
	// TODO(LCS): add actual code (all of these are stubs)

	void* cRelocatableChunk::Load(void* data, bool bShrink) { return nil; }
	void* cRelocatableChunk::Load(const char* name, bool bShrink) { return nil; }
	void cRelocatableChunk::Fixup(const sChunkHeader& header, void* data) {}
	void cRelocatableChunk::Fixup(void* data) {}
	void* cRelocatableChunk::Shrink(const sChunkHeader& header, void* data) { return nil; }
	void* cRelocatableChunk::Shrink(void* data) { return nil; }

	cRelocatableChunkClassInfo::cRelocatableChunkClassInfo(const char* class_name, const void* pVmt, int size) {}

	cRelocatableChunkWriter::cRelocatableChunkWriter() {}
	cRelocatableChunkWriter::~cRelocatableChunkWriter() {}

	void cRelocatableChunkWriter::AddPatch(void* addr) {}
	void cRelocatableChunkWriter::AddPatchWithInfo(const char* str, int unk, void* addr) {}
	void cRelocatableChunkWriter::AllocateRaw(void* addr, uint32 size, uint32 align, bool a5, bool a6) {}

	void cRelocatableChunkWriter::Clear() {}
	void cRelocatableChunkWriter::Class(void* ptr, const cRelocatableChunkClassInfo& classInfo) {}
	void cRelocatableChunkWriter::DebugFileLine(void*) {}

	void cRelocatableChunkWriter::PatchFunc(void* ptr) {}

	bool cRelocatableChunkWriter::IsAllocated(void* addr) { return false; }

	void cRelocatableChunkWriter::Reserve(int, int) {}

	void cRelocatableChunkWriter::Save(const char* filename, uint32 a3, uint32 a4, bool a5) {}
	void cRelocatableChunkWriter::Save(void* file, uint32 a3, uint32 a4, bool a5, sChunkHeader* pHeader) {}

	void RegisterRelocatableChunkFunc(const void *func) {}
};