-
Notifications
You must be signed in to change notification settings - Fork 27
/
SerializePrxToMap.h
41 lines (35 loc) · 1.16 KB
/
SerializePrxToMap.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
40
41
/***************************************************************
* PRXTool : Utility for PSP executables.
* (c) TyRaNiD 2k5
*
* SerializePrxToMap.h - Implementation of a class to serialize
* a loaded PRX file to a PS2DIS Map file.
***************************************************************/
#ifndef __SERIALIZEPRXTOMAP_H__
#define __SERIALIZEPRXTOMAP_H__
#include <stdio.h>
#include "SerializePrx.h"
class CSerializePrxToMap : public CSerializePrx
{
FILE *m_fpOut;
virtual bool StartFile();
virtual bool EndFile();
virtual bool StartPrx(const char *szFilename, const PspModule *pMod, u32 iSMask);
virtual bool EndPrx();
virtual bool StartSects();
virtual bool SerializeSect(int num, ElfSection §);
virtual bool EndSects();
virtual bool StartImports();
virtual bool SerializeImport(int num, const PspLibImport *imp);
virtual bool EndImports();
virtual bool StartExports();
virtual bool SerializeExport(int num, const PspLibExport *exp);
virtual bool EndExports();
virtual bool StartRelocs();
virtual bool SerializeReloc(int count, const ElfReloc *rel);
virtual bool EndRelocs();
public:
CSerializePrxToMap(FILE *fpOut);
~CSerializePrxToMap();
};
#endif