diff options
author | Paul Gilbert | 2010-07-31 06:23:38 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 21:55:38 +0000 |
commit | e78b19a650e27fe9a24d0e4c9c938294c7b08650 (patch) | |
tree | d61751dd6dbefe6834742ff9cc5d10f61be4dc02 /engines/sword25/kernel/service_ids.h | |
parent | 1842de4b0035854f271a40dcaa514cdba66bcf57 (diff) | |
download | scummvm-rg350-e78b19a650e27fe9a24d0e4c9c938294c7b08650.tar.gz scummvm-rg350-e78b19a650e27fe9a24d0e4c9c938294c7b08650.tar.bz2 scummvm-rg350-e78b19a650e27fe9a24d0e4c9c938294c7b08650.zip |
SWORD25: Converted kernel/kernel.cpp to compile under ScummVM
This commit creates a skeleton detection and engine class, as well as code necessary to call the kernel initiation.
The kernel/kernel.cpp has been converted to compile under ScummVM, along with all dependant header files.
svn-id: r53184
Diffstat (limited to 'engines/sword25/kernel/service_ids.h')
-rwxr-xr-x | engines/sword25/kernel/service_ids.h | 84 |
1 files changed, 48 insertions, 36 deletions
diff --git a/engines/sword25/kernel/service_ids.h b/engines/sword25/kernel/service_ids.h index 77df745236..7b6e19bf5a 100755 --- a/engines/sword25/kernel/service_ids.h +++ b/engines/sword25/kernel/service_ids.h @@ -1,43 +1,51 @@ -// ----------------------------------------------------------------------------- -// This file is part of Broken Sword 2.5 -// Copyright (c) Malte Thiesen, Daniel Queteschiner and Michael Elsdörfer -// -// Broken Sword 2.5 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. -// -// Broken Sword 2.5 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 Broken Sword 2.5; if not, write to the Free Software -// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// ----------------------------------------------------------------------------- - -/* - service_ids.h - ------------- - In dieser Datei sind alle Services verzeichnet. - JEDER neuer Service muss hier eingetragen werden, ansonsten kann er nicht mit - pKernel->NewService(..) instanziiert werden. - - Autor: Malte Thiesen -*/ +/* 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. + * + * $URL$ + * $Id$ + * + * service_ids.h + * ------------- + * This file lists all the services. + * EVERY new service needs to be entered here, otherwise it cannot be instantiated + * by pKernel->NewService(..) + * + * Autor: Malte Thiesen + */ + +#ifndef SWORD25_SERVICE_IDS +#define SWORD25_SERVICE_IDS #include "sword25/kernel/common.h" -BS_Service * BS_OpenGLGfx_CreateObject(BS_Kernel* pKernel); -BS_Service * BS_PhysfsPackageManager_CreateObject(BS_Kernel* pKernel); -BS_Service * BS_StdWinInput_CreateObject(BS_Kernel* pKernel); -BS_Service * BS_FMODExSound_CreateObject(BS_Kernel* pKernel); -BS_Service * BS_LuaScriptEngine_CreateObject(BS_Kernel* pKernel); -BS_Service * BS_Geometry_CreateObject(BS_Kernel* pKernel); -BS_Service * BS_OggTheora_CreateObject(BS_Kernel* pKernel); +namespace Sword25 { -// Services müssen in dieser Tabelle eingetragen werden +BS_Service *BS_OpenGLGfx_CreateObject(BS_Kernel* pKernel); +BS_Service *BS_PhysfsPackageManager_CreateObject(BS_Kernel* pKernel); +BS_Service *BS_StdWinInput_CreateObject(BS_Kernel* pKernel); +BS_Service *BS_FMODExSound_CreateObject(BS_Kernel* pKernel); +BS_Service *BS_LuaScriptEngine_CreateObject(BS_Kernel* pKernel); +BS_Service *BS_Geometry_CreateObject(BS_Kernel* pKernel); +BS_Service *BS_OggTheora_CreateObject(BS_Kernel* pKernel); + +// Services are recorded in this table const BS_ServiceInfo BS_SERVICE_TABLE[] = { // Die ersten beiden Parameter sind die Namen der Superclass und des Services. @@ -54,3 +62,7 @@ const BS_ServiceInfo BS_SERVICE_TABLE[] = }; const unsigned int BS_SERVICE_COUNT = sizeof(BS_SERVICE_TABLE) / sizeof(BS_ServiceInfo); + +} // End of namespace Sword25 + +#endif |