diff options
author | johndoe123 | 2014-03-10 13:12:21 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 26487555b1c49fa95c3ebcc20c9b8228629c0552 (patch) | |
tree | dd19bd30245c8b936268663ab05bc0adf4c68971 /engines/illusions/backgroundresource.cpp | |
parent | 7300dd09cd5d2b70e87d3a29faa562801b0767c5 (diff) | |
download | scummvm-rg350-26487555b1c49fa95c3ebcc20c9b8228629c0552.tar.gz scummvm-rg350-26487555b1c49fa95c3ebcc20c9b8228629c0552.tar.bz2 scummvm-rg350-26487555b1c49fa95c3ebcc20c9b8228629c0552.zip |
ILLUSIONS: Start with BackgroundResource
Diffstat (limited to 'engines/illusions/backgroundresource.cpp')
-rw-r--r-- | engines/illusions/backgroundresource.cpp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/engines/illusions/backgroundresource.cpp b/engines/illusions/backgroundresource.cpp new file mode 100644 index 0000000000..34d1e985cd --- /dev/null +++ b/engines/illusions/backgroundresource.cpp @@ -0,0 +1,47 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#include "illusions/illusions.h" +#include "illusions/backgroundresource.h" +#include "common/str.h" + +namespace Illusions { + +// BackgroundResourceLoader + +void BackgroundResourceLoader::load(Resource *resource) { + debug("BackgroundResourceLoader::load() Loading background %08X from %s...", resource->_resId, resource->_filename.c_str()); +} + +void BackgroundResourceLoader::unload(Resource *resource) { +} + +void BackgroundResourceLoader::buildFilename(Resource *resource) { + resource->_filename = Common::String::format("%08X.bg", resource->_resId); +} + +bool BackgroundResourceLoader::isFlag(int flag) { + return + flag == kRlfLoadFile; +} + +} // End of namespace Illusions |