示例#1
0
bool GB::saveState(gambatte::uint_least32_t const *videoBuf, std::ptrdiff_t pitch) {
	if (saveState(videoBuf, pitch, statePath(p_->cpu.saveBasePath(), p_->stateNo))) {
		p_->cpu.setOsdElement(newStateSavedOsdElement(p_->stateNo));
		return true;
	}

	return false;
}
示例#2
0
bool GB::saveState(const gambatte::PixelType *const videoBuf, const int pitch) {
    if (p_->cpu.loaded()) {
#ifndef GAMBATTE_NO_OSD
        p_->cpu.setOsdElement(newStateSavedOsdElement(p_->stateNo));
#endif
        return saveState(videoBuf, pitch, statePath(p_->cpu.saveBasePath(), p_->stateNo));
    }
    return false;
}
示例#3
0
bool GB::saveState(gambatte::PixelType const *videoBuf, std::ptrdiff_t pitch) {
	if (saveState(videoBuf, pitch, statePath(p_->cpu.saveBasePath(), p_->stateNo))) {
#ifndef GAMBATTE_NO_OSD
		p_->cpu.setOsdElement(newStateSavedOsdElement(p_->stateNo));
#endif
		return true;
	}

	return false;
}