openMSX
Main Page
Namespaces
Classes
Files
File List
File Members
RenShaTurbo.cc
Go to the documentation of this file.
1
#include "
RenShaTurbo.hh
"
2
#include "
XMLElement.hh
"
3
#include "
Autofire.hh
"
4
#include "
memory.hh
"
5
6
namespace
openmsx {
7
8
RenShaTurbo::RenShaTurbo
(
CommandController
& commandController,
9
const
XMLElement
& machineConfig)
10
{
11
if
(
const
XMLElement
* config = machineConfig.
findChild
(
"RenShaTurbo"
)) {
12
int
min_ints = config->getChildDataAsInt(
"min_ints"
, 47);
13
int
max_ints = config->getChildDataAsInt(
"max_ints"
, 221);
14
autofire = make_unique<Autofire>(
15
commandController, min_ints, max_ints,
"renshaturbo"
);
16
}
17
}
18
19
RenShaTurbo::~RenShaTurbo
()
20
{
21
}
22
23
bool
RenShaTurbo::getSignal
(
EmuTime::param
time)
24
{
25
return
autofire.get() ? autofire->getSignal(time) :
false
;
26
}
27
28
}
// namespace openmsx
Generated on Mon May 20 2013 12:16:59 for openMSX by
1.8.1.2