COMPOSER: Completely removed unnecessary #ifdefs
This commit is contained in:
parent
027bab88fb
commit
c4c6cce78e
8 changed files with 3 additions and 41 deletions
|
@ -21,11 +21,9 @@
|
|||
*/
|
||||
|
||||
#include "base/plugins.h"
|
||||
#ifdef SAVING_ANYWHERE
|
||||
#include "common/savefile.h"
|
||||
#include "common/serializer.h"
|
||||
#include "common/str-array.h"
|
||||
#endif // SAVING_ANYWHERE
|
||||
#include "engines/advancedDetector.h"
|
||||
|
||||
#include "composer/composer.h"
|
||||
|
@ -466,14 +464,9 @@ bool ComposerMetaEngine::createInstance(OSystem *syst, Engine **engine, const AD
|
|||
}
|
||||
|
||||
bool ComposerMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||
#ifdef SAVING_ANYWHERE
|
||||
return (f == kSupportsListSaves);
|
||||
#else
|
||||
return false;
|
||||
#endif // SAVING_ANYWHERE
|
||||
return (f == kSupportsListSaves);
|
||||
}
|
||||
|
||||
#ifdef SAVING_ANYWHERE
|
||||
Common::String getSaveName(Common::InSaveFile *in) {
|
||||
Common::Serializer ser(in, NULL);
|
||||
Common::String name;
|
||||
|
@ -512,14 +505,11 @@ SaveStateList ComposerMetaEngine::listSaves(const char *target) const {
|
|||
|
||||
return saveList;
|
||||
}
|
||||
#endif // SAVING_ANYWHERE
|
||||
|
||||
bool Composer::ComposerEngine::hasFeature(EngineFeature f) const {
|
||||
return (f == kSupportsRTL
|
||||
#ifdef SAVING_ANYWHERE
|
||||
|| f == kSupportsSavingDuringRuntime || f == kSupportsLoadingDuringRuntime
|
||||
#endif // SAVING_ANYWHERE
|
||||
);
|
||||
|| f == kSupportsSavingDuringRuntime
|
||||
|| f == kSupportsLoadingDuringRuntime);
|
||||
}
|
||||
|
||||
#if PLUGIN_ENABLED_DYNAMIC(COMPOSER)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue