예제 #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();
}
예제 #2
0
파일: rtc.cpp 프로젝트: skidr0w/gambatte
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();
}
예제 #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();
}