-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathPlayerCodeReader.h
44 lines (36 loc) · 1.09 KB
/
PlayerCodeReader.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
42
43
44
//
// PlayerCodeReader.h
// C700
//
// Created by osoumen on 2017/02/26.
//
//
#ifndef __C700__PlayerCodeReader__
#define __C700__PlayerCodeReader__
#include "ChunkReader.h"
class PlayerCodeReader : public ChunkReader {
public:
PlayerCodeReader(const void *data, int dataSize, bool copy=false);
PlayerCodeReader(const char *path);
virtual ~PlayerCodeReader();
virtual bool Load();
virtual bool IsLoaded() const { return mIsLoaded; }
// 以下の関数、IsLoadedがtrueでなければNULLを返す
int getVersion();
void *getSmcNativeVector();
void *getSmcEmulationVector();
void *getSmcPlayerCode();
int getSmcPlayerCodeSize();
void *getSpcPlayerCode();
int getSpcPlayerCodeSize();
private:
PlayerCodeReader();
int mVersion; // BCD
char *m_pSmcNativeVector; // 12バイト固定
char *m_pSmcEmulationVector; // 12バイト固定
char *m_pSmcPlayerCode;
int mSmcPlayerCodeSize;
char *m_pSpcPlayerCode;
int mSpcPlayerCodeSize;
};
#endif /* defined(__C700__PlayerCodeReader__) */