[Scummvm-cvs-logs] CVS: scummvm/kyra .cvsignore,NONE,1.1 kyra.cpp,NONE,1.1 kyra.h,NONE,1.1 kyra.o,NONE,1.1 libkyra.a,NONE,1.1 module.mk,NONE,1.1
James Brown
ender at users.sourceforge.net
Fri Apr 9 05:50:14 CEST 2004
Update of /cvsroot/scummvm/scummvm/kyra
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10031/kyra
Added Files:
.cvsignore kyra.cpp kyra.h kyra.o libkyra.a module.mk
Log Message:
Add Kyrandia base
--- NEW FILE: .cvsignore ---
.deps
--- NEW FILE: kyra.cpp ---
/* ScummVM - Scumm Interpreter
* Copyright (C) 2003 The ScummVM project
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Header: /cvsroot/scummvm/scummvm/kyra/kyra.cpp,v 1.1 2004/04/09 12:36:06 ender Exp $
*
*/
#include "stdafx.h"
#include "base/gameDetector.h"
#include "base/plugins.h"
#include "backends/fs/fs.h"
#include "sound/mixer.h"
#include "common/file.h"
#include "common/config-manager.h"
#include "kyra.h"
static const GameSettings kyra_setting =
{ "kyra", "Legend of Kyrandia", 0 };
GameList Engine_KYRA_gameList() {
GameList games;
games.push_back(kyra_setting);
return games;
}
// TODO: Improve this :)
DetectedGameList Engine_KYRA_detectGames(const FSList &fslist) {
DetectedGameList detectedGames;
File test_file;
printf("Detecting Kyra...\n");
// Iterate over all files in the given directory
for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
const char *name = file->displayName().c_str();
if ((0 == scumm_stricmp("chapter1.vrm", name)) ||
(0 == scumm_stricmp("chapter5.vrm", name))) {
detectedGames.push_back(kyra_setting);
break;
}
}
return detectedGames;
}
Engine *Engine_KYRA_create(GameDetector *detector, OSystem *syst) {
return new Kyra::KyraEngine(detector, syst);
}
REGISTER_PLUGIN("Legend of Kyrandia Engine", Engine_KYRA_gameList, Engine_KYRA_create, Engine_KYRA_detectGames)
namespace Kyra {
KyraEngine::KyraEngine(GameDetector *detector, OSystem *syst)
: Engine(syst) {
// Setup mixer
if (!_mixer->isReady()) {
warning("Sound initialization failed.");
}
_mixer->setVolume(ConfMan.getInt("sfx_volume") * ConfMan.getInt("master_volume") / 255);
//getGameDataPath();
// Initialize backend
syst->initSize(320, 240);
}
KyraEngine::~KyraEngine() {
}
void KyraEngine::errorString(const char *buf1, char *buf2) {
strcpy(buf2, buf1);
}
void KyraEngine::go() {
warning("Kyrandia Engine ::go()");
}
void KyraEngine::shutdown() {
_system->quit();
}
} // End of namespace KYRA
--- NEW FILE: kyra.h ---
/* ScummVM - Scumm Interpreter
* Copyright (C) 2003 The ScummVM project
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Header: /cvsroot/scummvm/scummvm/kyra/kyra.h,v 1.1 2004/04/09 12:36:06 ender Exp $
*
*/
#ifndef KYRA_H
#define KYRA_H
#include "common/scummsys.h"
#include "base/engine.h"
#include "base/gameDetector.h"
#include "common/util.h"
namespace Kyra {
class KyraEngine : public Engine {
void errorString( const char *buf_input, char *buf_output);
protected:
void go();
void shutdown();
public:
KyraEngine(GameDetector *detector, OSystem *syst);
virtual ~KyraEngine();
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8-
N
8-
N
:
N
{
N
µ
µ
øN
FO
$O
(
¦
O
µ
É8
É8
(
(
(
(
'W,
Ê9
Ê9
£:
£:
$X
/
$X
µ
/
µ
µ
µ
$X
µ
¼=
¼=
/
Ô8
Õ9
Y
¼=
Y
µ
¼=
µ
µ
µ
Y
µ
D
D
D
µ
D
µ
µ
µ
D
µ
UD
UD
¬D
¬D
rD
ÈD
bI
bI
I
bI
ÈD
ÈD
mI
µ
3I
>I
3I
µ
>I
µ
µ
µ
3I
µ
kJ
kJ
kJ
kJ
ÕL
ÕL
kJ
ÕL
ÕL
ÕL
µ
µ
kJ
N
N
N
l
þN
þN
µ
¦
$O
(
U
U
4U
4U
-
-
-
-
ëW
ëW
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
S
-
l
-
-
µ
-
-
8-
-
-
-
-
l
-
µ
-
8-
-
-
-
-
-
-
X
-
X
¼W
ÇW
¼W
µ
ÇW
µ
µ
µ
¼W
µ
_
_
l
ß0
1
nsert_atEiRKS3_
ertChannelEP18PlayingSoundHandleP7Channel
R
`
--- NEW FILE: module.mk ---
MODULE := kyra
MODULE_OBJS = \
kyra/kyra.o
MODULE_DIRS += \
kyra
# This module can be built as a plugin
ifdef BUILD_PLUGINS
PLUGIN := 1
endif
# Include common rules
include $(srcdir)/common.rules
More information about the Scummvm-git-logs
mailing list