aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2002-08-14 00:01:39 +0000
committerMax Horn2002-08-14 00:01:39 +0000
commit16aa478d8bb336987701f2f024b60cb334dc8bb8 (patch)
treed7dca07ad993a61b4f05483fecaa6671a4faea46
parent8d22d4ade0064fc124cfc11776be97c413e02fb6 (diff)
downloadscummvm-rg350-16aa478d8bb336987701f2f024b60cb334dc8bb8.tar.gz
scummvm-rg350-16aa478d8bb336987701f2f024b60cb334dc8bb8.tar.bz2
scummvm-rg350-16aa478d8bb336987701f2f024b60cb334dc8bb8.zip
got rid of init.cpp
svn-id: r4736
-rw-r--r--Makefile.common42
-rw-r--r--init.cpp39
-rw-r--r--morphos/Makefile2
-rw-r--r--scumm.h2
-rw-r--r--scummvm.cpp13
-rw-r--r--scummvm.dsp4
-rw-r--r--wince/PocketSCUMM.vcp192
7 files changed, 36 insertions, 258 deletions
diff --git a/Makefile.common b/Makefile.common
index 183540d78b..94a0db1698 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -8,15 +8,15 @@ INCS = scumm.h scummsys.h stdafx.h
OBJS += util.o newgui.o gui/widget.o gui/dialog.o \
gui/ListWidget.o gui/ScrollBarWidget.o \
- actor.o boxes.o costume.o gfx.o object.o resource.o \
- saveload.o script.o scummvm.o sound.o string.o \
- sys.o verbs.o script_v1.o script_v2.o debug.o gui.o \
- sound/imuse.o sound/fmopl.o sound/mixer.o debugrl.o \
- akos.o vars.o insane.o gameDetector.o init.o \
- v3/resource_v3.o v4/resource_v4.o scaler.o main.o \
- simon/midi.o simon/simon.o simon/simonsys.o simon/simonvga.o \
- simon/simondebug.o simon/simonres.o simon/simonitems.o simon/simonverb.o \
- sound/mididrv.o config-file.o bundle.o timer.o
+ actor.o akos.o boxes.o bundle.o config-file.o costume.o debug.o \
+ debugrl.o gameDetector.o gfx.o gui.o insane.o main.o object.o \
+ resource.o saveload.o scaler.o script.o script_v1.o script_v2.o \
+ scummvm.o sound.o string.o sys.o timer.o vars.o verbs.o \
+ sound/imuse.o sound/fmopl.o sound/mixer.o \
+ v3/resource_v3.o v4/resource_v4.o \
+ simon/midi.o simon/simon.o simon/simonsys.o simon/simonvga.o \
+ simon/simondebug.o simon/simonres.o simon/simonitems.o simon/simonverb.o \
+ sound/mididrv.o
DISTFILES=$(OBJS:.o=.cpp) Makefile scumm.h scummsys.h stdafx.h stdafx.cpp \
debugrl.h whatsnew.txt readme.txt copying.txt \
@@ -33,19 +33,19 @@ clean:
.PHONY: all clean dist
# Default (dumb) compile & dependcy rules
-.cpp.o:
- $(CC) $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o
-$(OBJS): $(INCS)
+#.cpp.o:
+# $(CC) $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o
+#$(OBJS): $(INCS)
# If you use GCC, disable the above and enable this for intelligent
# dependency tracking.
-#DEPDIR := .deps
-#.cpp.o:
-# mkdir -p $(DEPDIR)
-# $(CC) -Wp,-MMD,"$(DEPDIR)/$(*F).d2" $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o
-# echo -n "$(*D)/" > $(DEPDIR)/$(*F).d
-# cat "$(DEPDIR)/$(*F).d2" >> "$(DEPDIR)/$(*F).d"
-# rm -f "$(DEPDIR)/$(*F).d2"
-#
-#-include $(DEPDIR)/*.d
+DEPDIR := .deps
+.cpp.o:
+ mkdir -p $(DEPDIR)
+ $(CC) -Wp,-MMD,"$(DEPDIR)/$(*F).d2" $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o
+ echo -n "$(*D)/" > $(DEPDIR)/$(*F).d
+ cat "$(DEPDIR)/$(*F).d2" >> "$(DEPDIR)/$(*F).d"
+ rm -f "$(DEPDIR)/$(*F).d2"
+
+-include $(DEPDIR)/*.d
diff --git a/init.cpp b/init.cpp
deleted file mode 100644
index d966da06d7..0000000000
--- a/init.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-/* ScummVM - Scumm Interpreter
- * Copyright (C) 2001 Ludvig Strigeus
- * Copyright (C) 2001/2002 The ScummVM project
- *
- * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Header$
- *
- */
-
-#include "stdafx.h"
-#include "scumm.h"
-#include "actor.h"
-#include "newgui.h"
-
-Scumm::Scumm (void) {
- _newgui = new NewGui(this);
- _bundle = new Bundle(this);
- _timer = new Timer(this);
-}
-
-Scumm::~Scumm (void) {
- delete [] _actors;
- delete _newgui;
- delete _bundle;
- delete _timer;
-}
diff --git a/morphos/Makefile b/morphos/Makefile
index 7f92a45ceb..00fd3992d1 100644
--- a/morphos/Makefile
+++ b/morphos/Makefile
@@ -20,7 +20,7 @@ OBJS = actor.o akos.o boxes.o config-file.o costume.o gfx.o object.o resource.o
saveload.o script.o scummvm.o sound.o string.o sys.o verbs.o \
morphos.o morphos_scaler.o morphos_sound.o morphos_start.o morphos_timer.o \
script_v1.o script_v2.o debug.o gui.o imuse.o fmopl.o mixer.o mididrv.o \
- debugrl.o vars.o insane.o gameDetector.o init.o resource_v3.o resource_v4.o \
+ debugrl.o vars.o insane.o gameDetector.o resource_v3.o resource_v4.o \
util.o main.o bundle.o $(GUIOBJS) $(SIMONOBJS)
DISTFILES=$(OBJS:.o=.cpp) Makefile scumm.h scummsys.h stdafx.h stdafx.cpp \
diff --git a/scumm.h b/scumm.h
index 919a46faaf..0caa4dd051 100644
--- a/scumm.h
+++ b/scumm.h
@@ -423,7 +423,7 @@ public:
/* Core class/array definitions */
Gdi gdi;
- Actor *_actors; // Has MAX_ACTORS elements, see init.cpp
+ Actor *_actors; // Has MAX_ACTORS elements
uint16 *_inventory;
byte *_arrays;
diff --git a/scummvm.cpp b/scummvm.cpp
index 99c3f9c2e5..e35bda2b2e 100644
--- a/scummvm.cpp
+++ b/scummvm.cpp
@@ -63,6 +63,19 @@ uint Scumm::getRandomNumberRng(uint min, uint max)
}
+Scumm::Scumm (void) {
+ _newgui = new NewGui(this);
+ _bundle = new Bundle(this);
+ _timer = new Timer(this);
+}
+
+Scumm::~Scumm (void) {
+ delete [] _actors;
+ delete _newgui;
+ delete _bundle;
+ delete _timer;
+}
+
void Scumm::scummInit()
{
int i;
diff --git a/scummvm.dsp b/scummvm.dsp
index f2a372e4bc..6436ec5287 100644
--- a/scummvm.dsp
+++ b/scummvm.dsp
@@ -343,10 +343,6 @@ SOURCE=.\gui.cpp
# End Source File
# Begin Source File
-SOURCE=.\init.cpp
-# End Source File
-# Begin Source File
-
SOURCE=.\insane.cpp
# End Source File
# Begin Source File
diff --git a/wince/PocketSCUMM.vcp b/wince/PocketSCUMM.vcp
index 5b9a2773d3..5809a4d948 100644
--- a/wince/PocketSCUMM.vcp
+++ b/wince/PocketSCUMM.vcp
@@ -5259,198 +5259,6 @@ NODEP_CPP_GUI_C=\
# End Source File
# Begin Source File
-SOURCE=..\init.cpp
-
-!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
-
-DEP_CPP_INIT_=\
- "..\actor.h"\
- "..\akos.h"\
- "..\boxes.h"\
- "..\gfx.h"\
- "..\scumm.h"\
- "..\scummsys.h"\
- "..\smush.h"\
- "..\sound\mixer.h"\
- "..\stdafx.h"\
- "..\system.h"\
- ".\missing\unistd.h"\
- ".\SDLAudio\include\SDL_byteorder.h"\
-
-NODEP_CPP_INIT_=\
- "..\macos.h"\
-
-
-!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
-
-DEP_CPP_INIT_=\
- "..\akos.h"\
- "..\boxes.h"\
- "..\gfx.h"\
- "..\scumm.h"\
- "..\scummsys.h"\
- "..\smush.h"\
- "..\stdafx.h"\
- "..\system.h"\
- ".\missing\unistd.h"\
-
-NODEP_CPP_INIT_=\
- "..\mixer.h"\
-
-
-!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
-
-DEP_CPP_INIT_=\
- "..\akos.h"\
- "..\boxes.h"\
- "..\gfx.h"\
- "..\scumm.h"\
- "..\scummsys.h"\
- "..\smush.h"\
- "..\stdafx.h"\
- "..\system.h"\
- ".\missing\unistd.h"\
-
-NODEP_CPP_INIT_=\
- "..\mixer.h"\
-
-
-!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
-
-DEP_CPP_INIT_=\
- "..\akos.h"\
- "..\boxes.h"\
- "..\gfx.h"\
- "..\scumm.h"\
- "..\scummsys.h"\
- "..\smush.h"\
- "..\stdafx.h"\
- "..\system.h"\
- ".\missing\unistd.h"\
-
-NODEP_CPP_INIT_=\
- "..\mixer.h"\
-
-
-!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
-
-DEP_CPP_INIT_=\
- "..\actor.h"\
- "..\akos.h"\
- "..\boxes.h"\
- "..\gfx.h"\
- "..\scumm.h"\
- "..\scummsys.h"\
- "..\smush.h"\
- "..\sound\mixer.h"\
- "..\stdafx.h"\
- "..\system.h"\
- ".\mad\include\mad.h"\
- ".\missing\unistd.h"\
- ".\SDLAudio\include\SDL_byteorder.h"\
-
-NODEP_CPP_INIT_=\
- "..\macos.h"\
-
-
-!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
-
-DEP_CPP_INIT_=\
- "..\akos.h"\
- "..\boxes.h"\
- "..\gfx.h"\
- "..\scumm.h"\
- "..\scummsys.h"\
- "..\smush.h"\
- "..\stdafx.h"\
- "..\system.h"\
- ".\missing\unistd.h"\
-
-NODEP_CPP_INIT_=\
- "..\mixer.h"\
-
-
-!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
-
-DEP_CPP_INIT_=\
- "..\actor.h"\
- "..\boxes.h"\
- "..\bundle.h"\
- "..\gfx.h"\
- "..\newgui.h"\
- "..\scumm.h"\
- "..\scummsys.h"\
- "..\sound\mixer.h"\
- "..\stdafx.h"\
- "..\system.h"\
- ".\mad\include\mad.h"\
- ".\missing\unistd.h"\
- ".\SDLAudio\include\SDL_byteorder.h"\
-
-NODEP_CPP_INIT_=\
- "..\macos.h"\
-
-
-!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
-
-DEP_CPP_INIT_=\
- "..\actor.h"\
- "..\boxes.h"\
- "..\bundle.h"\
- "..\gfx.h"\
- "..\newgui.h"\
- "..\scumm.h"\
- "..\scummsys.h"\
- "..\sound\mixer.h"\
- "..\stdafx.h"\
- "..\system.h"\
- ".\mad\include\mad.h"\
- ".\missing\unistd.h"\
- ".\SDLAudio\include\SDL_byteorder.h"\
-
-NODEP_CPP_INIT_=\
- "..\macos.h"\
-
-
-!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
-
-DEP_CPP_INIT_=\
- "..\akos.h"\
- "..\boxes.h"\
- "..\gfx.h"\
- "..\scumm.h"\
- "..\scummsys.h"\
- "..\smush.h"\
- "..\stdafx.h"\
- "..\system.h"\
- ".\missing\unistd.h"\
-
-NODEP_CPP_INIT_=\
- "..\mixer.h"\
-
-
-!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
-
-DEP_CPP_INIT_=\
- "..\akos.h"\
- "..\boxes.h"\
- "..\gfx.h"\
- "..\scumm.h"\
- "..\scummsys.h"\
- "..\smush.h"\
- "..\stdafx.h"\
- "..\system.h"\
- ".\missing\unistd.h"\
-
-NODEP_CPP_INIT_=\
- "..\mixer.h"\
-
-
-!ENDIF
-
-# End Source File
-# Begin Source File
-
SOURCE=..\insane.cpp
!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"