mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 01:46:42 +00:00
STARK: Implement basic FMV nodes (some data left to read).
This commit is contained in:
parent
834d1626b5
commit
afd53de7f6
@ -32,6 +32,7 @@
|
||||
#include "engines/stark/resources/command.h"
|
||||
#include "engines/stark/resources/dialog.h"
|
||||
#include "engines/stark/resources/direction.h"
|
||||
#include "engines/stark/resources/fmv.h"
|
||||
#include "engines/stark/resources/image.h"
|
||||
#include "engines/stark/resources/item.h"
|
||||
#include "engines/stark/resources/floor.h"
|
||||
@ -262,6 +263,9 @@ Resources::Object *XRCReader::createResource(XRCReadStream *stream, Resources::O
|
||||
case Resources::Type::kScroll:
|
||||
resource = new Resources::Scroll(parent, subType, index, name);
|
||||
break;
|
||||
case Resources::Type::kFMV:
|
||||
resource = new Resources::FMV(parent, subType, index, name);
|
||||
break;
|
||||
case Resources::Type::kTextureSet:
|
||||
resource = new Resources::TextureSet(parent, subType, index, name);
|
||||
break;
|
||||
|
@ -28,6 +28,7 @@ MODULE_OBJS := \
|
||||
resources/direction.o \
|
||||
resources/floor.o \
|
||||
resources/floorface.o \
|
||||
resources/fmv.o \
|
||||
resources/image.o \
|
||||
resources/item.o \
|
||||
resources/knowledge.o \
|
||||
|
48
engines/stark/resources/fmv.cpp
Normal file
48
engines/stark/resources/fmv.cpp
Normal file
@ -0,0 +1,48 @@
|
||||
/* ResidualVM - A 3D game interpreter
|
||||
*
|
||||
* ResidualVM is the legal property of its developers, whose names
|
||||
* are too numerous to list here. Please refer to the AUTHORS
|
||||
* 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 "engines/stark/resources/fmv.h"
|
||||
|
||||
#include "engines/stark/formats/xrc.h"
|
||||
|
||||
namespace Stark {
|
||||
namespace Resources {
|
||||
|
||||
FMV::~FMV() {
|
||||
}
|
||||
|
||||
FMV::FMV(Object *parent, byte subType, uint16 index, const Common::String &name) :
|
||||
Object(parent, subType, index, name) {
|
||||
_type = TYPE;
|
||||
}
|
||||
|
||||
void FMV::readData(Formats::XRCReadStream *stream) {
|
||||
_filename = stream->readString(); // TODO more
|
||||
}
|
||||
|
||||
void FMV::printData() {
|
||||
debug("filename: %s", _filename.c_str());
|
||||
// TODO rest
|
||||
}
|
||||
|
||||
} // End of namespace Resources
|
||||
} // End of namespace Stark
|
56
engines/stark/resources/fmv.h
Normal file
56
engines/stark/resources/fmv.h
Normal file
@ -0,0 +1,56 @@
|
||||
/* ResidualVM - A 3D game interpreter
|
||||
*
|
||||
* ResidualVM is the legal property of its developers, whose names
|
||||
* are too numerous to list here. Please refer to the AUTHORS
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef STARK_RESOURCES_FMV_H
|
||||
#define STARK_RESOURCES_FMV_H
|
||||
|
||||
#include "common/str.h"
|
||||
|
||||
#include "engines/stark/resources/object.h"
|
||||
|
||||
namespace Stark {
|
||||
|
||||
namespace Formats {
|
||||
class XRCReadStream;
|
||||
}
|
||||
|
||||
namespace Resources {
|
||||
|
||||
class FMV : public Object {
|
||||
public:
|
||||
static const Type::ResourceType TYPE = Type::kFMV;
|
||||
|
||||
FMV(Object *parent, byte subType, uint16 index, const Common::String &name);
|
||||
virtual ~FMV();
|
||||
|
||||
void readData(Formats::XRCReadStream *stream) override;
|
||||
|
||||
Common::String getFilename() const { return _filename; }
|
||||
protected:
|
||||
void printData() override;
|
||||
Common::String _filename;
|
||||
};
|
||||
|
||||
} // End of namespace Resources
|
||||
} // End of namespace Stark
|
||||
|
||||
#endif // STARK_RESOURCES_FMV_H
|
Loading…
x
Reference in New Issue
Block a user