mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 08:40:59 +00:00
EVENTRECORDER: Fix build and obvious mistype error
This commit is contained in:
parent
ac331f291f
commit
63c04eb700
@ -484,8 +484,14 @@ endif
|
|||||||
|
|
||||||
ifdef ENABLE_EVENTRECORDER
|
ifdef ENABLE_EVENTRECORDER
|
||||||
MODULE_OBJS += \
|
MODULE_OBJS += \
|
||||||
mixer/null/null-mixer.o \
|
|
||||||
saves/recorder/recorder-saves.o
|
saves/recorder/recorder-saves.o
|
||||||
|
# SDL and null backend already add null-mixer
|
||||||
|
ifndef SDL_BACKEND
|
||||||
|
ifneq ($(BACKEND),null)
|
||||||
|
MODULE_OBJS += \
|
||||||
|
mixer/null/null-mixer.o
|
||||||
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef USE_IMGUI
|
ifdef USE_IMGUI
|
||||||
|
@ -762,7 +762,8 @@ SDL_Surface *EventRecorder::getSurface(int width, int height) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool EventRecorder::switchMode() {
|
bool EventRecorder::switchMode() {
|
||||||
const Plugin *plugin = EngineMan.findPlugin(ConfMan.get("engineid"));
|
const Plugin *detectionPlugin = EngineMan.findPlugin(ConfMan.get("engineid"));
|
||||||
|
const Plugin *plugin = PluginMan.getEngineFromMetaEngine(detectionPlugin);
|
||||||
bool metaInfoSupport = plugin->get<MetaEngine>().hasFeature(MetaEngine::kSavesSupportMetaInfo);
|
bool metaInfoSupport = plugin->get<MetaEngine>().hasFeature(MetaEngine::kSavesSupportMetaInfo);
|
||||||
bool featuresSupport = metaInfoSupport &&
|
bool featuresSupport = metaInfoSupport &&
|
||||||
g_engine->canSaveGameStateCurrently() &&
|
g_engine->canSaveGameStateCurrently() &&
|
||||||
@ -810,7 +811,8 @@ bool EventRecorder::checkForContinueGame() {
|
|||||||
|
|
||||||
void EventRecorder::deleteTemporarySave() {
|
void EventRecorder::deleteTemporarySave() {
|
||||||
if (_temporarySlot == -1) return;
|
if (_temporarySlot == -1) return;
|
||||||
const Plugin *plugin = EngineMan.findPlugin(ConfMan.get("engineid"));
|
const Plugin *detectionPlugin = EngineMan.findPlugin(ConfMan.get("engineid"));
|
||||||
|
const Plugin *plugin = PluginMan.getEngineFromMetaEngine(detectionPlugin);
|
||||||
const Common::String target = ConfMan.getActiveDomainName();
|
const Common::String target = ConfMan.getActiveDomainName();
|
||||||
plugin->get<MetaEngine>().removeSaveState(target.c_str(), _temporarySlot);
|
plugin->get<MetaEngine>().removeSaveState(target.c_str(), _temporarySlot);
|
||||||
_temporarySlot = -1;
|
_temporarySlot = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user