Beispiel #1
0
void Rtc::loadState(SaveState const &state) {
	haltTime_ = state.rtc.haltTime;
	dataDh_ = state.rtc.dataDh;
	dataDl_ = state.rtc.dataDl;
	dataH_ = state.rtc.dataH;
	dataM_ = state.rtc.dataM;
	dataS_ = state.rtc.dataS;
	lastLatchData_ = state.rtc.lastLatchData;
	doSwapActive();
}
Beispiel #2
0
void Rtc::loadState(const SaveState &state) {
	baseTime = state.rtc.baseTime;
	haltTime = state.rtc.haltTime;
	dataDh = state.rtc.dataDh;
	dataDl = state.rtc.dataDl;
	dataH = state.rtc.dataH;
	dataM = state.rtc.dataM;
	dataS = state.rtc.dataS;
	lastLatchData = state.rtc.lastLatchData;

	doSwapActive();
}
Beispiel #3
0
void Rtc::loadState(const SaveState &state, const bool enabled) {
	this->enabled = enabled;
	
	baseTime = state.rtc.baseTime;
	haltTime = state.rtc.haltTime;
	index = state.rtc.index;
	dataDh = state.rtc.dataDh;
	dataDl = state.rtc.dataDl;
	dataH = state.rtc.dataH;
	dataM = state.rtc.dataM;
	dataS = state.rtc.dataS;
	lastLatchData = state.rtc.lastLatchData;
	
	doSwapActive();
}