mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
ICB: Cleanup macros
This commit is contained in:
parent
5559c71517
commit
43e97395b5
@ -31,7 +31,6 @@
|
||||
#endif
|
||||
|
||||
#include "engines/icb/common/px_rccommon.h"
|
||||
#include "engines/icb/common/px_windows.h"
|
||||
#include "engines/icb/common/px_string.h"
|
||||
#include "engines/icb/res_man_pc.h"
|
||||
#include "debug_pc.h"
|
||||
|
@ -30,16 +30,6 @@
|
||||
|
||||
namespace ICB {
|
||||
|
||||
#ifndef PX_WINDOWS_H_INCLUDED
|
||||
|
||||
#ifndef _WIN32
|
||||
typedef void *HWND;
|
||||
typedef int HRESULT;
|
||||
typedef uint32 DWORD;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
int32 left;
|
||||
int32 top;
|
||||
@ -47,6 +37,8 @@ typedef struct {
|
||||
int32 bottom;
|
||||
} LRECT;
|
||||
|
||||
#define _MAX_PATH 260
|
||||
|
||||
} // End of namespace ICB
|
||||
|
||||
#endif
|
||||
|
@ -1,52 +0,0 @@
|
||||
/* 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.
|
||||
*
|
||||
* Additional copyright for this file:
|
||||
* Copyright (C) 1999-2000 Revolution Software Ltd.
|
||||
* This code is based on source code created by Revolution Software,
|
||||
* used with permission.
|
||||
*
|
||||
* 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 PX_WINDOWS_H_INCLUDED
|
||||
#define PX_WINDOWS_H_INCLUDED
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#else
|
||||
|
||||
namespace ICB {
|
||||
|
||||
// define some windows.h compatibility types
|
||||
|
||||
#define MAX_PATH (260)
|
||||
#define _MAX_PATH MAX_PATH
|
||||
|
||||
typedef signed int LONG;
|
||||
typedef int BOOL;
|
||||
typedef void *PVOID;
|
||||
typedef PVOID HANDLE;
|
||||
typedef HANDLE HWND;
|
||||
|
||||
} // End of namespace ICB
|
||||
|
||||
#endif
|
||||
|
||||
#endif // PX_WINDOWS_H_INCLUDED
|
@ -25,8 +25,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "engines/icb/common/px_windows.h"
|
||||
|
||||
#include "p4.h"
|
||||
|
||||
#include "p4_generic.h"
|
||||
|
@ -25,8 +25,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "engines/icb/common/px_windows.h"
|
||||
|
||||
#include "engines/icb/common/px_rccommon.h"
|
||||
#include "engines/icb/common/px_common.h"
|
||||
#include "p4_generic.h"
|
||||
|
@ -26,7 +26,6 @@
|
||||
*/
|
||||
|
||||
#include "engines/icb/common/px_rccommon.h"
|
||||
#include "engines/icb/common/px_windows.h"
|
||||
|
||||
#if defined (SDL_BACKEND)
|
||||
#include <SDL/SDL_joystick.h>
|
||||
@ -236,7 +235,7 @@ int NTJoystickHandler::GetJoystick(int joynum, JoyInfo *joypos) {
|
||||
|
||||
NTJoystickHandler ntJoystick;
|
||||
|
||||
BOOL PollNTJoystick() {
|
||||
bool PollNTJoystick() {
|
||||
ntJoystick.UpdateJoystick();
|
||||
|
||||
// State structre
|
||||
|
@ -25,10 +25,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef _PC
|
||||
#include "engines/icb/common/px_windows.h"
|
||||
#endif
|
||||
|
||||
#include "engines/icb/common/px_common.h"
|
||||
#include "engines/icb/common/ptr_util.h"
|
||||
|
||||
|
@ -25,7 +25,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "engines/icb/common/px_windows.h"
|
||||
#include "res_man.h"
|
||||
#include "game_script.h"
|
||||
#include "debug.h"
|
||||
|
@ -53,7 +53,7 @@ void Clear_key_buffer() {
|
||||
keyPointer = 0;
|
||||
}
|
||||
|
||||
BOOL KeyWaiting() {
|
||||
bool KeyWaiting() {
|
||||
if (keyBacklog)
|
||||
return (true);
|
||||
else
|
||||
|
@ -40,7 +40,7 @@ typedef struct {
|
||||
|
||||
void WriteKey(char key); // Adds a keypress to the buffer
|
||||
|
||||
extern BOOL KeyWaiting();
|
||||
extern bool KeyWaiting();
|
||||
|
||||
extern int32 ReadKey(char *key);
|
||||
extern void GetKeyStatus(_drvKeyStatus *s);
|
||||
|
@ -26,7 +26,6 @@
|
||||
*/
|
||||
|
||||
#include "engines/icb/common/px_rccommon.h"
|
||||
#include "engines/icb/common/px_windows.h"
|
||||
#include "movie_pc.h"
|
||||
#include "direct_input.h"
|
||||
#include "engines/icb/sound/music_manager.h"
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include <time.h>
|
||||
|
||||
#include "engines/icb/common/px_rccommon.h"
|
||||
#include "engines/icb/common/px_windows.h"
|
||||
#include "engines/icb/icb.h"
|
||||
|
||||
#include "options_manager_pc.h"
|
||||
|
@ -29,7 +29,6 @@
|
||||
#define FORBIDDEN_SYMBOL_EXCEPTION_localtime
|
||||
#define FORBIDDEN_SYMBOL_EXCEPTION_mkdir
|
||||
|
||||
#include "engines/icb/common/px_windows.h"
|
||||
#include <math.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
|
@ -63,7 +63,7 @@ extern uint32 sys_font_hash; // Res_open will compute the hash value and sto
|
||||
#define RESOURCE_IS_COMPRESSED 1
|
||||
|
||||
#if _PC
|
||||
extern BOOL gRegainedFocus; // Set when we regain the focus. Cleared by the graphics reloading functions
|
||||
extern bool gRegainedFocus; // Set when we regain the focus. Cleared by the graphics reloading functions
|
||||
|
||||
} // End of namespace ICB (To avoid including inside the namespace
|
||||
|
||||
|
@ -29,7 +29,6 @@
|
||||
#define INCLUDED_P4_GENERIC_H
|
||||
|
||||
#include "engines/icb/common/px_rccommon.h"
|
||||
#include "engines/icb/common/px_windows.h"
|
||||
|
||||
#include "p4.h"
|
||||
|
||||
|
@ -25,7 +25,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "engines/icb/common/px_windows.h"
|
||||
#ifdef _WIN32
|
||||
#include <direct.h> // _getcwd()
|
||||
#else
|
||||
@ -53,8 +52,8 @@
|
||||
|
||||
namespace ICB {
|
||||
|
||||
BOOL gRegainedFocus = false;
|
||||
BOOL gotTheFocus = false;
|
||||
bool gRegainedFocus = false;
|
||||
bool gotTheFocus = false;
|
||||
|
||||
pxString font_cluster = FONT_CLUSTER_PATH;
|
||||
|
||||
@ -632,7 +631,7 @@ void _stub::Fix_time() {
|
||||
|
||||
int WhichCD(const char * /* mission */) { return 1; }
|
||||
|
||||
BOOL HasMMXTechnology() { return true; }
|
||||
bool HasMMXTechnology() { return true; }
|
||||
|
||||
void _mission::LoadPlatformSpecific(Common::SeekableReadStream * /* fh */) {
|
||||
// No PC specific stuff in here (at the moment)
|
||||
|
@ -42,7 +42,7 @@ bool8 openWav(Common::SeekableReadStream *stream, _wavHeader &header, uint32 &le
|
||||
// TODO: fopen must happen before
|
||||
int bytesRead;
|
||||
char buff[1024];
|
||||
BOOL bMore = true;
|
||||
bool bMore = true;
|
||||
|
||||
// Read the wave header
|
||||
if (stream->read(&header, sizeof(_wavHeader)) != sizeof(_wavHeader))
|
||||
|
@ -455,9 +455,6 @@ void _surface_manager::Kill_surface(uint32 s_id) {
|
||||
}
|
||||
|
||||
uint8 *_surface_manager::Lock_surface(uint32 s_id) {
|
||||
#if 0
|
||||
HRESULT hr;
|
||||
#endif
|
||||
_surface *pSurface = m_Surfaces[s_id];
|
||||
|
||||
if (pSurface->m_locked)
|
||||
|
@ -26,7 +26,6 @@
|
||||
*/
|
||||
|
||||
#include "engines/icb/common/px_common.h"
|
||||
#include "engines/icb/common/px_windows.h"
|
||||
#include <cstring>
|
||||
#include "engines/icb/p4.h"
|
||||
#include "engines/icb/zsupport.h"
|
||||
|
Loading…
Reference in New Issue
Block a user