diff options
author | Max Horn | 2002-08-21 16:07:07 +0000 |
---|---|---|
committer | Max Horn | 2002-08-21 16:07:07 +0000 |
commit | ce46866403fdcc479cf9d67e4d430409b15dadc3 (patch) | |
tree | 75ebfaa1ed13f549959d76d3ce101c3e66f5451b | |
parent | 662256f25dbe43abf67077a804e225738765f009 (diff) | |
download | scummvm-rg350-ce46866403fdcc479cf9d67e4d430409b15dadc3.tar.gz scummvm-rg350-ce46866403fdcc479cf9d67e4d430409b15dadc3.tar.bz2 scummvm-rg350-ce46866403fdcc479cf9d67e4d430409b15dadc3.zip |
Initial revision
svn-id: r4785
-rw-r--r-- | .cvsignore | 6 | ||||
-rw-r--r-- | .indent.pro | 15 | ||||
-rw-r--r-- | COPYING (renamed from copying.txt) | 0 | ||||
-rw-r--r-- | Makefile | 18 | ||||
-rw-r--r-- | Makefile.common | 67 | ||||
-rw-r--r-- | Makefile.irix | 21 | ||||
-rw-r--r-- | Makefile.mingw | 45 | ||||
-rw-r--r-- | Makefile.qtopia | 20 | ||||
-rw-r--r-- | NEWS (renamed from whatsnew.txt) | 0 | ||||
-rw-r--r-- | README (renamed from readme.txt) | 0 | ||||
-rw-r--r-- | backends/dc/.cvsignore (renamed from dc/.cvsignore) | 0 | ||||
-rw-r--r-- | backends/dc/Makefile (renamed from dc/Makefile) | 0 | ||||
-rw-r--r-- | backends/dc/README (renamed from dc/README) | 0 | ||||
-rw-r--r-- | backends/dc/audio.cpp (renamed from dc/audio.cpp) | 0 | ||||
-rw-r--r-- | backends/dc/dc.h (renamed from dc/dc.h) | 0 | ||||
-rw-r--r-- | backends/dc/dcmain.cpp (renamed from dc/dcmain.cpp) | 0 | ||||
-rw-r--r-- | backends/dc/display.cpp (renamed from dc/display.cpp) | 0 | ||||
-rw-r--r-- | backends/dc/icon.cpp (renamed from dc/icon.cpp) | 0 | ||||
-rw-r--r-- | backends/dc/icon.h (renamed from dc/icon.h) | 0 | ||||
-rw-r--r-- | backends/dc/input.cpp (renamed from dc/input.cpp) | 0 | ||||
-rw-r--r-- | backends/dc/label.cpp (renamed from dc/label.cpp) | 0 | ||||
-rw-r--r-- | backends/dc/label.h (renamed from dc/label.h) | 0 | ||||
-rw-r--r-- | backends/dc/portdefs.h (renamed from dc/portdefs.h) | 0 | ||||
-rw-r--r-- | backends/dc/selector.cpp (renamed from dc/selector.cpp) | 0 | ||||
-rw-r--r-- | backends/dc/vmsave.cpp (renamed from dc/vmsave.cpp) | 0 | ||||
-rw-r--r-- | backends/mac/Carbon.r (renamed from mac/Carbon.r) | 0 | ||||
-rw-r--r-- | backends/mac/CarbonPort-ReadMe.txt (renamed from mac/CarbonPort-ReadMe.txt) | 0 | ||||
-rw-r--r-- | backends/mac/mac.cpp (renamed from mac/mac.cpp) | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | backends/mac/macos.h (renamed from mac/macos.h) | 0 | ||||
-rw-r--r-- | backends/mac/scummvm.icns | bin | 0 -> 38332 bytes | |||
-rw-r--r-- | backends/mac/scummvm.mcp (renamed from mac/scummvm.mcp) | bin | 158716 -> 158716 bytes | |||
-rw-r--r-- | backends/morphos/Makefile (renamed from morphos/Makefile) | 11 | ||||
-rw-r--r-- | backends/morphos/MorphOS.readme (renamed from morphos/MorphOS.readme) | 0 | ||||
-rw-r--r-- | backends/morphos/morphos.cpp (renamed from morphos/morphos.cpp) | 0 | ||||
-rw-r--r-- | backends/morphos/morphos.h (renamed from morphos/morphos.h) | 0 | ||||
-rw-r--r-- | backends/morphos/morphos_scaler.cpp (renamed from morphos/morphos_scaler.cpp) | 0 | ||||
-rw-r--r-- | backends/morphos/morphos_scaler.h (renamed from morphos/morphos_scaler.h) | 0 | ||||
-rw-r--r-- | backends/morphos/morphos_sound.cpp (renamed from morphos/morphos_sound.cpp) | 0 | ||||
-rw-r--r-- | backends/morphos/morphos_start.cpp (renamed from morphos/morphos_start.cpp) | 0 | ||||
-rw-r--r-- | backends/morphos/morphos_timer.cpp (renamed from morphos/morphos_timer.cpp) | 0 | ||||
-rw-r--r-- | backends/morphos/morphos_timer.h (renamed from morphos/morphos_timer.h) | 0 | ||||
-rw-r--r-- | backends/sdl/fb2opengl.h (renamed from fb2opengl.h) | 0 | ||||
-rw-r--r-- | backends/sdl/sdl.cpp (renamed from sdl.cpp) | 0 | ||||
-rw-r--r-- | backends/sdl/sdl_gl.cpp (renamed from sdl_gl.cpp) | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | backends/wince/MenuTitle.bmp (renamed from wince/MenuTitle.bmp) | bin | 11482 -> 11482 bytes | |||
-rw-r--r-- | backends/wince/PocketSCUMM.rc (renamed from wince/PocketSCUMM.rc) | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | backends/wince/PocketSCUMM.vcc (renamed from wince/PocketSCUMM.vcc) | 0 | ||||
-rw-r--r-- | backends/wince/PocketSCUMM.vcp (renamed from wince/PocketSCUMM.vcp) | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | backends/wince/PocketSCUMM.vcw (renamed from wince/PocketSCUMM.vcw) | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | backends/wince/bitmaps.cpp (renamed from wince/bitmaps.cpp) | 0 | ||||
-rw-r--r-- | backends/wince/findgame.cpp (renamed from wince/findgame.cpp) | 0 | ||||
-rw-r--r-- | backends/wince/gapi_keys.cpp (renamed from wince/gapi_keys.cpp) | 0 | ||||
-rw-r--r-- | backends/wince/gapi_keys.h (renamed from gapi_keys.h) | 0 | ||||
-rw-r--r-- | backends/wince/missing/assert.h (renamed from wince/missing/assert.h) | 0 | ||||
-rw-r--r-- | backends/wince/missing/conio.h (renamed from wince/missing/conio.h) | 0 | ||||
-rw-r--r-- | backends/wince/missing/dir.h (renamed from wince/missing/dir.h) | 0 | ||||
-rw-r--r-- | backends/wince/missing/direct.h (renamed from wince/missing/direct.h) | 0 | ||||
-rw-r--r-- | backends/wince/missing/dirent.h (renamed from wince/missing/dirent.h) | 0 | ||||
-rw-r--r-- | backends/wince/missing/errno.h (renamed from wince/missing/errno.h) | 0 | ||||
-rw-r--r-- | backends/wince/missing/fcntl.h (renamed from wince/missing/fcntl.h) | 0 | ||||
-rw-r--r-- | backends/wince/missing/io.h (renamed from wince/missing/io.h) | 0 | ||||
-rw-r--r-- | backends/wince/missing/missing.cpp (renamed from wince/missing/missing.cpp) | 0 | ||||
-rw-r--r-- | backends/wince/missing/signal.h (renamed from wince/missing/signal.h) | 0 | ||||
-rw-r--r-- | backends/wince/missing/sys/stat.h (renamed from wince/missing/sys/stat.h) | 0 | ||||
-rw-r--r-- | backends/wince/missing/sys/time.h (renamed from wince/missing/sys/time.h) | 0 | ||||
-rw-r--r-- | backends/wince/missing/sys/types.h (renamed from wince/missing/sys/types.h) | 0 | ||||
-rw-r--r-- | backends/wince/missing/time.h (renamed from wince/missing/time.h) | 0 | ||||
-rw-r--r-- | backends/wince/missing/unistd.h (renamed from wince/missing/unistd.h) | 0 | ||||
-rw-r--r-- | backends/wince/newres.h (renamed from wince/newres.h) | 0 | ||||
-rw-r--r-- | backends/wince/pocketpc.cpp (renamed from wince/pocketpc.cpp) | 0 | ||||
-rw-r--r-- | backends/wince/pocketscumm.ico (renamed from wince/pocketscumm.ico) | bin | 318 -> 318 bytes | |||
-rw-r--r-- | backends/wince/resource.h (renamed from wince/resource.h) | 0 | ||||
-rw-r--r-- | backends/wince/screen.cpp (renamed from wince/screen.cpp) | 0 | ||||
-rw-r--r-- | backends/wince/screen.h (renamed from wince/screen.h) | 0 | ||||
-rw-r--r-- | backends/x11/x11.cpp (renamed from x11.cpp) | 0 | ||||
-rw-r--r-- | common/config-file.cpp (renamed from config-file.cpp) | 0 | ||||
-rw-r--r-- | common/config-file.h (renamed from config-file.h) | 0 | ||||
-rw-r--r-- | common/gameDetector.cpp (renamed from gameDetector.cpp) | 8 | ||||
-rw-r--r-- | common/gameDetector.h (renamed from gameDetector.h) | 0 | ||||
-rw-r--r-- | common/main.cpp (renamed from main.cpp) | 0 | ||||
-rw-r--r-- | common/scummsys.h (renamed from scummsys.h) | 0 | ||||
-rw-r--r-- | common/stdafx.cpp (renamed from stdafx.cpp) | 0 | ||||
-rw-r--r-- | common/stdafx.h (renamed from stdafx.h) | 3 | ||||
-rw-r--r-- | common/system.h (renamed from system.h) | 0 | ||||
-rw-r--r-- | common/timer.cpp (renamed from timer.cpp) | 0 | ||||
-rw-r--r-- | common/timer.h (renamed from timer.h) | 0 | ||||
-rw-r--r-- | common/util.cpp (renamed from util.cpp) | 0 | ||||
-rw-r--r-- | common/util.h (renamed from util.h) | 0 | ||||
-rw-r--r-- | debian/.cvsignore | 6 | ||||
-rw-r--r-- | debian/README.Debian | 9 | ||||
-rw-r--r-- | debian/changelog.cvs | 8 | ||||
-rw-r--r-- | debian/changelog.debian | 22 | ||||
-rw-r--r-- | debian/changelog.debian_official | 23 | ||||
-rw-r--r-- | debian/control | 15 | ||||
-rw-r--r-- | debian/copyright | 16 | ||||
-rwxr-xr-x | debian/prepare | 20 | ||||
-rwxr-xr-x | debian/rules | 48 | ||||
-rw-r--r-- | debian/scummvm.dirs | 3 | ||||
-rw-r--r-- | debian/scummvm.docs | 2 | ||||
-rw-r--r-- | gui/dialog.cpp | 22 | ||||
-rw-r--r-- | gui/dialog.h | 2 | ||||
-rw-r--r-- | gui/gui.cpp (renamed from gui.cpp) | 2 | ||||
-rw-r--r-- | gui/gui.h (renamed from gui.h) | 0 | ||||
-rw-r--r-- | gui/guimaps.h (renamed from guimaps.h) | 0 | ||||
-rw-r--r-- | gui/newgui.cpp (renamed from newgui.cpp) | 0 | ||||
-rw-r--r-- | gui/newgui.h (renamed from newgui.h) | 0 | ||||
-rw-r--r-- | mac/ScummVM_Mac_Prefix.h | 7 | ||||
-rw-r--r-- | scumm/actor.cpp (renamed from actor.cpp) | 0 | ||||
-rw-r--r-- | scumm/actor.h (renamed from actor.h) | 0 | ||||
-rw-r--r-- | scumm/akos.cpp (renamed from akos.cpp) | 0 | ||||
-rw-r--r-- | scumm/akos.h (renamed from akos.h) | 0 | ||||
-rw-r--r-- | scumm/boxes.cpp (renamed from boxes.cpp) | 0 | ||||
-rw-r--r-- | scumm/boxes.h (renamed from boxes.h) | 0 | ||||
-rw-r--r-- | scumm/bundle.cpp (renamed from bundle.cpp) | 0 | ||||
-rw-r--r-- | scumm/bundle.h (renamed from bundle.h) | 0 | ||||
-rw-r--r-- | scumm/costume.cpp (renamed from costume.cpp) | 0 | ||||
-rw-r--r-- | scumm/costume.h (renamed from costume.h) | 0 | ||||
-rw-r--r-- | scumm/debug.cpp (renamed from debug.cpp) | 0 | ||||
-rw-r--r-- | scumm/debug.h (renamed from debug.h) | 0 | ||||
-rw-r--r-- | scumm/debugrl.cpp (renamed from debugrl.cpp) | 0 | ||||
-rw-r--r-- | scumm/debugrl.h (renamed from debugrl.h) | 0 | ||||
-rw-r--r-- | scumm/engine.cpp (renamed from engine.cpp) | 0 | ||||
-rw-r--r-- | scumm/engine.h (renamed from engine.h) | 0 | ||||
-rw-r--r-- | scumm/gfx.cpp (renamed from gfx.cpp) | 4 | ||||
-rw-r--r-- | scumm/gfx.h (renamed from gfx.h) | 0 | ||||
-rw-r--r-- | scumm/imuse.cpp (renamed from sound/imuse.cpp) | 8 | ||||
-rw-r--r-- | scumm/imuse.h (renamed from sound/imuse.h) | 0 | ||||
-rw-r--r-- | scumm/insane.cpp (renamed from insane.cpp) | 0 | ||||
-rw-r--r-- | scumm/object.cpp (renamed from object.cpp) | 0 | ||||
-rw-r--r-- | scumm/object.h (renamed from object.h) | 0 | ||||
-rw-r--r-- | scumm/resource.cpp (renamed from resource.cpp) | 0 | ||||
-rw-r--r-- | scumm/resource.h (renamed from resource.h) | 0 | ||||
-rw-r--r-- | scumm/resource_v3.cpp (renamed from v3/resource_v3.cpp) | 0 | ||||
-rw-r--r-- | scumm/resource_v4.cpp (renamed from v4/resource_v4.cpp) | 0 | ||||
-rw-r--r-- | scumm/saveload.cpp (renamed from saveload.cpp) | 2 | ||||
-rw-r--r-- | scumm/saveload.h (renamed from saveload.h) | 0 | ||||
-rw-r--r-- | scumm/scaler.cpp (renamed from scaler.cpp) | 0 | ||||
-rw-r--r-- | scumm/scaler.h (renamed from scaler.h) | 0 | ||||
-rw-r--r-- | scumm/script.cpp (renamed from script.cpp) | 0 | ||||
-rw-r--r-- | scumm/script_v1.cpp (renamed from script_v1.cpp) | 0 | ||||
-rw-r--r-- | scumm/script_v2.cpp (renamed from script_v2.cpp) | 2 | ||||
-rw-r--r-- | scumm/scumm.h (renamed from scumm.h) | 0 | ||||
-rw-r--r-- | scumm/scummvm.cpp (renamed from scummvm.cpp) | 6 | ||||
-rw-r--r-- | scumm/smush.h (renamed from smush.h) | 0 | ||||
-rw-r--r-- | scumm/sound.h (renamed from sound.h) | 0 | ||||
-rw-r--r-- | scumm/string.cpp (renamed from string.cpp) | 0 | ||||
-rw-r--r-- | scumm/sys.cpp (renamed from sys.cpp) | 0 | ||||
-rw-r--r-- | scumm/vars.cpp (renamed from vars.cpp) | 0 | ||||
-rw-r--r-- | scumm/verbs.cpp (renamed from verbs.cpp) | 0 | ||||
-rw-r--r-- | simon/debug.cpp (renamed from simon/simondebug.cpp) | 4 | ||||
-rw-r--r-- | simon/intern.h (renamed from simon/simonintern.h) | 0 | ||||
-rw-r--r-- | simon/items.cpp (renamed from simon/simonitems.cpp) | 4 | ||||
-rw-r--r-- | simon/midi.cpp | 8 | ||||
-rw-r--r-- | simon/res.cpp (renamed from simon/simonres.cpp) | 4 | ||||
-rw-r--r-- | simon/simon.cpp | 6 | ||||
-rw-r--r-- | simon/sys.cpp (renamed from simon/simonsys.cpp) | 2 | ||||
-rw-r--r-- | simon/verb.cpp (renamed from simon/simonverb.cpp) | 4 | ||||
-rw-r--r-- | simon/vga.cpp (renamed from simon/simonvga.cpp) | 4 | ||||
-rw-r--r-- | sound/sound.cpp (renamed from sound.cpp) | 6 | ||||
-rw-r--r-- | sound/sound.h | 136 |
160 files changed, 250 insertions, 369 deletions
diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index 605f60dabd..0000000000 --- a/.cvsignore +++ /dev/null @@ -1,6 +0,0 @@ -.deps -.DS_Store -.gdb_history -*.s[0-9][0-9] -*.c[0-9][0-9] -scummvm diff --git a/.indent.pro b/.indent.pro deleted file mode 100644 index afb9cd1c33..0000000000 --- a/.indent.pro +++ /dev/null @@ -1,15 +0,0 @@ --br -bap -nbc -lp -ce -cdw -brs -nbad -nbc -npsl -nip -ts2 -ncs -nbs --npcs -nbap -l105 --Tbool -Tbyte -Tvoid -Tuint32 -Tuint8 -Tuint16 -Tint -Tint8 -Tint16 -Tint32 --TFILE --TOSystem -TScumm -TThreadProc -TSoundProc -TEvent -TProperty --TConfig -Thashconfig -TGameDetector -TSaveLoadEntry -TScummPoint --TGui -TGuiWidget -TNewGui -TWidget -TDialog --TArrayHeader -TMemBlkHeader -TVerbSlot -TObjectData -TImageHeader -TRoomHeader --TCodeHeader -TResHdr -TBompHeader -TBompDrawData -TBlastObject -TLoadedCostume --TActor -TBox -TBoxCoords -TVirtScreen -TPathVertex -TPathNode -TFindObjectInRoom --TMidiChannelAdl -TSoundEngine -TPart -TPlayer -TSong --TSerializer -TMidiDriver -TIMuseInternal -TIMuseDriver -TStreamCallback --TSoundMixer -TPlayingSoundHandle -TPremixProc -TMIDIEVENT -TFM_OPL --TItem -TChild -TChild1 -TChild2 -TTimeEvent -TSubroutine -TSubroutineLine --TFillOrCopyStruct -TTrack -TNoteRec -TMidiEvent @@ -1,15 +1,15 @@ # $Header$ -CC = g++ +CXX = c++ CFLAGS = -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar DEFINES = LDFLAGS := -INCLUDES:= -I./ -I./sound +INCLUDES:= -I. -Icommon -Iscumm -Isound LIBS = -lncurses # Uncomment this to activate the MAD lib for compressed sound files -# DEFINES += -DCOMPRESSED_SOUND_FILE -# LIBS += -lmad +DEFINES += -DCOMPRESSED_SOUND_FILE +LIBS += -lmad # Uncomment this to activate the ALSA lib for midi # DEFINES += -DUSE_ALSA @@ -19,23 +19,23 @@ LIBS = -lncurses # Beware, only define one of them, otherwise the compilation will blow up. # Comment this if you want to disable SDL output -OBJS = sdl.o +OBJS = backends/sdl/sdl.o INCLUDES += `sdl-config --cflags` LIBS += `sdl-config --libs` DEFINES += -DUNIX # Uncomment this (instead of the above) to activate the SDL with OpenGL output -# OBJS = sdl_gl.o +# OBJS = backends/sdl/sdl_gl.o # INCLUDES += `sdl-config --cflags` # LIBS += `sdl-config --libs` -lGL # DEFINES += -DUNIX # Uncomment this in addition to the above if you compile on Mac OS X -# LIBS += -framework QuickTime -framework AudioUnit -# DEFINES += -DMACOSX +LIBS += -framework QuickTime -framework AudioUnit +DEFINES += -DMACOSX # Uncomment this if you rather want X11 output -# OBJS = x11.o +# OBJS = backends/x11/x11.o # DEFINES += -DUNIX -DX11_BACKEND # LDFLAGS := -L/usr/X11R6/lib -L/usr/local/lib # INCLUDES+= -I/usr/X11R6/include diff --git a/Makefile.common b/Makefile.common index 84256ef674..6fe2133ff4 100644 --- a/Makefile.common +++ b/Makefile.common @@ -4,31 +4,44 @@ ZIPFILE := scummvm-`date '+%Y-%m-%d'`.zip -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 akos.o boxes.o bundle.o config-file.o costume.o debug.o \ - debugrl.o engine.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 scummvm.dsp scummvm.dsw stdafx.cpp \ - whatsnew.txt readme.txt copying.txt \ - actor.h akos.h boxes.h bundle.h cmdline.h config-file.h costume.h debug.h \ - debugrl.h engine.h fb2opengl.h gameDetector.h gapi_keys.h gfx.h gui.h guimaps.h \ - newgui.h object.h resource.h saveload.h scaler.h scumm.h scummsys.h smush.h \ - sound.h stdafx.h system.h timer.h util.h sound/fmopl.h +INCS = scumm/scumm.h common/scummsys.h common/stdafx.h + +COMMON_OBJS = common/config-file.o common/gameDetector.o common/main.o \ + common/timer.o common/util.o + +GUI_OBJS = gui/gui.o gui/newgui.o gui/widget.o gui/dialog.o gui/ListWidget.o \ + gui/ScrollBarWidget.o + +SCUMM_OBJS = scumm/actor.o scumm/akos.o scumm/boxes.o scumm/bundle.o \ + scumm/costume.o scumm/debug.o scumm/debugrl.o scumm/engine.o scumm/gfx.o \ + scumm/imuse.o scumm/insane.o scumm/object.o scumm/resource.o \ + scumm/resource_v3.o scumm/resource_v4.o scumm/saveload.o scumm/scaler.o \ + scumm/script.o scumm/script_v1.o scumm/script_v2.o scumm/scummvm.o \ + scumm/string.o scumm/sys.o scumm/vars.o scumm/verbs.o + +SIMON_OBJS = simon/debug.o simon/items.o simon/midi.o simon/res.o simon/simon.o \ + simon/sys.o simon/verb.o simon/vga.o + +SOUND_OBJS = sound/fmopl.o sound/mididrv.o sound/mixer.o sound/sound.o + +OBJS += $(COMMON_OBJS) $(GUI_OBJS) scumm/libscumm.a simon/libsimon.a $(SOUND_OBJS) + +DISTFILES=$(OBJS:.o=.cpp) Makefile scumm.h scummsys.h stdafx.h stdafx.cpp \ + debugrl.h whatsnew.txt readme.txt copying.txt \ + scummvm.dsp scummvm.dsw sound/fmopl.h gui.h sound.h all: scummvm$(EXEEXT) scummvm$(EXEEXT): $(OBJS) - $(CC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) + $(CXX) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) + +scumm/libscumm.a: $(SCUMM_OBJS) + ar cru $@ $+ + ranlib $@ + +simon/libsimon.a: $(SIMON_OBJS) + ar cru $@ $+ + ranlib $@ clean: rm -f $(OBJS) scummvm$(EXEEXT) @@ -37,7 +50,7 @@ clean: # Default (dumb) compile & dependcy rules .cpp.o: - $(CC) $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o + $(CXX) $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o $(OBJS): $(INCS) @@ -45,10 +58,10 @@ $(OBJS): $(INCS) # 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" +# mkdir -p $(*D)/$(DEPDIR) +# $(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d2" $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o +# echo -n "$(*D)/" > $(*D)/$(DEPDIR)/$(*F).d +# cat "$(*D)/$(DEPDIR)/$(*F).d2" >> "$(*D)/$(DEPDIR)/$(*F).d" +# rm -f "$(*D)/$(DEPDIR)/$(*F).d2" # #-include $(DEPDIR)/*.d diff --git a/Makefile.irix b/Makefile.irix deleted file mode 100644 index 1cd508ec04..0000000000 --- a/Makefile.irix +++ /dev/null @@ -1,21 +0,0 @@ -# $Header$ - -CC = CC -CFLAGS = -O2 -Olimit 9000 -mips2 -#CFLAGS = -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar -# Remove -DHAVE_NO_BOOL if your compiler has a builtin bool type -DEFINES = -DUNIX -DHAVE_NO_BOOL -DCOMPRESSED_SOUND_FILE -LDFLAGS := -INCLUDES:= `sdl-config --cflags` -I./ -I./sound -CPPFLAGS= $(DEFINES) $(INCLUDES) - -# Add -lmad for -DCOMPRESSED_SOUND_FILE -LIBS = `sdl-config --libs` -lmad -lm - -OBJS = sdl.o - -include Makefile.common - -dist: - rm -f $(ZIPFILE) - zip -q $(ZIPFILE) $(DISTFILES) diff --git a/Makefile.mingw b/Makefile.mingw deleted file mode 100644 index 5c56fa5d57..0000000000 --- a/Makefile.mingw +++ /dev/null @@ -1,45 +0,0 @@ -# Where is scummvm will be installed -SCUMMVMPATH=C:/scummvm -SRC=. -VPATH=$(SRC) - -### Modify these paths -SDL_CFLAGS=-I$(SRC)/sdl/include -SDL_LIBS=-L$(SRC)/sdl/lib -lSDLmain -lSDL - -# If MAD (MPEG Audio Decoder) header and library isn't installed remove -lmad and -DCOMPRESSED_SOUND_FILE -CC = g++ -CFLAGS = -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar -DEFINES = -DCOMPRESSED_SOUND_FILE -LDFLAGS :=-mwindows -mconsole -INCLUDES:= $(SDL_CFLAGS) -I./ -I./sound -CPPFLAGS= $(DEFINES) $(INCLUDES) -LIBS = -lmingw32 -lwinmm -lmad $(SDL_LIBS) -EXEEXT :=.exe - -# Uncomment this for SDL normal output -OBJS = sdl.o scummvmico.o -# Or uncomment this for SDL with OpenGL output -#OBJS = sdl_gl.o scummvmico.o -#LIBS += -lopengl32 - -include Makefile.common - -scummvmico.o: scummvm.ico - windres scummvm.rc scummvmico.o - - -# Some additional targets -install: scummvm$(EXEEXT) - mkdir -p $(SCUMMVMPATH) - strip scummvm$(EXEEXT) -o $(SCUMMVMPATH)/scummvm$(EXEEXT) - -dist: install - cp copying.txt $(SCUMMVMPATH) - cp readme.txt $(SCUMMVMPATH) - cp whatsnew.txt $(SCUMMVMPATH) - cp SDL/README-SDL.txt $(SCUMMVMPATH) - cp SDL/lib/SDL.dll $(SCUMMVMPATH) - u2d $(SCUMMVMPATH)/*.txt - -.PHONY: install dist diff --git a/Makefile.qtopia b/Makefile.qtopia deleted file mode 100644 index e33cf8451f..0000000000 --- a/Makefile.qtopia +++ /dev/null @@ -1,20 +0,0 @@ -# $Header$ - -CC = arm-linux-g++ -CFLAGS = -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar -DEFINES = -DUNIX -DCOMPRESSED_SOUND_FILE -DBYPASS_COPY_PROT -DQTOPIA -DSCUMM_NEED_ALIGNMENT -LDFLAGS := -INCLUDES:= `/opt/Qtopia/sharp/bin/sdl-config --cflags` -I./ -I./sound -CPPFLAGS= $(DEFINES) $(INCLUDES) - -# Add -lmad for -DCOMPRESSED_SOUND_FILE -LIBS = `/opt/Qtopia/sharp/bin/sdl-config --libs` -lmad -#-lncurses - -OBJS = sdl.o - -include Makefile.common - -dist: - rm -f $(ZIPFILE) - zip -q $(ZIPFILE) $(DISTFILES) diff --git a/dc/.cvsignore b/backends/dc/.cvsignore index ed6bd2b99e..ed6bd2b99e 100644 --- a/dc/.cvsignore +++ b/backends/dc/.cvsignore diff --git a/dc/Makefile b/backends/dc/Makefile index 18ba20d6fc..18ba20d6fc 100644 --- a/dc/Makefile +++ b/backends/dc/Makefile diff --git a/dc/README b/backends/dc/README index d4bf04c5bd..d4bf04c5bd 100644 --- a/dc/README +++ b/backends/dc/README diff --git a/dc/audio.cpp b/backends/dc/audio.cpp index 863c1e97ac..863c1e97ac 100644 --- a/dc/audio.cpp +++ b/backends/dc/audio.cpp diff --git a/dc/dc.h b/backends/dc/dc.h index 4a2b78cfb7..4a2b78cfb7 100644 --- a/dc/dc.h +++ b/backends/dc/dc.h diff --git a/dc/dcmain.cpp b/backends/dc/dcmain.cpp index a64643a004..a64643a004 100644 --- a/dc/dcmain.cpp +++ b/backends/dc/dcmain.cpp diff --git a/dc/display.cpp b/backends/dc/display.cpp index 97c7f2aed5..97c7f2aed5 100644 --- a/dc/display.cpp +++ b/backends/dc/display.cpp diff --git a/dc/icon.cpp b/backends/dc/icon.cpp index 93e70ad2b5..93e70ad2b5 100644 --- a/dc/icon.cpp +++ b/backends/dc/icon.cpp diff --git a/dc/icon.h b/backends/dc/icon.h index b9cf344bab..b9cf344bab 100644 --- a/dc/icon.h +++ b/backends/dc/icon.h diff --git a/dc/input.cpp b/backends/dc/input.cpp index ed7289e463..ed7289e463 100644 --- a/dc/input.cpp +++ b/backends/dc/input.cpp diff --git a/dc/label.cpp b/backends/dc/label.cpp index 8f263eec0a..8f263eec0a 100644 --- a/dc/label.cpp +++ b/backends/dc/label.cpp diff --git a/dc/label.h b/backends/dc/label.h index d4a407307d..d4a407307d 100644 --- a/dc/label.h +++ b/backends/dc/label.h diff --git a/dc/portdefs.h b/backends/dc/portdefs.h index fd7929ffe7..fd7929ffe7 100644 --- a/dc/portdefs.h +++ b/backends/dc/portdefs.h diff --git a/dc/selector.cpp b/backends/dc/selector.cpp index 22cba5bbfc..22cba5bbfc 100644 --- a/dc/selector.cpp +++ b/backends/dc/selector.cpp diff --git a/dc/vmsave.cpp b/backends/dc/vmsave.cpp index 34bf2e40fa..34bf2e40fa 100644 --- a/dc/vmsave.cpp +++ b/backends/dc/vmsave.cpp diff --git a/mac/Carbon.r b/backends/mac/Carbon.r index a296c97b26..a296c97b26 100644 --- a/mac/Carbon.r +++ b/backends/mac/Carbon.r diff --git a/mac/CarbonPort-ReadMe.txt b/backends/mac/CarbonPort-ReadMe.txt index 262b9a50f8..262b9a50f8 100644 --- a/mac/CarbonPort-ReadMe.txt +++ b/backends/mac/CarbonPort-ReadMe.txt diff --git a/mac/mac.cpp b/backends/mac/mac.cpp index f22d72666b..f22d72666b 100644 --- a/mac/mac.cpp +++ b/backends/mac/mac.cpp diff --git a/mac/macos.h b/backends/mac/macos.h index 09c40456e9..09c40456e9 100755..100644 --- a/mac/macos.h +++ b/backends/mac/macos.h diff --git a/backends/mac/scummvm.icns b/backends/mac/scummvm.icns Binary files differnew file mode 100644 index 0000000000..5f5e10d732 --- /dev/null +++ b/backends/mac/scummvm.icns diff --git a/mac/scummvm.mcp b/backends/mac/scummvm.mcp Binary files differindex a0c11c7642..41a29050f4 100644 --- a/mac/scummvm.mcp +++ b/backends/mac/scummvm.mcp diff --git a/morphos/Makefile b/backends/morphos/Makefile index abd5a5c994..00fd3992d1 100644 --- a/morphos/Makefile +++ b/backends/morphos/Makefile @@ -14,15 +14,14 @@ INCS = scumm.h scummsys.h stdafx.h GUIOBJS = widget.o dialog.o newgui.o ListWidget.o ScrollBarWidget.o -SCUMMOBJS = actor.o akos.o boxes.o bundle.o costume.o debug.o debugrl.o gfx.o \ - object.o saveload.o script.o scummvm.o sound.o string.o sys.o vars.o verbs.o \ - script_v1.o script_v2.o gui.o imuse.o insane.o resource.o resource_v3.o resource_v4.o - SIMONOBJS = midi.o simon.o simondebug.o simonitems.o simonres.o simonsys.o simonverb.o simonvga.o -OBJS = config-file.o engine.o gameDetector.o fmopl.o mixer.o mididrv.o util.o main.o \ +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 \ - $(GUIOBJS) $(SCUMMOBJS) $(SIMONOBJS) + 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 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 \ windows.cpp debugrl.h whatsnew.txt readme.txt copying.txt \ diff --git a/morphos/MorphOS.readme b/backends/morphos/MorphOS.readme index 693ae324c4..693ae324c4 100644 --- a/morphos/MorphOS.readme +++ b/backends/morphos/MorphOS.readme diff --git a/morphos/morphos.cpp b/backends/morphos/morphos.cpp index a949cbfd2f..a949cbfd2f 100644 --- a/morphos/morphos.cpp +++ b/backends/morphos/morphos.cpp diff --git a/morphos/morphos.h b/backends/morphos/morphos.h index 75d2c79f7b..75d2c79f7b 100644 --- a/morphos/morphos.h +++ b/backends/morphos/morphos.h diff --git a/morphos/morphos_scaler.cpp b/backends/morphos/morphos_scaler.cpp index dca4383016..dca4383016 100644 --- a/morphos/morphos_scaler.cpp +++ b/backends/morphos/morphos_scaler.cpp diff --git a/morphos/morphos_scaler.h b/backends/morphos/morphos_scaler.h index c23de6cb8a..c23de6cb8a 100644 --- a/morphos/morphos_scaler.h +++ b/backends/morphos/morphos_scaler.h diff --git a/morphos/morphos_sound.cpp b/backends/morphos/morphos_sound.cpp index 0585b8708b..0585b8708b 100644 --- a/morphos/morphos_sound.cpp +++ b/backends/morphos/morphos_sound.cpp diff --git a/morphos/morphos_start.cpp b/backends/morphos/morphos_start.cpp index d3305cbe14..d3305cbe14 100644 --- a/morphos/morphos_start.cpp +++ b/backends/morphos/morphos_start.cpp diff --git a/morphos/morphos_timer.cpp b/backends/morphos/morphos_timer.cpp index d106b9a1a9..d106b9a1a9 100644 --- a/morphos/morphos_timer.cpp +++ b/backends/morphos/morphos_timer.cpp diff --git a/morphos/morphos_timer.h b/backends/morphos/morphos_timer.h index 1593b29a5c..1593b29a5c 100644 --- a/morphos/morphos_timer.h +++ b/backends/morphos/morphos_timer.h diff --git a/fb2opengl.h b/backends/sdl/fb2opengl.h index 39ab98ddc5..39ab98ddc5 100644 --- a/fb2opengl.h +++ b/backends/sdl/fb2opengl.h diff --git a/sdl.cpp b/backends/sdl/sdl.cpp index 204d1323dd..204d1323dd 100644 --- a/sdl.cpp +++ b/backends/sdl/sdl.cpp diff --git a/sdl_gl.cpp b/backends/sdl/sdl_gl.cpp index adec2a1f6b..adec2a1f6b 100644 --- a/sdl_gl.cpp +++ b/backends/sdl/sdl_gl.cpp diff --git a/wince/MenuTitle.bmp b/backends/wince/MenuTitle.bmp Binary files differindex bcd8c68d14..34faf3fbb2 100755..100644 --- a/wince/MenuTitle.bmp +++ b/backends/wince/MenuTitle.bmp diff --git a/wince/PocketSCUMM.rc b/backends/wince/PocketSCUMM.rc index 15fc9433ba..15fc9433ba 100644 --- a/wince/PocketSCUMM.rc +++ b/backends/wince/PocketSCUMM.rc diff --git a/wince/PocketSCUMM.vcc b/backends/wince/PocketSCUMM.vcc index 9a25751416..9a25751416 100755..100644 --- a/wince/PocketSCUMM.vcc +++ b/backends/wince/PocketSCUMM.vcc diff --git a/wince/PocketSCUMM.vcp b/backends/wince/PocketSCUMM.vcp index 5809a4d948..5809a4d948 100644 --- a/wince/PocketSCUMM.vcp +++ b/backends/wince/PocketSCUMM.vcp diff --git a/wince/PocketSCUMM.vcw b/backends/wince/PocketSCUMM.vcw index 9961cf0d39..9961cf0d39 100755..100644 --- a/wince/PocketSCUMM.vcw +++ b/backends/wince/PocketSCUMM.vcw diff --git a/wince/bitmaps.cpp b/backends/wince/bitmaps.cpp index 3b23330fde..3b23330fde 100755..100644 --- a/wince/bitmaps.cpp +++ b/backends/wince/bitmaps.cpp diff --git a/wince/findgame.cpp b/backends/wince/findgame.cpp index 3157397d54..3157397d54 100644 --- a/wince/findgame.cpp +++ b/backends/wince/findgame.cpp diff --git a/wince/gapi_keys.cpp b/backends/wince/gapi_keys.cpp index a4d2677573..a4d2677573 100644 --- a/wince/gapi_keys.cpp +++ b/backends/wince/gapi_keys.cpp diff --git a/gapi_keys.h b/backends/wince/gapi_keys.h index 5eee52e518..5eee52e518 100644 --- a/gapi_keys.h +++ b/backends/wince/gapi_keys.h diff --git a/wince/missing/assert.h b/backends/wince/missing/assert.h index ada1a466e6..ada1a466e6 100644 --- a/wince/missing/assert.h +++ b/backends/wince/missing/assert.h diff --git a/wince/missing/conio.h b/backends/wince/missing/conio.h index 0cb5c297ea..0cb5c297ea 100644 --- a/wince/missing/conio.h +++ b/backends/wince/missing/conio.h diff --git a/wince/missing/dir.h b/backends/wince/missing/dir.h index b9497bc7f9..b9497bc7f9 100644 --- a/wince/missing/dir.h +++ b/backends/wince/missing/dir.h diff --git a/wince/missing/direct.h b/backends/wince/missing/direct.h index 7ee9f5e5ba..7ee9f5e5ba 100644 --- a/wince/missing/direct.h +++ b/backends/wince/missing/direct.h diff --git a/wince/missing/dirent.h b/backends/wince/missing/dirent.h index 82dd0b2ee7..82dd0b2ee7 100644 --- a/wince/missing/dirent.h +++ b/backends/wince/missing/dirent.h diff --git a/wince/missing/errno.h b/backends/wince/missing/errno.h index 7ee9f5e5ba..7ee9f5e5ba 100644 --- a/wince/missing/errno.h +++ b/backends/wince/missing/errno.h diff --git a/wince/missing/fcntl.h b/backends/wince/missing/fcntl.h index 7ee9f5e5ba..7ee9f5e5ba 100644 --- a/wince/missing/fcntl.h +++ b/backends/wince/missing/fcntl.h diff --git a/wince/missing/io.h b/backends/wince/missing/io.h index a7b74c71b7..a7b74c71b7 100644 --- a/wince/missing/io.h +++ b/backends/wince/missing/io.h diff --git a/wince/missing/missing.cpp b/backends/wince/missing/missing.cpp index 237014dfb2..237014dfb2 100644 --- a/wince/missing/missing.cpp +++ b/backends/wince/missing/missing.cpp diff --git a/wince/missing/signal.h b/backends/wince/missing/signal.h index 128d6bf1db..128d6bf1db 100644 --- a/wince/missing/signal.h +++ b/backends/wince/missing/signal.h diff --git a/wince/missing/sys/stat.h b/backends/wince/missing/sys/stat.h index d9eef1318d..d9eef1318d 100644 --- a/wince/missing/sys/stat.h +++ b/backends/wince/missing/sys/stat.h diff --git a/wince/missing/sys/time.h b/backends/wince/missing/sys/time.h index ded29bb009..ded29bb009 100644 --- a/wince/missing/sys/time.h +++ b/backends/wince/missing/sys/time.h diff --git a/wince/missing/sys/types.h b/backends/wince/missing/sys/types.h index b6c05e3958..b6c05e3958 100644 --- a/wince/missing/sys/types.h +++ b/backends/wince/missing/sys/types.h diff --git a/wince/missing/time.h b/backends/wince/missing/time.h index 40c2894dca..40c2894dca 100644 --- a/wince/missing/time.h +++ b/backends/wince/missing/time.h diff --git a/wince/missing/unistd.h b/backends/wince/missing/unistd.h index 7ee9f5e5ba..7ee9f5e5ba 100644 --- a/wince/missing/unistd.h +++ b/backends/wince/missing/unistd.h diff --git a/wince/newres.h b/backends/wince/newres.h index 57f429fa45..57f429fa45 100644 --- a/wince/newres.h +++ b/backends/wince/newres.h diff --git a/wince/pocketpc.cpp b/backends/wince/pocketpc.cpp index 0162d14e28..0162d14e28 100644 --- a/wince/pocketpc.cpp +++ b/backends/wince/pocketpc.cpp diff --git a/wince/pocketscumm.ico b/backends/wince/pocketscumm.ico Binary files differindex 1bc0dae683..1bc0dae683 100644 --- a/wince/pocketscumm.ico +++ b/backends/wince/pocketscumm.ico diff --git a/wince/resource.h b/backends/wince/resource.h index d0099cbc86..d0099cbc86 100644 --- a/wince/resource.h +++ b/backends/wince/resource.h diff --git a/wince/screen.cpp b/backends/wince/screen.cpp index 7dac8759ba..7dac8759ba 100644 --- a/wince/screen.cpp +++ b/backends/wince/screen.cpp diff --git a/wince/screen.h b/backends/wince/screen.h index c7eb2b3af5..c7eb2b3af5 100644 --- a/wince/screen.h +++ b/backends/wince/screen.h diff --git a/x11.cpp b/backends/x11/x11.cpp index 2ebbe96193..2ebbe96193 100644 --- a/x11.cpp +++ b/backends/x11/x11.cpp diff --git a/config-file.cpp b/common/config-file.cpp index b56630f5c5..b56630f5c5 100644 --- a/config-file.cpp +++ b/common/config-file.cpp diff --git a/config-file.h b/common/config-file.h index eee4cfde59..eee4cfde59 100644 --- a/config-file.h +++ b/common/config-file.h diff --git a/gameDetector.cpp b/common/gameDetector.cpp index 9152c4b9c5..421dfd782e 100644 --- a/gameDetector.cpp +++ b/common/gameDetector.cpp @@ -22,11 +22,11 @@ #include "stdafx.h" -#include "scumm.h" +#include "scumm/scumm.h" #include "sound/mididrv.h" -#include "sound/imuse.h" -#include "gameDetector.h" -#include "config-file.h" +#include "scumm/imuse.h" +#include "common/gameDetector.h" +#include "common/config-file.h" #define CHECK_OPTION() if ((current_option != NULL) || (*s != '\0')) goto ShowHelpAndExit diff --git a/gameDetector.h b/common/gameDetector.h index 4cbfa3453f..4cbfa3453f 100644 --- a/gameDetector.h +++ b/common/gameDetector.h diff --git a/main.cpp b/common/main.cpp index 43fd2e4563..43fd2e4563 100644 --- a/main.cpp +++ b/common/main.cpp diff --git a/scummsys.h b/common/scummsys.h index 74fcfbcb84..74fcfbcb84 100644 --- a/scummsys.h +++ b/common/scummsys.h diff --git a/stdafx.cpp b/common/stdafx.cpp index fd4f341c7b..fd4f341c7b 100644 --- a/stdafx.cpp +++ b/common/stdafx.cpp diff --git a/stdafx.h b/common/stdafx.h index a3daba0b54..de4f0156ce 100644 --- a/stdafx.h +++ b/common/stdafx.h @@ -2,6 +2,9 @@ * $Id$ * * $Log$ + * Revision 1.1 2002/08/21 16:07:23 fingolfin + * Initial revision + * * Revision 1.18 2002/07/08 13:33:10 fingolfin * two more small QNX fixes * diff --git a/system.h b/common/system.h index b8255eff48..b8255eff48 100644 --- a/system.h +++ b/common/system.h diff --git a/timer.cpp b/common/timer.cpp index 2a3fc74024..2a3fc74024 100644 --- a/timer.cpp +++ b/common/timer.cpp diff --git a/timer.h b/common/timer.h index a4f4c7080d..a4f4c7080d 100644 --- a/timer.h +++ b/common/timer.h diff --git a/util.cpp b/common/util.cpp index 4a5d50e369..4a5d50e369 100644 --- a/util.cpp +++ b/common/util.cpp diff --git a/util.h b/common/util.h index 0f74ede00f..0f74ede00f 100644 --- a/util.h +++ b/common/util.h diff --git a/debian/.cvsignore b/debian/.cvsignore deleted file mode 100644 index 2ac039bcbd..0000000000 --- a/debian/.cvsignore +++ /dev/null @@ -1,6 +0,0 @@ -changelog -files -scummvm -scummvm.postinst.debhelper -scummvm.prerm.debhelper -scummvm.substvars diff --git a/debian/README.Debian b/debian/README.Debian deleted file mode 100644 index 5394ccae26..0000000000 --- a/debian/README.Debian +++ /dev/null @@ -1,9 +0,0 @@ -scummvm for Debian ------------------- - - There is no documentation for the configuration file. For now you can use: - scummvm -w -p[path] [options] game - it will write a config file in ~/.scummvmrc and from then on you can just - run 'scummvm game' and it will remember your options - - -- Bastien Nocera <hadess@hadess.net>, Friday 10 May 2002 diff --git a/debian/changelog.cvs b/debian/changelog.cvs deleted file mode 100644 index 7cdd91fada..0000000000 --- a/debian/changelog.cvs +++ /dev/null @@ -1,8 +0,0 @@ -scummvm (@VERSION@-1) unstable; urgency=low - - * This is a CVS snapshot, don't file bugs on the Debian BTS if you use - this package. Instead use the Sourceforge bug tracker: - http://sourceforge.net/tracker/?group_id=37116 - - -- Bastien Nocera <hadess@hadess.net> Fri, 5 Apr 2002 16:37:09 +0100 - diff --git a/debian/changelog.debian b/debian/changelog.debian deleted file mode 100644 index e46253fe48..0000000000 --- a/debian/changelog.debian +++ /dev/null @@ -1,22 +0,0 @@ -scummvm (0.2.0) unstable; urgency=low - - * Release of ScummVM 0.2.0 - - -- James Brown <ender@enderboi.com> Tue, 14 May 2002 18:16:02 +0800 - -scummvm (0.1.0b-2) unstable; urgency=low - - * Moved the scummvm main bin under /usr/lib, the wrapper script under - /usr/games - * Fixed bug in the script that made it not work if the path was relative - - -- Bastien Nocera <hadess@hadess.net> Wed, 10 Apr 2002 19:27:05 +0100 - -scummvm (0.1.0b-1) unstable; urgency=low - - * Initial Release. - * Packaged made under the influence of beer at GUAD3C in Sevilla ! Arriba ! - Ole ! - - -- Bastien Nocera <hadess@hadess.net> Fri, 5 Apr 2002 16:37:09 +0100 - diff --git a/debian/changelog.debian_official b/debian/changelog.debian_official deleted file mode 100644 index 55fc446a38..0000000000 --- a/debian/changelog.debian_official +++ /dev/null @@ -1,23 +0,0 @@ -scummvm (0.2.0) unstable; urgency=low - - * New upstream version (Closes: #143281) - * Killed the wrapper script, see upstream changelog - - -- Bastien Nocera <hadess@hadess.net> Wed, 15 May 2002 03:27:11 +0100 - -scummvm (0.1.0b-2) unstable; urgency=low - - * Moved the scummvm main bin under /usr/lib, the wrapper script under - /usr/games - * Fixed bug in the script that made it not work if the path was relative - - -- Bastien Nocera <hadess@hadess.net> Wed, 10 Apr 2002 19:27:05 +0100 - -scummvm (0.1.0b-1) unstable; urgency=low - - * Initial Release. - * Packaged made under the influence of beer at GUAD3C in Sevilla ! Arriba ! - Ole ! - - -- Bastien Nocera <hadess@hadess.net> Fri, 5 Apr 2002 16:37:09 +0100 - diff --git a/debian/control b/debian/control deleted file mode 100644 index f2ffa3a003..0000000000 --- a/debian/control +++ /dev/null @@ -1,15 +0,0 @@ -Source: scummvm -Section: contrib/games -Priority: optional -Maintainer: Bastien Nocera <hadess@hadess.net> -Build-Depends: debhelper (>> 3.0.0), libsdl1.2-dev, libreadline4-dev, libncurses5-dev -Standards-Version: 3.5.2 - -Package: scummvm -Architecture: any -Depends: ${shlibs:Depends} -Description: Engine to run some LucasArts adventure games - The "Script Creation Utility for Maniac Mansion Virtual Machine" (scummvm for - short) is an engine used to run a lot of LucasArts adventure games. - . - You will also need the data files from the game to be able to play it. diff --git a/debian/copyright b/debian/copyright deleted file mode 100644 index ef03344742..0000000000 --- a/debian/copyright +++ /dev/null @@ -1,16 +0,0 @@ -This package was debianized by Bastien Nocera <hadess@hadess.net> on -Fri, 5 Apr 2002 16:37:09 +0100. - -It was downloaded from http://prdownloads.sourceforge.net/scummvm/ - -Upstream Author(s): ScummVM team <scummvm-devel@lists.sourceforge.net> - -Copyright: - -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, or (at your option) any -later version. - -On Debian GNU/Linux systems, the complete text of the GNU General -Public License can be found in `/usr/share/common-licenses/GPL'. diff --git a/debian/prepare b/debian/prepare deleted file mode 100755 index 0698be1184..0000000000 --- a/debian/prepare +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -if [ ! -e debian/rules ] ; then - echo "Run from the top-level source directory as debian/prepare" - exit 1 -fi - -if [ -d CVS/ ] && [ $1 != "--nocvs" ]; then - TODATE=`date +%Y%m%d` - NEXT_VERSION=`grep SCUMMVM_VERSION scumm.h | sed 's,\#define\ SCUMMVM_VERSION\ \",,gi' | sed 's,\ devel\",,gi'` - cat debian/changelog.cvs | sed s/@VERSION@/$NEXT_VERSION.cvs$TODATE/g \ - > debian/changelog.tmp && mv debian/changelog.tmp debian/changelog - exit 0 -else - if [ x$USER = xhadess ]; then - cp debian/changelog.debian_official debian/changelog - else - cp debian/changelog.debian debian/changelog - fi -fi diff --git a/debian/rules b/debian/rules deleted file mode 100755 index b05473cabc..0000000000 --- a/debian/rules +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/make -f - -export DH_COMPAT=3 - -ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) - CFLAGS += -g -endif -ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) - INSTALL_PROGRAM += -s -endif - -build: - dh_testdir - $(MAKE) - -clean: - dh_testdir - dh_testroot - -$(MAKE) clean - dh_clean - -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - install -m0777 scummvm $(CURDIR)/debian/scummvm/usr/games/scummvm - install -m0644 scummvm.6 \ - $(CURDIR)/debian/scummvm/usr/share/man/man6 - -binary-arch: build install - dh_testdir - dh_testroot - dh_installdocs - dh_installchangelogs - dh_installmanpages scummvm.6 - dh_link - dh_strip - dh_compress - dh_fixperms - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-arch -.PHONY: build clean binary-arch binary install diff --git a/debian/scummvm.dirs b/debian/scummvm.dirs deleted file mode 100644 index 818b207667..0000000000 --- a/debian/scummvm.dirs +++ /dev/null @@ -1,3 +0,0 @@ -usr/games -usr/lib/scummvm -usr/share/man/man6 diff --git a/debian/scummvm.docs b/debian/scummvm.docs deleted file mode 100644 index 6e88c596f4..0000000000 --- a/debian/scummvm.docs +++ /dev/null @@ -1,2 +0,0 @@ -readme.txt -whatsnew.txt diff --git a/gui/dialog.cpp b/gui/dialog.cpp index ecc444b71d..71b55f8c80 100644 --- a/gui/dialog.cpp +++ b/gui/dialog.cpp @@ -28,7 +28,7 @@ #include "ListWidget.h" #include "config-file.h" #include "sound/mididrv.h" -#include "sound/imuse.h" +#include "scumm/imuse.h" /* * TODO list @@ -407,11 +407,29 @@ AboutDialog::AboutDialog(NewGui *gui) } PauseDialog::PauseDialog(NewGui *gui) - : Dialog (gui, 50, 80, 220, 16) + : Dialog (gui, 60, 20, 100, 100) { addResText(4, 4, 220, 16, 10); } +void PauseDialog::draw() +{ + if (_screenBuf) { + _gui->blitFrom(_screenBuf, _x, _y, _w, _h); + } else { + _gui->fillRect(_x, _y, _w, _h, _gui->_bgcolor); + _gui->box(_x, _y, _w, _h); + } + _gui->addDirtyRect(_x, _y, _w, _h); + + _gui->frameRect(10 + _x, 15 + _y, 100, 100, _gui->_color); + for (int y = 0; y < 16; ++y) + for (int x = 0; x < 16; ++x) + _gui->fillRect(10 + _x + x*5, 15 + _y + y*5, 5, 5, y*16 + x); + + +} + SoundDialog::SoundDialog(NewGui *gui) : Dialog (gui, 30, 20, 260, 110) { diff --git a/gui/dialog.h b/gui/dialog.h index 0e9b46222a..55fd464a42 100644 --- a/gui/dialog.h +++ b/gui/dialog.h @@ -116,6 +116,8 @@ class PauseDialog : public Dialog { public: PauseDialog(NewGui *gui); + virtual void draw(); + virtual void handleMouseDown(int x, int y, int button, int clickCount) { close(); } virtual void handleKeyDown(char key, int modifiers) @@ -22,7 +22,7 @@ #include "stdafx.h" #include "scumm.h" #include "sound/mididrv.h" -#include "sound/imuse.h" +#include "scumm/imuse.h" #include "gui.h" #include "guimaps.h" #include "config-file.h" diff --git a/guimaps.h b/gui/guimaps.h index 181dbb6bc9..181dbb6bc9 100644 --- a/guimaps.h +++ b/gui/guimaps.h diff --git a/newgui.cpp b/gui/newgui.cpp index 8b4cca035a..8b4cca035a 100644 --- a/newgui.cpp +++ b/gui/newgui.cpp diff --git a/newgui.h b/gui/newgui.h index f78f31ee2d..f78f31ee2d 100644 --- a/newgui.h +++ b/gui/newgui.h diff --git a/mac/ScummVM_Mac_Prefix.h b/mac/ScummVM_Mac_Prefix.h deleted file mode 100644 index ef3f2e6a4b..0000000000 --- a/mac/ScummVM_Mac_Prefix.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifdef __cplusplus - #include <MacHeadersCarbon++> -#else - #include <MacHeadersCarbon> -#endif - -#define MACOS_CARBON diff --git a/actor.cpp b/scumm/actor.cpp index 697a1cdadf..697a1cdadf 100644 --- a/actor.cpp +++ b/scumm/actor.cpp diff --git a/actor.h b/scumm/actor.h index d0b3ba8d35..d0b3ba8d35 100644 --- a/actor.h +++ b/scumm/actor.h diff --git a/akos.cpp b/scumm/akos.cpp index 78eabfeb14..78eabfeb14 100644 --- a/akos.cpp +++ b/scumm/akos.cpp diff --git a/boxes.cpp b/scumm/boxes.cpp index f8d68dca98..f8d68dca98 100644 --- a/boxes.cpp +++ b/scumm/boxes.cpp diff --git a/boxes.h b/scumm/boxes.h index cc04d2398d..cc04d2398d 100644 --- a/boxes.h +++ b/scumm/boxes.h diff --git a/bundle.cpp b/scumm/bundle.cpp index 14486838b5..14486838b5 100644 --- a/bundle.cpp +++ b/scumm/bundle.cpp diff --git a/bundle.h b/scumm/bundle.h index c95cc853cd..c95cc853cd 100644 --- a/bundle.h +++ b/scumm/bundle.h diff --git a/costume.cpp b/scumm/costume.cpp index 1996613929..1996613929 100644 --- a/costume.cpp +++ b/scumm/costume.cpp diff --git a/costume.h b/scumm/costume.h index fa7264f1c0..fa7264f1c0 100644 --- a/costume.h +++ b/scumm/costume.h diff --git a/debug.cpp b/scumm/debug.cpp index 6957f13bf4..6957f13bf4 100644 --- a/debug.cpp +++ b/scumm/debug.cpp diff --git a/debug.h b/scumm/debug.h index 4a5f8f9b4c..4a5f8f9b4c 100644 --- a/debug.h +++ b/scumm/debug.h diff --git a/debugrl.cpp b/scumm/debugrl.cpp index 8c9366a2f4..8c9366a2f4 100644 --- a/debugrl.cpp +++ b/scumm/debugrl.cpp diff --git a/debugrl.h b/scumm/debugrl.h index c309ec96d8..c309ec96d8 100644 --- a/debugrl.h +++ b/scumm/debugrl.h diff --git a/engine.cpp b/scumm/engine.cpp index bd416f5f70..bd416f5f70 100644 --- a/engine.cpp +++ b/scumm/engine.cpp diff --git a/engine.h b/scumm/engine.h index 6241d70a7f..6241d70a7f 100644 --- a/engine.h +++ b/scumm/engine.h diff --git a/gfx.cpp b/scumm/gfx.cpp index e16b7662b5..5b4e43f1cf 100644 --- a/gfx.cpp +++ b/scumm/gfx.cpp @@ -22,8 +22,8 @@ #include "stdafx.h" #include "scumm.h" #include "actor.h" -#include "gui.h" -#include "newgui.h" +#include "gui/gui.h" +#include "gui/newgui.h" #include "resource.h" void Scumm::getGraphicsPerformance() diff --git a/sound/imuse.cpp b/scumm/imuse.cpp index a0df85aa70..93f2f99597 100644 --- a/sound/imuse.cpp +++ b/scumm/imuse.cpp @@ -316,7 +316,7 @@ public: class IMuseInternal { friend struct Player; private: - IMuseDriver * _driver; + IMuseDriver * _driver; byte **_base_sounds; @@ -325,8 +325,7 @@ private: private: - - bool _paused; + bool _paused; bool _active_volume_faders; bool _initialized; byte _volume_fader_counter; @@ -1930,9 +1929,6 @@ byte *Player::parse_midi(byte *s) case 93: /* chorus */ part->set_chorus(value); break; - case 123: /* unhold pedal */ - part->set_pedal(false); - break; default: warning("parse_midi: invalid control %d", control); } diff --git a/sound/imuse.h b/scumm/imuse.h index f265f52492..f265f52492 100644 --- a/sound/imuse.h +++ b/scumm/imuse.h diff --git a/insane.cpp b/scumm/insane.cpp index ef9dd779eb..ef9dd779eb 100644 --- a/insane.cpp +++ b/scumm/insane.cpp diff --git a/object.cpp b/scumm/object.cpp index 319328c0ee..319328c0ee 100644 --- a/object.cpp +++ b/scumm/object.cpp diff --git a/object.h b/scumm/object.h index 39787ca0a3..39787ca0a3 100644 --- a/object.h +++ b/scumm/object.h diff --git a/resource.cpp b/scumm/resource.cpp index 89e825481f..89e825481f 100644 --- a/resource.cpp +++ b/scumm/resource.cpp diff --git a/resource.h b/scumm/resource.h index 0628189cb2..0628189cb2 100644 --- a/resource.h +++ b/scumm/resource.h diff --git a/v3/resource_v3.cpp b/scumm/resource_v3.cpp index c3af1c9ef2..c3af1c9ef2 100644 --- a/v3/resource_v3.cpp +++ b/scumm/resource_v3.cpp diff --git a/v4/resource_v4.cpp b/scumm/resource_v4.cpp index 64ba6c2255..64ba6c2255 100644 --- a/v4/resource_v4.cpp +++ b/scumm/resource_v4.cpp diff --git a/saveload.cpp b/scumm/saveload.cpp index 16200bee9a..0f3011721b 100644 --- a/saveload.cpp +++ b/scumm/saveload.cpp @@ -23,7 +23,7 @@ #include "stdafx.h" #include "scumm.h" #include "sound/mididrv.h" -#include "sound/imuse.h" +#include "scumm/imuse.h" #include "actor.h" #include "config-file.h" #include "resource.h" diff --git a/saveload.h b/scumm/saveload.h index 8b715de3f6..8b715de3f6 100644 --- a/saveload.h +++ b/scumm/saveload.h diff --git a/scaler.cpp b/scumm/scaler.cpp index 3f6b3b9f09..3f6b3b9f09 100644 --- a/scaler.cpp +++ b/scumm/scaler.cpp diff --git a/scaler.h b/scumm/scaler.h index f3675ccdce..f3675ccdce 100644 --- a/scaler.h +++ b/scumm/scaler.h diff --git a/script.cpp b/scumm/script.cpp index f46bd4bb24..f46bd4bb24 100644 --- a/script.cpp +++ b/scumm/script.cpp diff --git a/script_v1.cpp b/scumm/script_v1.cpp index 333b35120c..333b35120c 100644 --- a/script_v1.cpp +++ b/scumm/script_v1.cpp diff --git a/script_v2.cpp b/scumm/script_v2.cpp index e402495943..5f85f746c2 100644 --- a/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -27,7 +27,7 @@ #include "smush.h" #include "sound/mididrv.h" -#include "sound/imuse.h" +#include "scumm/imuse.h" void Scumm::setupOpcodes2() { diff --git a/scumm.h b/scumm/scumm.h index 930d25e5d5..930d25e5d5 100644 --- a/scumm.h +++ b/scumm/scumm.h diff --git a/scummvm.cpp b/scumm/scummvm.cpp index 2471d268aa..845a8fb4d3 100644 --- a/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -24,12 +24,12 @@ #include "scumm.h" #include "sound/mixer.h" #include "sound/mididrv.h" -#include "sound/imuse.h" +#include "scumm/imuse.h" #include "actor.h" #include "debug.h" #include "gameDetector.h" -#include "gui.h" -#include "newgui.h" +#include "gui/gui.h" +#include "gui/newgui.h" #include "object.h" #include "resource.h" #include "string.h" diff --git a/smush.h b/scumm/smush.h index 1389a51b14..1389a51b14 100644 --- a/smush.h +++ b/scumm/smush.h diff --git a/sound.h b/scumm/sound.h index 4d2a554d6c..4d2a554d6c 100644 --- a/sound.h +++ b/scumm/sound.h diff --git a/string.cpp b/scumm/string.cpp index 00f1cdd04d..00f1cdd04d 100644 --- a/string.cpp +++ b/scumm/string.cpp diff --git a/sys.cpp b/scumm/sys.cpp index ce797ffd26..ce797ffd26 100644 --- a/sys.cpp +++ b/scumm/sys.cpp diff --git a/vars.cpp b/scumm/vars.cpp index 18c6076e83..18c6076e83 100644 --- a/vars.cpp +++ b/scumm/vars.cpp diff --git a/verbs.cpp b/scumm/verbs.cpp index 131bde0312..131bde0312 100644 --- a/verbs.cpp +++ b/scumm/verbs.cpp diff --git a/simon/simondebug.cpp b/simon/debug.cpp index ed7febe739..6b1902c6b7 100644 --- a/simon/simondebug.cpp +++ b/simon/debug.cpp @@ -21,8 +21,8 @@ // Simon debug functions #include "stdafx.h" -#include "simon.h" -#include "simonintern.h" +#include "simon/simon.h" +#include "simon/intern.h" #ifdef SIMONDEBUG #define SIMON2 diff --git a/simon/simonintern.h b/simon/intern.h index 2536534844..2536534844 100644 --- a/simon/simonintern.h +++ b/simon/intern.h diff --git a/simon/simonitems.cpp b/simon/items.cpp index 39e95d3a70..4baeae0ec8 100644 --- a/simon/simonitems.cpp +++ b/simon/items.cpp @@ -21,8 +21,8 @@ // Item script opcodes for Simon1/Simon2 #include "stdafx.h" -#include "simon.h" -#include "simonintern.h" +#include "simon/simon.h" +#include "simon/intern.h" #ifdef _WIN32_WCE diff --git a/simon/midi.cpp b/simon/midi.cpp index b9cf3ac867..a55ab0f3ec 100644 --- a/simon/midi.cpp +++ b/simon/midi.cpp @@ -22,10 +22,10 @@ #include "stdafx.h" #include "scummsys.h" -#include "system.h" -#include "../sound/mididrv.h" -#include "../sound/mixer.h" -#include "simon.h" +#include "common/system.h" +#include "sound/mididrv.h" +#include "sound/mixer.h" +#include "simon/simon.h" void MidiPlayer::read_from_file(void *dst, uint size) { diff --git a/simon/simonres.cpp b/simon/res.cpp index 7b36d1f770..8a059486bd 100644 --- a/simon/simonres.cpp +++ b/simon/res.cpp @@ -21,8 +21,8 @@ // Resource file routines for Simon1/Simon2 #include "stdafx.h" -#include "simon.h" -#include "simonintern.h" +#include "simon/simon.h" +#include "simon/intern.h" // Script opcodes to load into memory static const char *const opcode_arg_table_simon1win[256] = { diff --git a/simon/simon.cpp b/simon/simon.cpp index a60234d7a2..d3b8a8391f 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -20,9 +20,9 @@ */ #include "stdafx.h" -#include "simon.h" -#include "simonintern.h" -#include "gameDetector.h" +#include "simon/simon.h" +#include "simon/intern.h" +#include "common/gameDetector.h" #include <errno.h> #include <time.h> diff --git a/simon/simonsys.cpp b/simon/sys.cpp index 0bef256764..5086ba9547 100644 --- a/simon/simonsys.cpp +++ b/simon/sys.cpp @@ -20,7 +20,7 @@ */ #include "stdafx.h" -#include "simon.h" +#include "simon/simon.h" uint fileReadByte(FILE *in) { diff --git a/simon/simonverb.cpp b/simon/verb.cpp index 662237cd68..a81627bff2 100644 --- a/simon/simonverb.cpp +++ b/simon/verb.cpp @@ -21,8 +21,8 @@ // Verb and hitarea handling #include "stdafx.h" -#include "simon.h" -#include "simonintern.h" +#include "simon/simon.h" +#include "simon/intern.h" void SimonState::defocusHitarea() { diff --git a/simon/simonvga.cpp b/simon/vga.cpp index 1c56d5295d..39d56d0c85 100644 --- a/simon/simonvga.cpp +++ b/simon/vga.cpp @@ -21,8 +21,8 @@ // Video script opcodes for Simon1/Simon2 #include "stdafx.h" -#include "simon.h" -#include "simonintern.h" +#include "simon/simon.h" +#include "simon/intern.h" typedef void (SimonState::*VgaOpcodeProc) (); static const uint16 vc_get_out_of_code = 0; diff --git a/sound.cpp b/sound/sound.cpp index 2f947a7148..69bdfc8143 100644 --- a/sound.cpp +++ b/sound/sound.cpp @@ -21,10 +21,10 @@ */ #include "stdafx.h" -#include "scumm.h" +#include "scumm/scumm.h" #include "sound/mididrv.h" -#include "sound/imuse.h" -#include "actor.h" +#include "scumm/imuse.h" +#include "scumm/actor.h" #include "config-file.h" #include "util.h" diff --git a/sound/sound.h b/sound/sound.h new file mode 100644 index 0000000000..4d2a554d6c --- /dev/null +++ b/sound/sound.h @@ -0,0 +1,136 @@ +/* ScummVM - Scumm Interpreter + * Copyright (C) 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$ + */ + +#ifndef SOUND_H +#define SOUND_H + +#include "scummsys.h" +#include "sound/mixer.h" + +class Scumm; + +class Sound { + +private: + +enum { + SOUND_HEADER_SIZE = 26, + SOUND_HEADER_BIG_SIZE = 26 + 8, + +}; + + int16 _soundQuePos, _soundQue[0x100]; + byte _soundQue2Pos, _soundQue2[10]; + bool _soundsPaused2; + bool _soundVolumePreset; + + int32 _numberBundleMusic; + int32 _currentSampleBundleMusic; + int32 _numberSamplesBundleMusic; + int32 _offsetSampleBundleMusic; + int32 _offsetBufBundleMusic; + byte * _musicBundleBufFinal; + byte * _musicBundleBufOutput; + bool _pauseBundleMusic; + + + int _talkChannel; /* Mixer channel actor is talking on */ + void *_sfxFile; + uint32 _talk_sound_a, _talk_sound_b; + byte _talk_sound_mode; + bool _mouthSyncMode; + bool _endOfMouthSync; + uint16 _mouthSyncTimes[52]; + uint _curSoundPos; + + MP3OffsetTable *offset_table; // SO3 MP3 compressed audio + int num_sound_effects; // SO3 MP3 compressed audio +#ifdef COMPRESSED_SOUND_FILE + + #define CACHE_TRACKS 10 + + /* used for mp3 CD music */ + + int _cached_tracks[CACHE_TRACKS]; + struct mad_header _mad_header[CACHE_TRACKS]; + long _mp3_size[CACHE_TRACKS]; + FILE *_mp3_tracks[CACHE_TRACKS]; + int _mp3_index; + bool _mp3_cd_playing; +#endif + + Scumm * _scumm; + +public: + +#ifdef COMPRESSED_SOUND_FILE + + int _current_cache; + +#endif + + bool _soundsPaused; + int16 _sound_volume_master, _sound_volume_music, _sound_volume_sfx; + byte _sfxMode; + + Sound(Scumm *parent); + ~Sound(); + void addSoundToQueue(int sound); + void addSoundToQueue2(int sound); + void processSoundQues(); + void playSound(int sound); + void processSfxQueues(); + int startTalkSound(uint32 offset, uint32 b, int mode); + void stopTalkSound(); + bool isMouthSyncOff(uint pos); + int isSoundRunning(int sound); + bool isSoundInQueue(int sound); + void stopSound(int a); + void stopAllSounds(); + void clearSoundQue(); + void soundKludge(int16 * list); + void talkSound(uint32 a, uint32 b, int mode); + void setupSound(); + void pauseSounds(bool pause); + int startSfxSound(void *file, int file_size); + void * openSfxFile(); + void stopSfxSound(); + bool isSfxFinished(); + uint32 decode12BitsSample(byte * src, byte ** dst, uint32 size); + void playBundleMusic(int32 song); + void pauseBundleMusic(bool state); + void bundleMusicHandler(Scumm * scumm); + void stopBundleMusic(); + void playBundleSound(char *sound); + int playSfxSound(void *sound, uint32 size, uint rate, bool isUnsigned); + int playSfxSound_MP3(void *sound, uint32 size); + +#ifdef COMPRESSED_SOUND_FILE + int getCachedTrack(int track); + int playMP3CDTrack(int track, int num_loops, int start, int delay); + int stopMP3CD(); + int pollMP3CD(); + int updateMP3CD(); +#endif + +}; + +#endif + |