-
Notifications
You must be signed in to change notification settings - Fork 0
/
InternalCartridge.h
49 lines (36 loc) · 729 Bytes
/
InternalCartridge.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
45
46
47
48
49
/*
* InternalCartridge.h
*
* Created on: Feb 15, 2018
* Author: jock
*/
#ifndef INTERNALCARTRIDGE_H_
#define INTERNALCARTRIDGE_H_
#include <Cartridge.h>
class InternalCartridge: public Cartridge {
public:
InternalCartridge()
{
// Nothing
}
virtual ~InternalCartridge()
{
// Nothing
}
virtual uint16_t getVersion() const
{
return 100;
}
virtual bool isCartridgePresent()
{
return true;
}
virtual void loadGameData(uint8_t *memoryPool, uint16_t memSize)
{
// Nothing
}
virtual uint8_t getGameCount();
virtual const GameData *getGameAt(uint8_t pos);
virtual void loadGame(uint8_t gameIdx, uint8_t *mem, uint16_t loadOffset, uint16_t memSize);
};
#endif /* INTERNALCARTRIDGE_H_ */