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; }
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; }
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; }