diff options
author | Strangerke | 2012-09-05 03:20:30 -0700 |
---|---|---|
committer | Strangerke | 2012-09-05 03:20:30 -0700 |
commit | 5780748b62119988dc219d5c636681766065bd75 (patch) | |
tree | b9a1a11849d6cd956b709ec0e21c820b042edac6 /engines/tony/mpal/loadmpc.h | |
parent | 6472ef86bbee92bc02a67d87677dc6b0925a0362 (diff) | |
parent | c737e6429866f18638a6b61103e4e1c7095407e6 (diff) | |
download | scummvm-rg350-5780748b62119988dc219d5c636681766065bd75.tar.gz scummvm-rg350-5780748b62119988dc219d5c636681766065bd75.tar.bz2 scummvm-rg350-5780748b62119988dc219d5c636681766065bd75.zip |
Merge pull request #273 from fuzzie/tony
Tony engine (Tony Tough)
Diffstat (limited to 'engines/tony/mpal/loadmpc.h')
-rw-r--r-- | engines/tony/mpal/loadmpc.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/engines/tony/mpal/loadmpc.h b/engines/tony/mpal/loadmpc.h new file mode 100644 index 0000000000..20956288aa --- /dev/null +++ b/engines/tony/mpal/loadmpc.h @@ -0,0 +1,59 @@ +/* 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. + * + * + */ +/* + * This code is based on original Tony Tough source code + * + * Copyright (c) 1997-2003 Nayma Software + */ + +#ifndef __LOADMPC_H +#define __LOADMPC_H + +namespace Tony { + +namespace MPAL { + +/****************************************************************************\ +* Function prototypes +\****************************************************************************/ + +/** + * Reads and interprets the MPC file, and create structures for various directives + * in the global variables + * + * @param lpBuf Buffer containing the MPC file data, excluding the header. + * @returns True if succeeded OK, false if failure. + */ +bool parseMpc(const byte *lpBuf); + +/** + * Frees any data allocated from the parsing of the MPC file + */ +void freeMpc(); + +} // end of namespace MPAL + +} // end of namespace Tony + +#endif + |