cleaning up the mess drigo left... <sigh>

svn-id: r4215
This commit is contained in:
Max Horn 2002-05-05 20:04:26 +00:00
parent 816fe71168
commit 2f2d4527ef
16 changed files with 36 additions and 85 deletions

View File

@ -23,13 +23,8 @@
#include "stdafx.h"
#include "scumm.h"
#ifndef macintosh
#include "sound/mididrv.h"
#include "sound/imuse.h"
#else
#include "mididrv.h"
#include "imuse.h"
#endif
#include "gameDetector.h"
@ -473,6 +468,8 @@ int GameDetector::detectMain(int argc, char **argv)
_gfx_driver = GD_MORPHOS;
#elif defined(_WIN32_WCE)
_gfx_driver = GD_WINCE;
#elif defined(MACOS_CARBON)
_gfx_driver = GD_MAC;
#else
/* SDL is the default driver for now */
_gfx_driver = GD_SDL;
@ -542,6 +539,9 @@ OSystem *GameDetector::createSystem() {
#elif defined(__MORPHOS__)
case GD_MORPHOS:
return OSystem_MorphOS_create(_gameId, _gfx_mode, _fullScreen);
#elif defined(MACOS_CARBON)
case GD_MAC:
return OSystem_MAC_create(_gfx_mode, _fullScreen);
#elif defined(USE_NULL_DRIVER)
case GD_NULL:
return OSystem_NULL_create();

View File

@ -21,13 +21,8 @@
#include "stdafx.h"
#include "scumm.h"
#ifndef macintosh
#include "sound/mididrv.h"
#include "sound/imuse.h"
#else
#include "mididrv.h"
#include "imuse.h"
#endif
#include "gui.h"
#include "guimaps.h"

View File

@ -4,4 +4,4 @@
#include <MacHeadersCarbon>
#endif
#define __APPLE__CW
#define MACOS_CARBON

Binary file not shown.

View File

@ -25,11 +25,7 @@
#include "mididrv.h"
#include "gameDetector.h"
#include "gui.h"
#ifndef macintosh
#include "simon/simon.h"
#else
#include "simon.h"
#endif
#include "config-file.h"
GameDetector detector;
@ -98,8 +94,13 @@ static void do_memory_test(void) {
int main(int argc, char *argv[])
{
/*
Disabled this for now. What good does it do, anyway, we now have real config
files, and a proper port to MacOS classic should offer a dialog or so for any
game settings!
#if defined(MACOS_SDL)
/* support for config file for macos SDL port */
// support for config file for macos SDL port
char *argitem;
char *argstr;
@ -131,6 +132,7 @@ int main(int argc, char *argv[])
fclose(argf);
#endif
*/
#if defined(UNIX) || defined(UNIX_X11)
char scummhome[MAXPATHLEN];

View File

@ -22,13 +22,8 @@
#include "stdafx.h"
#include "scumm.h"
#ifndef macintosh
#include "sound/mididrv.h"
#include "sound/imuse.h"
#else
#include "mididrv.h"
#include "imuse.h"
#endif
struct SaveGameHeader {
uint32 type;
@ -163,7 +158,7 @@ void Scumm::makeSavegameName(char *out, int slot, bool compatible)
#ifndef _WIN32_WCE
#if !defined(macintosh)
#if !defined(MACOS_CARBON)
const char *dir = getenv("SCUMMVM_SAVEPATH");
if (dir == NULL)
dir = "";

View File

@ -24,13 +24,8 @@
#include "stdafx.h"
#include "scumm.h"
#ifndef macintosh
#include "sound/mididrv.h"
#include "sound/imuse.h"
#else
#include "mididrv.h"
#include "imuse.h"
#endif
void Scumm::setupOpcodes2()
{
@ -2713,7 +2708,6 @@ void Scumm::o6_miscOps()
break;
case 13:
remapActor(derefActorSafe(args[1], "o6_miscOps:14"), args[2], args[3],
args[4], -1);
break;
case 14:
@ -2919,27 +2913,16 @@ void Scumm::o6_kernelFunction()
break;
case 211:
warning("o6_kernelFunction: getInput(%d)", args[1]);
/*
13 = thrust
336 = thrust
328 = thrust
27 = abord
97 = left
331 = left
115 = right
333 = tight
*/
push(0);
break;
case 212:

View File

@ -21,11 +21,7 @@
#include "scummsys.h"
#include "system.h"
#ifndef macintosh
#include "sound/mixer.h"
#else
#include "mixer.h"
#endif
#include "config-file.h"
#define SCUMMVM_VERSION "0.2.0 devel"

View File

@ -22,13 +22,8 @@
#include "stdafx.h"
#include "scumm.h"
#ifndef macintosh
#include "sound/mididrv.h"
#include "sound/imuse.h"
#else
#include "mididrv.h"
#include "imuse.h"
#endif
#include "gui.h"
#include "string.h"
#include "gameDetector.h"
@ -742,7 +737,7 @@ void Scumm::dumpResource(char *tag, int idx, byte *ptr)
else
size = READ_BE_UINT32_UNALIGNED(ptr + 4);
#if defined(macintosh)
#if defined(MACOS_CARBON)
sprintf(buf, ":dumps:%s%d.dmp", tag, idx);
#else
sprintf(buf, "dumps/%s%d.dmp", tag, idx);

View File

@ -23,13 +23,8 @@
#include "stdafx.h"
#include "scummsys.h"
#include "system.h"
#ifndef macintosh
#include "../sound/mididrv.h"
#include "../sound/mixer.h"
#else
#include "mididrv.h"
#include "mixer.h"
#endif
#include "simon.h"
void MidiPlayer::read_from_file(void *dst, uint size) {

View File

@ -23,11 +23,7 @@
#include "stdafx.h"
#include "scummsys.h"
#include "system.h"
#ifndef macintosh
#include "../sound/mixer.h"
#else
#include "mixer.h"
#endif
#include "simon.h"
@ -38,11 +34,7 @@
#ifdef WIN32
#include <malloc.h>
#endif
#ifndef macintosh
#include <sys/stat.h>
#else
#include <stat.h>
#endif
int sdl_mouse_x, sdl_mouse_y;

View File

@ -23,11 +23,7 @@
#include "stdafx.h"
#include "scummsys.h"
#include "system.h"
#ifndef macintosh
#include "../sound/mixer.h"
#else
#include "mixer.h"
#endif
#include "simon.h"
#include <stdarg.h>

View File

@ -22,15 +22,9 @@
#include "stdafx.h"
#include "scumm.h"
#ifndef macintosh
#include "sound/mididrv.h"
#include "sound/imuse.h"
#include <sys/stat.h>
#else
#include "mididrv.h"
#include "imuse.h"
#include <stat.h>
#endif
#ifdef _WIN32_WCE
extern void *bsearch(const void *, const void *, size_t,

View File

@ -454,12 +454,14 @@ MidiDriver *MidiDriver_SEQ_create() {
// to check for these *cleanly* without a configure script, though..
//#include <QuickTime/QuickTimeComponents.h>
//#include <QuickTime/QuickTimeMusic.h>
#include <QuickTimeComponents.h>
#include <QuickTimeMusic.h>
#if defined(MACOSX)
// On MacOSX, these are in a frameworks!
#include <QuickTime/QuickTimeComponents.h>
#include <QuickTime/QuickTimeMusic.h>
#else
#include <QuickTimeComponents.h>
#include <QuickTimeMusic.h>
#endif
/* QuickTime MIDI driver */

View File

@ -2,6 +2,9 @@
* $Id$
*
* $Log$
* Revision 1.16 2002/05/05 20:04:25 fingolfin
* cleaning up the mess drigo left... <sigh>
*
* Revision 1.15 2002/05/05 19:06:51 drigo
* Fixed some things for Macintosh ports
*
@ -132,7 +135,8 @@
#define SCUMMVM_PLATFORM_VERSION "X11 version"
#else
#ifdef macintosh
#ifdef MACOS_CARBON
#define SCUMMVM_PLATFORM_VERSION "Macintosh version"
#else

View File

@ -145,12 +145,13 @@ public:
*/
/* OSystem_SDL */
OSystem *OSystem_SDL_create(int gfx_driver, bool full_screen);
OSystem *OSystem_NULL_create();
OSystem *OSystem_MorphOS_create(int game_id, int gfx_driver, bool full_screen);
OSystem *OSystem_Dreamcast_create();
OSystem *OSystem_WINCE3_create();
OSystem *OSystem_X11_create();
extern OSystem *OSystem_SDL_create(int gfx_driver, bool full_screen);
extern OSystem *OSystem_NULL_create();
extern OSystem *OSystem_MorphOS_create(int game_id, int gfx_driver, bool full_screen);
extern OSystem *OSystem_Dreamcast_create();
extern OSystem *OSystem_WINCE3_create();
extern OSystem *OSystem_X11_create();
extern OSystem *OSystem_MAC_create(int gfx_mode, bool full_screen);
enum {
GFX_NORMAL = 0,
@ -170,5 +171,6 @@ enum {
GD_X,
GD_MORPHOS,
GD_WINCE,
GD_MAC,
GD_DC
};