cleaning up the mess drigo left... <sigh>
svn-id: r4215
This commit is contained in:
parent
816fe71168
commit
2f2d4527ef
16 changed files with 36 additions and 85 deletions
|
@ -23,13 +23,8 @@
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "scumm.h"
|
#include "scumm.h"
|
||||||
#ifndef macintosh
|
|
||||||
#include "sound/mididrv.h"
|
#include "sound/mididrv.h"
|
||||||
#include "sound/imuse.h"
|
#include "sound/imuse.h"
|
||||||
#else
|
|
||||||
#include "mididrv.h"
|
|
||||||
#include "imuse.h"
|
|
||||||
#endif
|
|
||||||
#include "gameDetector.h"
|
#include "gameDetector.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -473,6 +468,8 @@ int GameDetector::detectMain(int argc, char **argv)
|
||||||
_gfx_driver = GD_MORPHOS;
|
_gfx_driver = GD_MORPHOS;
|
||||||
#elif defined(_WIN32_WCE)
|
#elif defined(_WIN32_WCE)
|
||||||
_gfx_driver = GD_WINCE;
|
_gfx_driver = GD_WINCE;
|
||||||
|
#elif defined(MACOS_CARBON)
|
||||||
|
_gfx_driver = GD_MAC;
|
||||||
#else
|
#else
|
||||||
/* SDL is the default driver for now */
|
/* SDL is the default driver for now */
|
||||||
_gfx_driver = GD_SDL;
|
_gfx_driver = GD_SDL;
|
||||||
|
@ -542,6 +539,9 @@ OSystem *GameDetector::createSystem() {
|
||||||
#elif defined(__MORPHOS__)
|
#elif defined(__MORPHOS__)
|
||||||
case GD_MORPHOS:
|
case GD_MORPHOS:
|
||||||
return OSystem_MorphOS_create(_gameId, _gfx_mode, _fullScreen);
|
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)
|
#elif defined(USE_NULL_DRIVER)
|
||||||
case GD_NULL:
|
case GD_NULL:
|
||||||
return OSystem_NULL_create();
|
return OSystem_NULL_create();
|
||||||
|
|
5
gui.cpp
5
gui.cpp
|
@ -21,13 +21,8 @@
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "scumm.h"
|
#include "scumm.h"
|
||||||
#ifndef macintosh
|
|
||||||
#include "sound/mididrv.h"
|
#include "sound/mididrv.h"
|
||||||
#include "sound/imuse.h"
|
#include "sound/imuse.h"
|
||||||
#else
|
|
||||||
#include "mididrv.h"
|
|
||||||
#include "imuse.h"
|
|
||||||
#endif
|
|
||||||
#include "gui.h"
|
#include "gui.h"
|
||||||
#include "guimaps.h"
|
#include "guimaps.h"
|
||||||
|
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
#include <MacHeadersCarbon>
|
#include <MacHeadersCarbon>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define __APPLE__CW
|
#define MACOS_CARBON
|
||||||
|
|
BIN
mac/scummvm.mcp
BIN
mac/scummvm.mcp
Binary file not shown.
12
main.cpp
12
main.cpp
|
@ -25,11 +25,7 @@
|
||||||
#include "mididrv.h"
|
#include "mididrv.h"
|
||||||
#include "gameDetector.h"
|
#include "gameDetector.h"
|
||||||
#include "gui.h"
|
#include "gui.h"
|
||||||
#ifndef macintosh
|
|
||||||
#include "simon/simon.h"
|
#include "simon/simon.h"
|
||||||
#else
|
|
||||||
#include "simon.h"
|
|
||||||
#endif
|
|
||||||
#include "config-file.h"
|
#include "config-file.h"
|
||||||
|
|
||||||
GameDetector detector;
|
GameDetector detector;
|
||||||
|
@ -98,8 +94,13 @@ static void do_memory_test(void) {
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
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)
|
#if defined(MACOS_SDL)
|
||||||
/* support for config file for macos SDL port */
|
// support for config file for macos SDL port
|
||||||
|
|
||||||
char *argitem;
|
char *argitem;
|
||||||
char *argstr;
|
char *argstr;
|
||||||
|
@ -131,6 +132,7 @@ int main(int argc, char *argv[])
|
||||||
fclose(argf);
|
fclose(argf);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
#if defined(UNIX) || defined(UNIX_X11)
|
#if defined(UNIX) || defined(UNIX_X11)
|
||||||
char scummhome[MAXPATHLEN];
|
char scummhome[MAXPATHLEN];
|
||||||
|
|
|
@ -22,13 +22,8 @@
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "scumm.h"
|
#include "scumm.h"
|
||||||
#ifndef macintosh
|
|
||||||
#include "sound/mididrv.h"
|
#include "sound/mididrv.h"
|
||||||
#include "sound/imuse.h"
|
#include "sound/imuse.h"
|
||||||
#else
|
|
||||||
#include "mididrv.h"
|
|
||||||
#include "imuse.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct SaveGameHeader {
|
struct SaveGameHeader {
|
||||||
uint32 type;
|
uint32 type;
|
||||||
|
@ -163,7 +158,7 @@ void Scumm::makeSavegameName(char *out, int slot, bool compatible)
|
||||||
|
|
||||||
#ifndef _WIN32_WCE
|
#ifndef _WIN32_WCE
|
||||||
|
|
||||||
#if !defined(macintosh)
|
#if !defined(MACOS_CARBON)
|
||||||
const char *dir = getenv("SCUMMVM_SAVEPATH");
|
const char *dir = getenv("SCUMMVM_SAVEPATH");
|
||||||
if (dir == NULL)
|
if (dir == NULL)
|
||||||
dir = "";
|
dir = "";
|
||||||
|
|
|
@ -24,13 +24,8 @@
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "scumm.h"
|
#include "scumm.h"
|
||||||
|
|
||||||
#ifndef macintosh
|
|
||||||
#include "sound/mididrv.h"
|
#include "sound/mididrv.h"
|
||||||
#include "sound/imuse.h"
|
#include "sound/imuse.h"
|
||||||
#else
|
|
||||||
#include "mididrv.h"
|
|
||||||
#include "imuse.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void Scumm::setupOpcodes2()
|
void Scumm::setupOpcodes2()
|
||||||
{
|
{
|
||||||
|
@ -2713,7 +2708,6 @@ void Scumm::o6_miscOps()
|
||||||
break;
|
break;
|
||||||
case 13:
|
case 13:
|
||||||
remapActor(derefActorSafe(args[1], "o6_miscOps:14"), args[2], args[3],
|
remapActor(derefActorSafe(args[1], "o6_miscOps:14"), args[2], args[3],
|
||||||
|
|
||||||
args[4], -1);
|
args[4], -1);
|
||||||
break;
|
break;
|
||||||
case 14:
|
case 14:
|
||||||
|
@ -2919,27 +2913,16 @@ void Scumm::o6_kernelFunction()
|
||||||
break;
|
break;
|
||||||
case 211:
|
case 211:
|
||||||
warning("o6_kernelFunction: getInput(%d)", args[1]);
|
warning("o6_kernelFunction: getInput(%d)", args[1]);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
13 = thrust
|
13 = thrust
|
||||||
|
|
||||||
336 = thrust
|
336 = thrust
|
||||||
|
|
||||||
328 = thrust
|
328 = thrust
|
||||||
|
|
||||||
27 = abord
|
27 = abord
|
||||||
|
|
||||||
97 = left
|
97 = left
|
||||||
|
|
||||||
331 = left
|
331 = left
|
||||||
|
|
||||||
115 = right
|
115 = right
|
||||||
|
|
||||||
333 = tight
|
333 = tight
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
push(0);
|
push(0);
|
||||||
break;
|
break;
|
||||||
case 212:
|
case 212:
|
||||||
|
|
4
scumm.h
4
scumm.h
|
@ -21,11 +21,7 @@
|
||||||
|
|
||||||
#include "scummsys.h"
|
#include "scummsys.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#ifndef macintosh
|
|
||||||
#include "sound/mixer.h"
|
#include "sound/mixer.h"
|
||||||
#else
|
|
||||||
#include "mixer.h"
|
|
||||||
#endif
|
|
||||||
#include "config-file.h"
|
#include "config-file.h"
|
||||||
|
|
||||||
#define SCUMMVM_VERSION "0.2.0 devel"
|
#define SCUMMVM_VERSION "0.2.0 devel"
|
||||||
|
|
|
@ -22,13 +22,8 @@
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "scumm.h"
|
#include "scumm.h"
|
||||||
#ifndef macintosh
|
|
||||||
#include "sound/mididrv.h"
|
#include "sound/mididrv.h"
|
||||||
#include "sound/imuse.h"
|
#include "sound/imuse.h"
|
||||||
#else
|
|
||||||
#include "mididrv.h"
|
|
||||||
#include "imuse.h"
|
|
||||||
#endif
|
|
||||||
#include "gui.h"
|
#include "gui.h"
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "gameDetector.h"
|
#include "gameDetector.h"
|
||||||
|
@ -742,7 +737,7 @@ void Scumm::dumpResource(char *tag, int idx, byte *ptr)
|
||||||
else
|
else
|
||||||
size = READ_BE_UINT32_UNALIGNED(ptr + 4);
|
size = READ_BE_UINT32_UNALIGNED(ptr + 4);
|
||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(MACOS_CARBON)
|
||||||
sprintf(buf, ":dumps:%s%d.dmp", tag, idx);
|
sprintf(buf, ":dumps:%s%d.dmp", tag, idx);
|
||||||
#else
|
#else
|
||||||
sprintf(buf, "dumps/%s%d.dmp", tag, idx);
|
sprintf(buf, "dumps/%s%d.dmp", tag, idx);
|
||||||
|
|
|
@ -23,13 +23,8 @@
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "scummsys.h"
|
#include "scummsys.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#ifndef macintosh
|
|
||||||
#include "../sound/mididrv.h"
|
#include "../sound/mididrv.h"
|
||||||
#include "../sound/mixer.h"
|
#include "../sound/mixer.h"
|
||||||
#else
|
|
||||||
#include "mididrv.h"
|
|
||||||
#include "mixer.h"
|
|
||||||
#endif
|
|
||||||
#include "simon.h"
|
#include "simon.h"
|
||||||
|
|
||||||
void MidiPlayer::read_from_file(void *dst, uint size) {
|
void MidiPlayer::read_from_file(void *dst, uint size) {
|
||||||
|
|
|
@ -23,11 +23,7 @@
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "scummsys.h"
|
#include "scummsys.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#ifndef macintosh
|
|
||||||
#include "../sound/mixer.h"
|
#include "../sound/mixer.h"
|
||||||
#else
|
|
||||||
#include "mixer.h"
|
|
||||||
#endif
|
|
||||||
#include "simon.h"
|
#include "simon.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,11 +34,7 @@
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
#ifndef macintosh
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#else
|
|
||||||
#include <stat.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int sdl_mouse_x, sdl_mouse_y;
|
int sdl_mouse_x, sdl_mouse_y;
|
||||||
|
|
||||||
|
|
|
@ -23,11 +23,7 @@
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "scummsys.h"
|
#include "scummsys.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#ifndef macintosh
|
|
||||||
#include "../sound/mixer.h"
|
#include "../sound/mixer.h"
|
||||||
#else
|
|
||||||
#include "mixer.h"
|
|
||||||
#endif
|
|
||||||
#include "simon.h"
|
#include "simon.h"
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
|
@ -22,15 +22,9 @@
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "scumm.h"
|
#include "scumm.h"
|
||||||
#ifndef macintosh
|
|
||||||
#include "sound/mididrv.h"
|
#include "sound/mididrv.h"
|
||||||
#include "sound/imuse.h"
|
#include "sound/imuse.h"
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#else
|
|
||||||
#include "mididrv.h"
|
|
||||||
#include "imuse.h"
|
|
||||||
#include <stat.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _WIN32_WCE
|
#ifdef _WIN32_WCE
|
||||||
extern void *bsearch(const void *, const void *, size_t,
|
extern void *bsearch(const void *, const void *, size_t,
|
||||||
|
|
|
@ -454,12 +454,14 @@ MidiDriver *MidiDriver_SEQ_create() {
|
||||||
// to check for these *cleanly* without a configure script, though..
|
// to check for these *cleanly* without a configure script, though..
|
||||||
|
|
||||||
|
|
||||||
//#include <QuickTime/QuickTimeComponents.h>
|
#if defined(MACOSX)
|
||||||
//#include <QuickTime/QuickTimeMusic.h>
|
// On MacOSX, these are in a frameworks!
|
||||||
|
#include <QuickTime/QuickTimeComponents.h>
|
||||||
#include <QuickTimeComponents.h>
|
#include <QuickTime/QuickTimeMusic.h>
|
||||||
#include <QuickTimeMusic.h>
|
#else
|
||||||
|
#include <QuickTimeComponents.h>
|
||||||
|
#include <QuickTimeMusic.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* QuickTime MIDI driver */
|
/* QuickTime MIDI driver */
|
||||||
|
|
6
stdafx.h
6
stdafx.h
|
@ -2,6 +2,9 @@
|
||||||
* $Id$
|
* $Id$
|
||||||
*
|
*
|
||||||
* $Log$
|
* $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
|
* Revision 1.15 2002/05/05 19:06:51 drigo
|
||||||
* Fixed some things for Macintosh ports
|
* Fixed some things for Macintosh ports
|
||||||
*
|
*
|
||||||
|
@ -132,7 +135,8 @@
|
||||||
#define SCUMMVM_PLATFORM_VERSION "X11 version"
|
#define SCUMMVM_PLATFORM_VERSION "X11 version"
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#ifdef macintosh
|
|
||||||
|
#ifdef MACOS_CARBON
|
||||||
#define SCUMMVM_PLATFORM_VERSION "Macintosh version"
|
#define SCUMMVM_PLATFORM_VERSION "Macintosh version"
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
14
system.h
14
system.h
|
@ -145,12 +145,13 @@ public:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* OSystem_SDL */
|
/* OSystem_SDL */
|
||||||
OSystem *OSystem_SDL_create(int gfx_driver, bool full_screen);
|
extern OSystem *OSystem_SDL_create(int gfx_driver, bool full_screen);
|
||||||
OSystem *OSystem_NULL_create();
|
extern OSystem *OSystem_NULL_create();
|
||||||
OSystem *OSystem_MorphOS_create(int game_id, int gfx_driver, bool full_screen);
|
extern OSystem *OSystem_MorphOS_create(int game_id, int gfx_driver, bool full_screen);
|
||||||
OSystem *OSystem_Dreamcast_create();
|
extern OSystem *OSystem_Dreamcast_create();
|
||||||
OSystem *OSystem_WINCE3_create();
|
extern OSystem *OSystem_WINCE3_create();
|
||||||
OSystem *OSystem_X11_create();
|
extern OSystem *OSystem_X11_create();
|
||||||
|
extern OSystem *OSystem_MAC_create(int gfx_mode, bool full_screen);
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
GFX_NORMAL = 0,
|
GFX_NORMAL = 0,
|
||||||
|
@ -170,5 +171,6 @@ enum {
|
||||||
GD_X,
|
GD_X,
|
||||||
GD_MORPHOS,
|
GD_MORPHOS,
|
||||||
GD_WINCE,
|
GD_WINCE,
|
||||||
|
GD_MAC,
|
||||||
GD_DC
|
GD_DC
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue