diff options
author | Eugene Sandulenko | 2009-02-15 11:39:07 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-02-15 11:39:07 +0000 |
commit | e241843bec22600ab4ef98e7a085e82aac73fc93 (patch) | |
tree | 61a793884d3462e1feb80e80f202d8816d0c8ec4 /engines | |
parent | e9f742806362a84ffdb176a7414318dd2ab4df89 (diff) | |
download | scummvm-rg350-e241843bec22600ab4ef98e7a085e82aac73fc93.tar.gz scummvm-rg350-e241843bec22600ab4ef98e7a085e82aac73fc93.tar.bz2 scummvm-rg350-e241843bec22600ab4ef98e7a085e82aac73fc93.zip |
- Remove some unneeded files
- Mass rename .c to .cpp
svn-id: r38227
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/game.cpp (renamed from engines/sci/engine/game.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/gc.cpp (renamed from engines/sci/engine/gc.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/grammar.cpp (renamed from engines/sci/engine/grammar.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/heap.cpp (renamed from engines/sci/engine/heap.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/kernel.cpp (renamed from engines/sci/engine/kernel.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/kevent.cpp (renamed from engines/sci/engine/kevent.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/kfile.cpp (renamed from engines/sci/engine/kfile.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/kgraphics.cpp (renamed from engines/sci/engine/kgraphics.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/klists.cpp (renamed from engines/sci/engine/klists.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/kmath.cpp (renamed from engines/sci/engine/kmath.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/kmenu.cpp (renamed from engines/sci/engine/kmenu.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/kmovement.cpp (renamed from engines/sci/engine/kmovement.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/kpathing.cpp (renamed from engines/sci/engine/kpathing.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/kscripts.cpp (renamed from engines/sci/engine/kscripts.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/ksound.cpp (renamed from engines/sci/engine/ksound.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/kstring.cpp (renamed from engines/sci/engine/kstring.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/makefile.dos | 22 | ||||
-rw-r--r-- | engines/sci/engine/message.cpp (renamed from engines/sci/engine/message.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/said.cpp (renamed from engines/sci/engine/said.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/savegame.cpp (renamed from engines/sci/engine/savegame.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/scriptconsole.cpp (renamed from engines/sci/engine/scriptconsole.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp (renamed from engines/sci/engine/scriptdebug.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/seg_manager.cpp (renamed from engines/sci/engine/seg_manager.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/sys_strings.cpp (renamed from engines/sci/engine/sys_strings.c) | 0 | ||||
-rw-r--r-- | engines/sci/engine/vm.cpp (renamed from engines/sci/engine/vm.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/alpha_mvi_crossblit.cpp (renamed from engines/sci/gfx/alpha_mvi_crossblit.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/antialias.cpp (renamed from engines/sci/gfx/antialias.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/font-5x8.cpp (renamed from engines/sci/gfx/font-5x8.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/font-6x10.cpp (renamed from engines/sci/gfx/font-6x10.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/font.cpp (renamed from engines/sci/gfx/font.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/gfx_crossblit.cpp (renamed from engines/sci/gfx/gfx_crossblit.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/gfx_line.cpp (renamed from engines/sci/gfx/gfx_line.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/gfx_pixmap_scale.cpp (renamed from engines/sci/gfx/gfx_pixmap_scale.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/gfx_res_options.cpp (renamed from engines/sci/gfx/gfx_res_options.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/gfx_resource.cpp (renamed from engines/sci/gfx/gfx_resource.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/gfx_support.cpp (renamed from engines/sci/gfx/gfx_support.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/gfx_test.cpp (renamed from engines/sci/gfx/gfx_test.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/gfx_tools.cpp (renamed from engines/sci/gfx/gfx_tools.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/menubar.cpp (renamed from engines/sci/gfx/menubar.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/operations.cpp (renamed from engines/sci/gfx/operations.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/resmgr.cpp (renamed from engines/sci/gfx/resmgr.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/resource/sci_cursor_0.cpp (renamed from engines/sci/gfx/resource/sci_cursor_0.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/resource/sci_font.cpp (renamed from engines/sci/gfx/resource/sci_font.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/resource/sci_pal_1.cpp (renamed from engines/sci/gfx/resource/sci_pal_1.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/resource/sci_pic_0.cpp (renamed from engines/sci/gfx/resource/sci_pic_0.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/resource/sci_picfill.cpp (renamed from engines/sci/gfx/resource/sci_picfill.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/resource/sci_picfill_aux.cpp (renamed from engines/sci/gfx/resource/sci_picfill_aux.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/resource/sci_resmgr.cpp (renamed from engines/sci/gfx/resource/sci_resmgr.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/resource/sci_view_0.cpp (renamed from engines/sci/gfx/resource/sci_view_0.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/resource/sci_view_1.cpp (renamed from engines/sci/gfx/resource/sci_view_1.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/sbtree.cpp (renamed from engines/sci/gfx/sbtree.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/sci_widgets.cpp (renamed from engines/sci/gfx/sci_widgets.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/widgets.cpp (renamed from engines/sci/gfx/widgets.c) | 0 | ||||
-rw-r--r-- | engines/sci/gfx/wrapper.c | 26 | ||||
-rw-r--r-- | engines/sci/menu/game_select_init.c | 275 | ||||
-rw-r--r-- | engines/sci/menu/game_select_screen.c | 581 | ||||
-rw-r--r-- | engines/sci/module.mk | 5 | ||||
-rw-r--r-- | engines/sci/scicore/aatree.cpp (renamed from engines/sci/scicore/aatree.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/console.cpp (renamed from engines/sci/scicore/console.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/decompress0.cpp (renamed from engines/sci/scicore/decompress0.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/decompress01.cpp (renamed from engines/sci/scicore/decompress01.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/decompress1.cpp (renamed from engines/sci/scicore/decompress1.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/decompress11.cpp (renamed from engines/sci/scicore/decompress11.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/exe.cpp (renamed from engines/sci/scicore/exe.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/exe_lzexe.cpp (renamed from engines/sci/scicore/exe_lzexe.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/exe_raw.cpp (renamed from engines/sci/scicore/exe_raw.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/fnmatch.cpp (renamed from engines/sci/scicore/fnmatch.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/hashmap.cpp (renamed from engines/sci/scicore/hashmap.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/int_hashmap.cpp (renamed from engines/sci/scicore/int_hashmap.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/modules.cpp (renamed from engines/sci/scicore/modules.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/old_objects.cpp (renamed from engines/sci/scicore/old_objects.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/reg_t_hashmap.cpp (renamed from engines/sci/scicore/reg_t_hashmap.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/resource.cpp (renamed from engines/sci/scicore/resource.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/resource_map.cpp (renamed from engines/sci/scicore/resource_map.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/resource_patch.cpp (renamed from engines/sci/scicore/resource_patch.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/resourcecheck.cpp (renamed from engines/sci/scicore/resourcecheck.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/sci_memory.cpp (renamed from engines/sci/scicore/sci_memory.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/script.cpp (renamed from engines/sci/scicore/script.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/tools.cpp (renamed from engines/sci/scicore/tools.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/versions.cpp (renamed from engines/sci/scicore/versions.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/vocab.cpp (renamed from engines/sci/scicore/vocab.c) | 0 | ||||
-rw-r--r-- | engines/sci/scicore/vocab_debug.cpp (renamed from engines/sci/scicore/vocab_debug.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/adlib.cpp (renamed from engines/sci/sfx/adlib.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/core.cpp (renamed from engines/sci/sfx/core.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/device/alsa-midi.cpp (renamed from engines/sci/sfx/device/alsa-midi.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/device/camd-midi.cpp (renamed from engines/sci/sfx/device/camd-midi.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/device/devices.cpp (renamed from engines/sci/sfx/device/devices.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/device/unixraw-midi.cpp (renamed from engines/sci/sfx/device/unixraw-midi.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/iterator.cpp (renamed from engines/sci/sfx/iterator.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/lists/gm_patches.cpp (renamed from engines/sci/sfx/lists/gm_patches.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/lists/mt32_timbres.cpp (renamed from engines/sci/sfx/lists/mt32_timbres.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/mixer/dc.cpp (renamed from engines/sci/sfx/mixer/dc.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/mixer/mixers.cpp (renamed from engines/sci/sfx/mixer/mixers.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/mixer/soft.cpp (renamed from engines/sci/sfx/mixer/soft.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/mixer/test.cpp (renamed from engines/sci/sfx/mixer/test.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/pcm-iterator.cpp (renamed from engines/sci/sfx/pcm-iterator.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/pcm_device/alsa.cpp (renamed from engines/sci/sfx/pcm_device/alsa.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/pcm_device/audbuf_test.cpp (renamed from engines/sci/sfx/pcm_device/audbuf_test.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/pcm_device/audiobuf.cpp (renamed from engines/sci/sfx/pcm_device/audiobuf.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/pcm_device/pcm_devices.cpp (renamed from engines/sci/sfx/pcm_device/pcm_devices.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/pcm_device/sdl.cpp (renamed from engines/sci/sfx/pcm_device/sdl.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/player/players.cpp (renamed from engines/sci/sfx/player/players.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/player/polled.cpp (renamed from engines/sci/sfx/player/polled.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/player/realtime.cpp (renamed from engines/sci/sfx/player/realtime.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/seq/gm.cpp (renamed from engines/sci/sfx/seq/gm.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/seq/instrument-map.cpp (renamed from engines/sci/sfx/seq/instrument-map.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/seq/map-mt32-to-gm.cpp (renamed from engines/sci/sfx/seq/map-mt32-to-gm.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/seq/mt32.cpp (renamed from engines/sci/sfx/seq/mt32.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/seq/oss-adlib.cpp (renamed from engines/sci/sfx/seq/oss-adlib.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/seq/sequencers.cpp (renamed from engines/sci/sfx/seq/sequencers.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/softseq/SN76496.cpp (renamed from engines/sci/sfx/softseq/SN76496.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/softseq/amiga.cpp (renamed from engines/sci/sfx/softseq/amiga.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/softseq/fluidsynth.cpp (renamed from engines/sci/sfx/softseq/fluidsynth.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/softseq/opl2.cpp (renamed from engines/sci/sfx/softseq/opl2.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/softseq/pcspeaker.cpp (renamed from engines/sci/sfx/softseq/pcspeaker.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/softseq/softsequencers.cpp (renamed from engines/sci/sfx/softseq/softsequencers.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/songlib.cpp (renamed from engines/sci/sfx/songlib.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/test-iterator.cpp (renamed from engines/sci/sfx/test-iterator.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/time.cpp (renamed from engines/sci/sfx/time.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/timer/pthread.cpp (renamed from engines/sci/sfx/timer/pthread.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/timer/sigalrm.cpp (renamed from engines/sci/sfx/timer/sigalrm.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/timer/timers.cpp (renamed from engines/sci/sfx/timer/timers.c) | 0 | ||||
-rw-r--r-- | engines/sci/sfx/timetest.cpp (renamed from engines/sci/sfx/timetest.c) | 0 | ||||
-rw-r--r-- | engines/sci/tools/bdf.cpp (renamed from engines/sci/tools/bdf.c) | 0 | ||||
-rw-r--r-- | engines/sci/tools/bdfgname.cpp (renamed from engines/sci/tools/bdfgname.c) | 0 | ||||
-rw-r--r-- | engines/sci/tools/bdfgrid.cpp (renamed from engines/sci/tools/bdfgrid.c) | 0 | ||||
-rw-r--r-- | engines/sci/tools/bdftofont.cpp (renamed from engines/sci/tools/bdftofont.c) | 0 | ||||
-rw-r--r-- | engines/sci/tools/classes.cpp (renamed from engines/sci/tools/classes.c) | 0 | ||||
-rw-r--r-- | engines/sci/tools/fonttoc.cpp (renamed from engines/sci/tools/fonttoc.c) | 0 | ||||
-rw-r--r-- | engines/sci/tools/listwords.cpp (renamed from engines/sci/tools/listwords.c) | 0 | ||||
-rw-r--r-- | engines/sci/tools/musicplayer.cpp (renamed from engines/sci/tools/musicplayer.c) | 0 | ||||
-rw-r--r-- | engines/sci/tools/scidisasm.cpp (renamed from engines/sci/tools/scidisasm.c) | 0 | ||||
-rw-r--r-- | engines/sci/tools/scipack.cpp (renamed from engines/sci/tools/scipack.c) | 0 | ||||
-rw-r--r-- | engines/sci/tools/sciunpack.cpp (renamed from engines/sci/tools/sciunpack.c) | 0 | ||||
-rw-r--r-- | engines/sci/tools/scriptdump.cpp (renamed from engines/sci/tools/scriptdump.c) | 0 | ||||
-rw-r--r-- | engines/sci/tools/vocabdump.cpp (renamed from engines/sci/tools/vocabdump.c) | 0 |
136 files changed, 0 insertions, 909 deletions
diff --git a/engines/sci/engine/game.c b/engines/sci/engine/game.cpp index 63d3fb9e94..63d3fb9e94 100644 --- a/engines/sci/engine/game.c +++ b/engines/sci/engine/game.cpp diff --git a/engines/sci/engine/gc.c b/engines/sci/engine/gc.cpp index bdad84d7d4..bdad84d7d4 100644 --- a/engines/sci/engine/gc.c +++ b/engines/sci/engine/gc.cpp diff --git a/engines/sci/engine/grammar.c b/engines/sci/engine/grammar.cpp index 7daf735b6d..7daf735b6d 100644 --- a/engines/sci/engine/grammar.c +++ b/engines/sci/engine/grammar.cpp diff --git a/engines/sci/engine/heap.c b/engines/sci/engine/heap.cpp index 4b2314ace7..4b2314ace7 100644 --- a/engines/sci/engine/heap.c +++ b/engines/sci/engine/heap.cpp diff --git a/engines/sci/engine/kernel.c b/engines/sci/engine/kernel.cpp index 7498d9763b..7498d9763b 100644 --- a/engines/sci/engine/kernel.c +++ b/engines/sci/engine/kernel.cpp diff --git a/engines/sci/engine/kevent.c b/engines/sci/engine/kevent.cpp index 3b6df771e7..3b6df771e7 100644 --- a/engines/sci/engine/kevent.c +++ b/engines/sci/engine/kevent.cpp diff --git a/engines/sci/engine/kfile.c b/engines/sci/engine/kfile.cpp index 629a1a6f00..629a1a6f00 100644 --- a/engines/sci/engine/kfile.c +++ b/engines/sci/engine/kfile.cpp diff --git a/engines/sci/engine/kgraphics.c b/engines/sci/engine/kgraphics.cpp index 963d2362b5..963d2362b5 100644 --- a/engines/sci/engine/kgraphics.c +++ b/engines/sci/engine/kgraphics.cpp diff --git a/engines/sci/engine/klists.c b/engines/sci/engine/klists.cpp index 96b527d812..96b527d812 100644 --- a/engines/sci/engine/klists.c +++ b/engines/sci/engine/klists.cpp diff --git a/engines/sci/engine/kmath.c b/engines/sci/engine/kmath.cpp index 4c8ebb8ec5..4c8ebb8ec5 100644 --- a/engines/sci/engine/kmath.c +++ b/engines/sci/engine/kmath.cpp diff --git a/engines/sci/engine/kmenu.c b/engines/sci/engine/kmenu.cpp index bd676213f4..bd676213f4 100644 --- a/engines/sci/engine/kmenu.c +++ b/engines/sci/engine/kmenu.cpp diff --git a/engines/sci/engine/kmovement.c b/engines/sci/engine/kmovement.cpp index 1234a9028a..1234a9028a 100644 --- a/engines/sci/engine/kmovement.c +++ b/engines/sci/engine/kmovement.cpp diff --git a/engines/sci/engine/kpathing.c b/engines/sci/engine/kpathing.cpp index 89273d1137..89273d1137 100644 --- a/engines/sci/engine/kpathing.c +++ b/engines/sci/engine/kpathing.cpp diff --git a/engines/sci/engine/kscripts.c b/engines/sci/engine/kscripts.cpp index 02517365c8..02517365c8 100644 --- a/engines/sci/engine/kscripts.c +++ b/engines/sci/engine/kscripts.cpp diff --git a/engines/sci/engine/ksound.c b/engines/sci/engine/ksound.cpp index ebce947b50..ebce947b50 100644 --- a/engines/sci/engine/ksound.c +++ b/engines/sci/engine/ksound.cpp diff --git a/engines/sci/engine/kstring.c b/engines/sci/engine/kstring.cpp index b8e4ec3b74..b8e4ec3b74 100644 --- a/engines/sci/engine/kstring.c +++ b/engines/sci/engine/kstring.cpp diff --git a/engines/sci/engine/makefile.dos b/engines/sci/engine/makefile.dos deleted file mode 100644 index 0d4c5fac8e..0000000000 --- a/engines/sci/engine/makefile.dos +++ /dev/null @@ -1,22 +0,0 @@ -# -# FreeSCI/DOS Makefile -# -# 19991220 rink created this file -# 20000615 rink updated this file -# -# -TARGET : libsciengine.a - -FILES = savegame.o kernel.o kscripts.o klists.o kfile.o kgraphics.o \ - kmath.o kevent.o kstring.o kmenu.o ksound.o vm.o game.o \ - scriptdebug.o heap.o simplesaid.o said.o grammar.o - - -CC = gcc -CFLAGS = -g -c -I../include -I../.. -D_DOS -DHAVE_LIBPNG -DHAVE_UNISTD_H - -clean: - del *.o *.a - -libsciengine.a: ${FILES} - ar r libsciengine.a ${FILES} diff --git a/engines/sci/engine/message.c b/engines/sci/engine/message.cpp index bf4657a96e..bf4657a96e 100644 --- a/engines/sci/engine/message.c +++ b/engines/sci/engine/message.cpp diff --git a/engines/sci/engine/said.c b/engines/sci/engine/said.cpp index 5296fc4b51..5296fc4b51 100644 --- a/engines/sci/engine/said.c +++ b/engines/sci/engine/said.cpp diff --git a/engines/sci/engine/savegame.c b/engines/sci/engine/savegame.cpp index 920018e394..920018e394 100644 --- a/engines/sci/engine/savegame.c +++ b/engines/sci/engine/savegame.cpp diff --git a/engines/sci/engine/scriptconsole.c b/engines/sci/engine/scriptconsole.cpp index 48f1f1695b..48f1f1695b 100644 --- a/engines/sci/engine/scriptconsole.c +++ b/engines/sci/engine/scriptconsole.cpp diff --git a/engines/sci/engine/scriptdebug.c b/engines/sci/engine/scriptdebug.cpp index a2a1d2427d..a2a1d2427d 100644 --- a/engines/sci/engine/scriptdebug.c +++ b/engines/sci/engine/scriptdebug.cpp diff --git a/engines/sci/engine/seg_manager.c b/engines/sci/engine/seg_manager.cpp index b4a675174a..b4a675174a 100644 --- a/engines/sci/engine/seg_manager.c +++ b/engines/sci/engine/seg_manager.cpp diff --git a/engines/sci/engine/sys_strings.c b/engines/sci/engine/sys_strings.cpp index 5aeb1a64c0..5aeb1a64c0 100644 --- a/engines/sci/engine/sys_strings.c +++ b/engines/sci/engine/sys_strings.cpp diff --git a/engines/sci/engine/vm.c b/engines/sci/engine/vm.cpp index d2831fbd69..d2831fbd69 100644 --- a/engines/sci/engine/vm.c +++ b/engines/sci/engine/vm.cpp diff --git a/engines/sci/gfx/alpha_mvi_crossblit.c b/engines/sci/gfx/alpha_mvi_crossblit.cpp index 6a1e238c2b..6a1e238c2b 100644 --- a/engines/sci/gfx/alpha_mvi_crossblit.c +++ b/engines/sci/gfx/alpha_mvi_crossblit.cpp diff --git a/engines/sci/gfx/antialias.c b/engines/sci/gfx/antialias.cpp index 47e70f09e0..47e70f09e0 100644 --- a/engines/sci/gfx/antialias.c +++ b/engines/sci/gfx/antialias.cpp diff --git a/engines/sci/gfx/font-5x8.c b/engines/sci/gfx/font-5x8.cpp index 5234570adc..5234570adc 100644 --- a/engines/sci/gfx/font-5x8.c +++ b/engines/sci/gfx/font-5x8.cpp diff --git a/engines/sci/gfx/font-6x10.c b/engines/sci/gfx/font-6x10.cpp index 6fbf661cbe..6fbf661cbe 100644 --- a/engines/sci/gfx/font-6x10.c +++ b/engines/sci/gfx/font-6x10.cpp diff --git a/engines/sci/gfx/font.c b/engines/sci/gfx/font.cpp index c047b78f2e..c047b78f2e 100644 --- a/engines/sci/gfx/font.c +++ b/engines/sci/gfx/font.cpp diff --git a/engines/sci/gfx/gfx_crossblit.c b/engines/sci/gfx/gfx_crossblit.cpp index af55a90490..af55a90490 100644 --- a/engines/sci/gfx/gfx_crossblit.c +++ b/engines/sci/gfx/gfx_crossblit.cpp diff --git a/engines/sci/gfx/gfx_line.c b/engines/sci/gfx/gfx_line.cpp index 01b6a8fd2a..01b6a8fd2a 100644 --- a/engines/sci/gfx/gfx_line.c +++ b/engines/sci/gfx/gfx_line.cpp diff --git a/engines/sci/gfx/gfx_pixmap_scale.c b/engines/sci/gfx/gfx_pixmap_scale.cpp index 0edd0365c8..0edd0365c8 100644 --- a/engines/sci/gfx/gfx_pixmap_scale.c +++ b/engines/sci/gfx/gfx_pixmap_scale.cpp diff --git a/engines/sci/gfx/gfx_res_options.c b/engines/sci/gfx/gfx_res_options.cpp index 0692fece0f..0692fece0f 100644 --- a/engines/sci/gfx/gfx_res_options.c +++ b/engines/sci/gfx/gfx_res_options.cpp diff --git a/engines/sci/gfx/gfx_resource.c b/engines/sci/gfx/gfx_resource.cpp index 3c1bf50326..3c1bf50326 100644 --- a/engines/sci/gfx/gfx_resource.c +++ b/engines/sci/gfx/gfx_resource.cpp diff --git a/engines/sci/gfx/gfx_support.c b/engines/sci/gfx/gfx_support.cpp index 8a1e86e19f..8a1e86e19f 100644 --- a/engines/sci/gfx/gfx_support.c +++ b/engines/sci/gfx/gfx_support.cpp diff --git a/engines/sci/gfx/gfx_test.c b/engines/sci/gfx/gfx_test.cpp index 2b5b8f36ec..2b5b8f36ec 100644 --- a/engines/sci/gfx/gfx_test.c +++ b/engines/sci/gfx/gfx_test.cpp diff --git a/engines/sci/gfx/gfx_tools.c b/engines/sci/gfx/gfx_tools.cpp index b768475f3f..b768475f3f 100644 --- a/engines/sci/gfx/gfx_tools.c +++ b/engines/sci/gfx/gfx_tools.cpp diff --git a/engines/sci/gfx/menubar.c b/engines/sci/gfx/menubar.cpp index 38feace8ca..38feace8ca 100644 --- a/engines/sci/gfx/menubar.c +++ b/engines/sci/gfx/menubar.cpp diff --git a/engines/sci/gfx/operations.c b/engines/sci/gfx/operations.cpp index 110f52a52c..110f52a52c 100644 --- a/engines/sci/gfx/operations.c +++ b/engines/sci/gfx/operations.cpp diff --git a/engines/sci/gfx/resmgr.c b/engines/sci/gfx/resmgr.cpp index d7893738ba..d7893738ba 100644 --- a/engines/sci/gfx/resmgr.c +++ b/engines/sci/gfx/resmgr.cpp diff --git a/engines/sci/gfx/resource/sci_cursor_0.c b/engines/sci/gfx/resource/sci_cursor_0.cpp index 06a8d2b7aa..06a8d2b7aa 100644 --- a/engines/sci/gfx/resource/sci_cursor_0.c +++ b/engines/sci/gfx/resource/sci_cursor_0.cpp diff --git a/engines/sci/gfx/resource/sci_font.c b/engines/sci/gfx/resource/sci_font.cpp index f1ae4edb19..f1ae4edb19 100644 --- a/engines/sci/gfx/resource/sci_font.c +++ b/engines/sci/gfx/resource/sci_font.cpp diff --git a/engines/sci/gfx/resource/sci_pal_1.c b/engines/sci/gfx/resource/sci_pal_1.cpp index 2a127f4bb3..2a127f4bb3 100644 --- a/engines/sci/gfx/resource/sci_pal_1.c +++ b/engines/sci/gfx/resource/sci_pal_1.cpp diff --git a/engines/sci/gfx/resource/sci_pic_0.c b/engines/sci/gfx/resource/sci_pic_0.cpp index a55265c7ef..a55265c7ef 100644 --- a/engines/sci/gfx/resource/sci_pic_0.c +++ b/engines/sci/gfx/resource/sci_pic_0.cpp diff --git a/engines/sci/gfx/resource/sci_picfill.c b/engines/sci/gfx/resource/sci_picfill.cpp index c7ecea08a7..c7ecea08a7 100644 --- a/engines/sci/gfx/resource/sci_picfill.c +++ b/engines/sci/gfx/resource/sci_picfill.cpp diff --git a/engines/sci/gfx/resource/sci_picfill_aux.c b/engines/sci/gfx/resource/sci_picfill_aux.cpp index 70d8a822da..70d8a822da 100644 --- a/engines/sci/gfx/resource/sci_picfill_aux.c +++ b/engines/sci/gfx/resource/sci_picfill_aux.cpp diff --git a/engines/sci/gfx/resource/sci_resmgr.c b/engines/sci/gfx/resource/sci_resmgr.cpp index fce577f8c5..fce577f8c5 100644 --- a/engines/sci/gfx/resource/sci_resmgr.c +++ b/engines/sci/gfx/resource/sci_resmgr.cpp diff --git a/engines/sci/gfx/resource/sci_view_0.c b/engines/sci/gfx/resource/sci_view_0.cpp index 0101cac5f7..0101cac5f7 100644 --- a/engines/sci/gfx/resource/sci_view_0.c +++ b/engines/sci/gfx/resource/sci_view_0.cpp diff --git a/engines/sci/gfx/resource/sci_view_1.c b/engines/sci/gfx/resource/sci_view_1.cpp index d747545331..d747545331 100644 --- a/engines/sci/gfx/resource/sci_view_1.c +++ b/engines/sci/gfx/resource/sci_view_1.cpp diff --git a/engines/sci/gfx/sbtree.c b/engines/sci/gfx/sbtree.cpp index 48054d4620..48054d4620 100644 --- a/engines/sci/gfx/sbtree.c +++ b/engines/sci/gfx/sbtree.cpp diff --git a/engines/sci/gfx/sci_widgets.c b/engines/sci/gfx/sci_widgets.cpp index 0df88236d1..0df88236d1 100644 --- a/engines/sci/gfx/sci_widgets.c +++ b/engines/sci/gfx/sci_widgets.cpp diff --git a/engines/sci/gfx/widgets.c b/engines/sci/gfx/widgets.cpp index 7516512c29..7516512c29 100644 --- a/engines/sci/gfx/widgets.c +++ b/engines/sci/gfx/widgets.cpp diff --git a/engines/sci/gfx/wrapper.c b/engines/sci/gfx/wrapper.c deleted file mode 100644 index 0bf1097c2a..0000000000 --- a/engines/sci/gfx/wrapper.c +++ /dev/null @@ -1,26 +0,0 @@ -/*************************************************************************** - wrapper.c Copyright (C) 2000 Christoph Reichenbach - - - This program may be modified and copied freely according to the terms of - the GNU general public license (GPL), as long as the above copyright - notice and the licensing information contained herein are preserved. - - Please refer to www.gnu.org for licensing details. - - This work is provided AS IS, without warranty of any kind, expressed or - implied, including but not limited to the warranties of merchantibility, - noninfringement, and fitness for a specific purpose. The author will not - be held liable for any damage caused by this work or derivatives of it. - - By using this source code, you agree to the licensing terms as stated - above. - - - Please contact the maintainer for bug reports or inquiries. - - Current Maintainer: - - Christoph Reichenbach (CR) <jameson@linuxgames.com> - -***************************************************************************/ diff --git a/engines/sci/menu/game_select_init.c b/engines/sci/menu/game_select_init.c deleted file mode 100644 index b538a60b38..0000000000 --- a/engines/sci/menu/game_select_init.c +++ /dev/null @@ -1,275 +0,0 @@ -/*************************************************************************** - game_select_init.c Copyright (C) 2004 Hugues Valois - - - This program may be modified and copied freely according to the terms of - the GNU general public license (GPL), as long as the above copyright - notice and the licensing information contained herein are preserved. - - Please refer to www.gnu.org for licensing details. - - This work is provided AS IS, without warranty of any kind, expressed or - implied, including but not limited to the warranties of merchantibility, - noninfringement, and fitness for a specific purpose. The author will not - be held liable for any damage caused by this work or derivatives of it. - - By using this source code, you agree to the licensing terms as stated - above. - - - Please contact the maintainer for bug reports or inquiries. - - Current Maintainer: - - Christoph Reichenbach (CR) <jameson@linuxgames.com> - -***************************************************************************/ - -#include <sci_memory.h> -#include <gfx_operations.h> -#include "game_select.h" -#include "sciresource.h" - -/* NOTE: THIS CODE BASED ON _gfxop_init_common (COPIED AND MODIFIED) */ -static int -game_select_gfxop_init_common(gfx_state_t *state, gfx_options_t *options, void *misc_payload) -{ - int i; - - state->options = options; - - if ((state->static_palette = gfxr_interpreter_get_static_palette(state->resstate, - SCI_VERSION_0, - &(state->static_palette_entries), - misc_payload))) - { - for (i = 0; i < state->static_palette_entries; i++) - gfx_alloc_color(state->driver->mode->palette, state->static_palette + i); - } - -/* if (!((state->resstate = gfxr_new_resource_manager(state->version, */ -/* state->options, */ -/* state->driver, */ -/* misc_payload)))) { */ -/* GFXERROR("Failed to initialize resource manager!\n"); */ -/* return GFX_FATAL; */ -/* } */ - - - state->visible_map = GFX_MASK_VISUAL; - gfxop_set_clip_zone(state, gfx_rect(0, 0, 320, 200)); - - state->mouse_pointer = state->mouse_pointer_bg = NULL; - state->mouse_pointer_visible = 0; - state->control_map = gfx_pixmap_alloc_index_data(gfx_new_pixmap(320, 200, GFX_RESID_NONE, 0, 0)); - state->control_map->flags |= GFX_PIXMAP_FLAG_EXTERNAL_PALETTE; - state->options = options; - state->mouse_pointer_in_hw = 0; - state->disable_dirty = 0; - state->events = NULL; - - state->pic = state->pic_unscaled = NULL; - - state->pic_nr = -1; /* Set background pic number to an invalid value */ - - state->tag_mode = 0; - - state->dirty_rects = NULL; - - - return GFX_OK; -} - -/* NOTE: THIS CODE BASED ON gfxop_init_default (COPIED AND MODIFIED) */ -int -game_select_gfxop_init_default(gfx_state_t *state, gfx_options_t *options, void *misc_info) -{ - if (state->driver->init(state->driver)) - return GFX_FATAL; - - return game_select_gfxop_init_common(state, options, misc_info); -} - -/* NOTE: THIS CODE BASED ON gfxop_init (COPIED AND MODIFIED) */ -int -game_select_gfxop_init(gfx_state_t *state, int xfact, int yfact, gfx_color_mode_t bpp, - gfx_options_t *options, void *misc_info) -{ - int color_depth = bpp? bpp : 1; - int initialized = 0; - - do { - if (!state->driver->init_specific(state->driver, xfact, yfact, color_depth)) - initialized = 1; - else - color_depth++; - } while (!initialized && color_depth < 9 && !bpp); - - if (!initialized) - return GFX_FATAL; - - return game_select_gfxop_init_common(state, options, misc_info); -} - -#if 0 -/* this can be used to generate code that creates a particular font at runtime */ -/* this is meant to be used as a development tool */ -void save_font(int id, gfx_bitmap_font_t* font) -{ - FILE* file; - char filepath[128]; - char filename[128]; - char buffer[1024]; - int i = 0; - - _itoa(id, filename, 10); - strcpy(filepath, filename); - strcat(filepath, ".c"); - - file = fopen(filepath, "w"); - - strcpy(buffer, "#include <sci_memory.h>\n#include <gfx_system.h>\n#include <gfx_resource.h>\n#include <gfx_tools.h>\n\n"); - fwrite(buffer, strlen(buffer), 1, file); - - /* font widths */ - strcpy(buffer, "static int font_widths[] = \n{\n"); - fwrite(buffer, strlen(buffer), 1, file); - - for (i = 0; i < font->chars_nr; i++) - { - strcpy(buffer, "\t"); - fwrite(buffer, strlen(buffer), 1, file); - - _itoa(font->widths[i], buffer, 10); - fwrite(buffer, strlen(buffer), 1, file); - - strcpy(buffer, ",\n"); - fwrite(buffer, strlen(buffer), 1, file); - } - - strcpy(buffer, "};\n\n"); - fwrite(buffer, strlen(buffer), 1, file); - - /* font data */ - strcpy(buffer, "static byte font_data[] = \n{\n"); - fwrite(buffer, strlen(buffer), 1, file); - - for (i = 0; i < font->chars_nr * font->height * font->row_size; i++) - { - strcpy(buffer, "\t"); - fwrite(buffer, strlen(buffer), 1, file); - - _itoa(font->data[i], buffer, 10); - fwrite(buffer, strlen(buffer), 1, file); - - strcpy(buffer, ",\n"); - fwrite(buffer, strlen(buffer), 1, file); - } - - strcpy(buffer, "};\n\n"); - fwrite(buffer, strlen(buffer), 1, file); - - /* font structure */ - strcpy(buffer, "static gfx_bitmap_font_t font = \n{\n"); - fwrite(buffer, strlen(buffer), 1, file); - - /* ID */ - strcpy(buffer, "\t"); - fwrite(buffer, strlen(buffer), 1, file); - - _itoa(id, buffer, 10); - fwrite(buffer, strlen(buffer), 1, file); - - strcpy(buffer, ",\n"); - fwrite(buffer, strlen(buffer), 1, file); - - /* chars_nr */ - strcpy(buffer, "\t"); - fwrite(buffer, strlen(buffer), 1, file); - - _itoa(font->chars_nr, buffer, 10); - fwrite(buffer, strlen(buffer), 1, file); - - strcpy(buffer, ",\n"); - fwrite(buffer, strlen(buffer), 1, file); - - /* widths */ - strcpy(buffer, "\t"); - fwrite(buffer, strlen(buffer), 1, file); - - strcpy(buffer, "font_widths,\n"); - fwrite(buffer, strlen(buffer), 1, file); - - /* row_size */ - strcpy(buffer, "\t"); - fwrite(buffer, strlen(buffer), 1, file); - - _itoa(font->row_size, buffer, 10); - fwrite(buffer, strlen(buffer), 1, file); - - strcpy(buffer, ",\n"); - fwrite(buffer, strlen(buffer), 1, file); - - /* line_height */ - strcpy(buffer, "\t"); - fwrite(buffer, strlen(buffer), 1, file); - - _itoa(font->line_height, buffer, 10); - fwrite(buffer, strlen(buffer), 1, file); - - strcpy(buffer, ",\n"); - fwrite(buffer, strlen(buffer), 1, file); - - /* height */ - strcpy(buffer, "\t"); - fwrite(buffer, strlen(buffer), 1, file); - - _itoa(font->height, buffer, 10); - fwrite(buffer, strlen(buffer), 1, file); - - strcpy(buffer, ",\n"); - fwrite(buffer, strlen(buffer), 1, file); - - /* char_size */ - strcpy(buffer, "\t"); - fwrite(buffer, strlen(buffer), 1, file); - - _itoa(font->char_size, buffer, 10); - fwrite(buffer, strlen(buffer), 1, file); - - strcpy(buffer, ",\n"); - fwrite(buffer, strlen(buffer), 1, file); - - /* data */ - strcpy(buffer, "\t"); - fwrite(buffer, strlen(buffer), 1, file); - - strcpy(buffer, "font_data,\n"); - fwrite(buffer, strlen(buffer), 1, file); - - strcpy(buffer, "};\n\n"); - fwrite(buffer, strlen(buffer), 1, file); - - /* function definition */ - strcpy(buffer, "gfx_bitmap_font_t* get_font_"); - fwrite(buffer, strlen(buffer), 1, file); - - strcpy(buffer, filename); - fwrite(buffer, strlen(buffer), 1, file); - - /* function body start*/ - strcpy(buffer, "()\n{\n"); - fwrite(buffer, strlen(buffer), 1, file); - - /* return */ - strcpy(buffer, "\treturn &font;\n"); - fwrite(buffer, strlen(buffer), 1, file); - - /* function body end */ - strcpy(buffer, "}\n"); - fwrite(buffer, strlen(buffer), 1, file); - - fclose(file); -} -#endif - diff --git a/engines/sci/menu/game_select_screen.c b/engines/sci/menu/game_select_screen.c deleted file mode 100644 index fe27d597d9..0000000000 --- a/engines/sci/menu/game_select_screen.c +++ /dev/null @@ -1,581 +0,0 @@ -/*************************************************************************** - game_select_screen.c Copyright (C) 2004 Hugues Valois - - - This program may be modified and copied freely according to the terms of - the GNU general public license (GPL), as long as the above copyright - notice and the licensing information contained herein are preserved. - - Please refer to www.gnu.org for licensing details. - - This work is provided AS IS, without warranty of any kind, expressed or - implied, including but not limited to the warranties of merchantibility, - noninfringement, and fitness for a specific purpose. The author will not - be held liable for any damage caused by this work or derivatives of it. - - By using this source code, you agree to the licensing terms as stated - above. - - - Please contact the maintainer for bug reports or inquiries. - - Current Maintainer: - - Christoph Reichenbach (CR) <jameson@linuxgames.com> - -***************************************************************************/ -#include <sci_memory.h> -#include <gfx_operations.h> -#include "game_select.h" - - -#define MILLION 1000000 - - -#define GS_WINDOW_LEFT 30 -#define GS_WINDOW_TOP 26 -#define GS_WINDOW_WIDTH 260 -#define GS_WINDOW_HEIGHT 156 - -#define GS_SCAN_WINDOW_LEFT 30 -#define GS_SCAN_WINDOW_TOP 73 -#define GS_SCAN_WINDOW_WIDTH 260 -#define GS_SCAN_WINDOW_HEIGHT 62 - -#define GS_LISTBOX_WIDTH (GS_WINDOW_WIDTH - 78) -#define GS_LISTBOX_HEIGHT (GS_WINDOW_HEIGHT - 43) -#define GS_LISTBOX_CONTENTS_HEIGHT GS_LISTBOX_HEIGHT - 21 - -#define GS_BUTTON_PLAY 1 -#define GS_BUTTON_QUIT 2 - -#define GS_BUTTON_FIRST 1 -#define GS_BUTTON_LAST 2 - -static int -game_select_gfxop_usleep(gfx_driver_t *gfx_driver, long usecs) -{ - long time, utime; - long wakeup_time, wakeup_utime; - long add_seconds; - int retval = GFX_OK; - - sci_gettime(&wakeup_time, &wakeup_utime); - wakeup_utime += usecs; - - add_seconds = (wakeup_utime / MILLION); - wakeup_time += add_seconds; - wakeup_utime -= (MILLION * add_seconds); - - do { - sci_gettime(&time, &utime); - usecs = (wakeup_time - time) * MILLION + wakeup_utime - utime; - } while ((usecs > 0) && !(retval = gfx_driver->usec_sleep(gfx_driver, usecs))); - - if (retval) { - GFXWARN("Waiting failed\n"); - } - - return retval; -} - -static sci_event_t -game_select_gfxop_get_event(gfx_driver_t *gfx_driver, unsigned int mask) -{ - sci_event_t event; - - event.type = 0; - - do - { - event = gfx_driver->get_event(gfx_driver); - - } while (event.type && !(event.type & mask)); - - return event; -} - -static gfx_pixmap_color_t -create_pixmap_color_t(gfx_color_t color) -{ - gfx_pixmap_color_t pixmap_color; - - pixmap_color.global_index = GFX_COLOR_INDEX_UNMAPPED; - pixmap_color.r = color.visual.r; - pixmap_color.g = color.visual.g; - pixmap_color.b = color.visual.b; - - return pixmap_color; -} - -static gfx_color_t -create_color_t(byte r, byte g, byte b) -{ - gfx_color_t color; - - color.visual.global_index = 0; - color.mask = GFX_MASK_VISUAL; - color.alpha = 1; - color.priority = 0; - color.control = 0; - color.visual.r = r; - color.visual.g = g; - color.visual.b = b; - - return color; -} - -static void -gfx_box_border(gfx_driver_t *gfx_driver, rect_t box, gfx_color_t color) -{ - box.x *= gfx_driver->mode->xfact; - box.y *= gfx_driver->mode->yfact; - box.xl *= gfx_driver->mode->xfact; - box.yl *= gfx_driver->mode->yfact; - - { - point_t ul = gfx_point (box.x, box.y); - point_t ur = gfx_point (box.x + box.xl, box.y); - point_t ll = gfx_point (box.x, box.y + box.yl); - point_t lr = gfx_point (box.x + box.xl, box.y + box.yl); - - - gfx_driver->draw_line(gfx_driver, ul, ur, color, GFX_LINE_MODE_CORRECT, GFX_LINE_STYLE_NORMAL); - gfx_driver->draw_line(gfx_driver, ur, lr, color, GFX_LINE_MODE_CORRECT, GFX_LINE_STYLE_NORMAL); - gfx_driver->draw_line(gfx_driver, lr, ll, color, GFX_LINE_MODE_CORRECT, GFX_LINE_STYLE_NORMAL); - gfx_driver->draw_line(gfx_driver, ll, ul, color, GFX_LINE_MODE_CORRECT, GFX_LINE_STYLE_NORMAL); - } -} - -static void -gfx_box_fill(gfx_driver_t *gfx_driver, rect_t box, gfx_color_t color) -{ - box.x *= gfx_driver->mode->xfact; - box.y *= gfx_driver->mode->yfact; - box.xl *= gfx_driver->mode->xfact; - box.yl *= gfx_driver->mode->yfact; - - gfx_driver->draw_filled_rect(gfx_driver, box, color, color, GFX_SHADE_FLAT); -} - -static void -gfx_box_line(gfx_driver_t *gfx_driver, rect_t box, gfx_color_t color) -{ - box.x *= gfx_driver->mode->xfact; - box.y *= gfx_driver->mode->yfact; - box.xl *= gfx_driver->mode->xfact; - box.yl *= gfx_driver->mode->yfact; - - - { - point_t p1 = gfx_point (box.x, box.y); - point_t p2 = gfx_point (box.x + box.xl, box.y + box.yl); - - gfx_driver->draw_line(gfx_driver, p1, p2, color, GFX_LINE_MODE_CORRECT, GFX_LINE_STYLE_NORMAL); - } -} - -static void -gfx_box_text(gfx_driver_t *gfx_driver, rect_t box, gfx_bitmap_font_t* font, gfx_pixmap_color_t fgc, gfx_pixmap_color_t bgc, const char* text, int center) -{ - int width; - int height; - gfx_pixmap_t* pixmap; - text_fragment_t *textsplits; - int meas_width; - int meas_height; - int meas_line; - int margin_x = 0; - int margin_y = 0; - int line_height; - int last_offset; - - if (center != 0) - { - textsplits = gfxr_font_calculate_size(font, box.xl, text, &meas_width, &meas_height, &meas_line, &line_height, &last_offset, GFXR_FONT_FLAG_NO_NEWLINES | GFXR_FONT_FLAG_COUNT_WHITESPACE); - if (textsplits != NULL) - { - free(textsplits); - } - - margin_x = (box.xl - meas_width) / 2; - margin_y = (box.yl - meas_height) / 2; - } - - box.x *= gfx_driver->mode->xfact; - box.y *= gfx_driver->mode->yfact; - box.xl *= gfx_driver->mode->xfact; - box.yl *= gfx_driver->mode->yfact; - margin_x *= gfx_driver->mode->xfact; - margin_y *= gfx_driver->mode->yfact; - - pixmap = gfxr_draw_font(font, text, strlen(text), &fgc, &fgc, NULL); - if (pixmap != NULL) - { - pixmap->xoffset = 0; - pixmap->yoffset = 0; - - gfx_xlate_pixmap(gfx_pixmap_alloc_data(pixmap, gfx_driver->mode), gfx_driver->mode, GFX_XLATE_FILTER_NONE); - - width = pixmap->index_xl * gfx_driver->mode->xfact; - height = pixmap->index_yl * gfx_driver->mode->yfact; - - if (width > box.xl) - width = box.xl; - - if (gfx_driver->draw_pixmap(gfx_driver, pixmap, GFX_NO_PRIORITY, gfx_rect(0, 0, width, height), gfx_rect(box.x + margin_x, box.y + margin_y, width, height), GFX_BUFFER_BACK) != GFX_OK) - { - GFXERROR("Error occured while drawing pixmap.\n"); - } - - gfx_free_pixmap(gfx_driver, pixmap); - } -} - -static void -game_select_display_button(gfx_driver_t *gfx_driver, gfx_bitmap_font_t* font, rect_t box, const char* button_text, int focus) -{ - gfx_color_t black; - gfx_color_t white; - - black = create_color_t(0, 0, 0); - white = create_color_t(255, 255, 255); - - gfx_box_border(gfx_driver, gfx_rect(box.x, box.y, box.xl, box.yl), black); - gfx_box_fill(gfx_driver, gfx_rect(box.x + 1, box.y + 1, box.xl - 2, box.yl - 2), white); - gfx_box_text(gfx_driver, gfx_rect(box.x, box.y + 1, box.xl, box.yl), font, create_pixmap_color_t(black), create_pixmap_color_t(white), button_text, 1); - if (focus != 0) - gfx_box_border(gfx_driver, gfx_rect(box.x + 1, box.y + 1, box.xl - 2, box.yl - 2), black); -} - -static void -game_select_display_listbox(gfx_driver_t *gfx_driver, gfx_bitmap_font_t* font, rect_t box, game_t *game_list, int game_count, int first_game, int selected_game) -{ - int max_game; - int pos = 0; - int cur; - int center_x; - gfx_color_t black; - gfx_color_t white; - - center_x = box.x + (box.xl / 2) - 1; - - black = create_color_t(0, 0, 0); - white = create_color_t(255, 255, 255); - - /* list box */ - gfx_box_border(gfx_driver, box, black); - gfx_box_fill(gfx_driver, gfx_rect(box.x + 1, box.y + 1, box.xl - 2, box.yl - 2), white); - gfx_box_line(gfx_driver, gfx_rect(box.x, box.y + 10, box.xl, 0), black); - gfx_box_line(gfx_driver, gfx_rect(box.x, box.y + box.yl - 10, box.xl, 0), black); - - /* list box scroll up */ - gfx_box_line(gfx_driver, gfx_rect(center_x, box.y + 2, 1, 0), black); - gfx_box_line(gfx_driver, gfx_rect(center_x - 1, box.y + 3, 3, 0), black); - gfx_box_line(gfx_driver, gfx_rect(center_x - 2, box.y + 4, 5, 0), black); - gfx_box_line(gfx_driver, gfx_rect(center_x - 3, box.y + 5, 7, 0), black); - gfx_box_fill(gfx_driver, gfx_rect(center_x - 1, box.y + 6, 4, 3), black); - - /* list box scroll up */ - gfx_box_line(gfx_driver, gfx_rect(center_x, box.y + box.yl - 2, 1, 0), black); - gfx_box_line(gfx_driver, gfx_rect(center_x - 1, box.y + box.yl - 3, 3, 0), black); - gfx_box_line(gfx_driver, gfx_rect(center_x - 2, box.y + box.yl - 4, 5, 0), black); - gfx_box_line(gfx_driver, gfx_rect(center_x - 3, box.y + box.yl - 5, 7, 0), black); - gfx_box_fill(gfx_driver, gfx_rect(center_x - 1, box.y + box.yl - 8, 4, 3), black); - - /* list box content */ - max_game = (int)(((double)(box.yl - 21)) / font->line_height); - for (cur = first_game; cur < game_count && (cur - first_game < max_game); cur++, pos++) - { - if (selected_game == cur) - gfx_box_fill(gfx_driver, gfx_rect(box.x + 1, box.y + 11 + (pos * font->line_height), box.xl - 1, font->line_height), black); - - gfx_box_text(gfx_driver, gfx_rect(box.x + 1, box.y + 11 + (pos * font->line_height), box.xl - 1, font->line_height), font, create_pixmap_color_t((selected_game == cur) ? white : black), create_pixmap_color_t((selected_game == cur) ? black : white), game_list[cur].name, 0); - } -} - -static void -game_select_display_window(gfx_driver_t *gfx_driver, gfx_bitmap_font_t* font, rect_t box, const char* title) -{ - gfx_color_t black; - gfx_color_t white; - gfx_color_t grey; - - black = create_color_t(0, 0, 0); - white = create_color_t(255, 255, 255); - grey = create_color_t(85, 85, 85); - - /* window border */ - gfx_box_border(gfx_driver, box, black); - - /* window fill */ - gfx_box_fill(gfx_driver, gfx_rect(box.x + 1, box.y + 1, box.xl - 1, box.yl - 1), white); - - /* window title */ - gfx_box_fill(gfx_driver, gfx_rect(box.x + 1, box.y + 1, box.xl - 1, font->height), grey); - gfx_box_line(gfx_driver, gfx_rect(box.x, box.y + font->height + 1, box.xl, 0), black); - gfx_box_text(gfx_driver, gfx_rect(box.x + 1, box.y + 2, box.xl - 1, font->height - 1), font, create_pixmap_color_t(white), create_pixmap_color_t(grey), title, 1); - - /* window shade */ - gfx_box_line(gfx_driver, gfx_rect(box.x + box.xl + 1, box.y + 3, 0, box.yl - 2), black); - gfx_box_line(gfx_driver, gfx_rect(box.x + 3, box.y + box.yl + 1, box.xl - 2, 0), black); -} - -static void -game_select_draw_bg(gfx_driver_t *gfx_driver, gfx_bitmap_font_t* font) -{ - char title[255]; - gfx_color_t black; - gfx_color_t white; - gfx_color_t blue; - - black = create_color_t(0, 0, 0); - white = create_color_t(255, 255, 255); - blue = create_color_t(0, 0, 170); - - strcpy(title, "FreeSCI"); - strcat(title, " "); - strcat(title, VERSION); - - /* menu bar */ - gfx_box_fill(gfx_driver, gfx_rect(0, 0, 320, font->height), white); - gfx_box_line(gfx_driver, gfx_rect(0, font->height, 320, 0), black); - gfx_box_text(gfx_driver, gfx_rect(0, 1, 320, font->height - 1), font, create_pixmap_color_t(black), create_pixmap_color_t(white), title, 1); - - /* background */ - gfx_box_fill(gfx_driver, gfx_rect(0, 10, 320, 190), blue); -} - -static void -game_select_display_game_list(gfx_driver_t *gfx_driver, gfx_bitmap_font_t* font_default, gfx_bitmap_font_t* font_small, game_t *game_list, int game_count, int first_game, int selected_game, int focus_button) -{ - gfx_color_t black; - gfx_color_t white; - - black = create_color_t(0, 0, 0); - white = create_color_t(255, 255, 255); - - game_select_draw_bg(gfx_driver, font_default); - - /* window */ - game_select_display_window(gfx_driver, font_default, gfx_rect(GS_WINDOW_LEFT, GS_WINDOW_TOP, GS_WINDOW_WIDTH, GS_WINDOW_HEIGHT), "Play a Game"); - - /* window text */ - gfx_box_text(gfx_driver, gfx_rect(GS_WINDOW_LEFT + 6, GS_WINDOW_TOP + 16, GS_WINDOW_WIDTH - 11, 8), font_default, create_pixmap_color_t(black), create_pixmap_color_t(white), "Select the game that you would like", 0); - gfx_box_text(gfx_driver, gfx_rect(GS_WINDOW_LEFT + 6, GS_WINDOW_TOP + 24, GS_WINDOW_WIDTH - 11, 8), font_default, create_pixmap_color_t(black), create_pixmap_color_t(white), "to play.", 0); - - /* window list box */ - game_select_display_listbox(gfx_driver, font_small, gfx_rect(GS_WINDOW_LEFT + 5, GS_WINDOW_TOP + 39, GS_LISTBOX_WIDTH, GS_LISTBOX_HEIGHT), game_list, game_count, first_game, selected_game); - - /* window play button */ - game_select_display_button(gfx_driver, font_default, gfx_rect(GS_WINDOW_LEFT + GS_WINDOW_WIDTH - 69, GS_WINDOW_TOP + 39, 64, font_default->height + 1), "Play", focus_button == GS_BUTTON_PLAY); - - /* window quit button */ - game_select_display_button(gfx_driver, font_default, gfx_rect(GS_WINDOW_LEFT + GS_WINDOW_WIDTH - 69, GS_WINDOW_TOP + 39 + font_default->height + 5, 64, font_default->height + 1), "Quit", focus_button == GS_BUTTON_QUIT); -} - -void -game_select_scan_info(gfx_driver_t *gfx_driver, gfx_bitmap_font_t* font_default, gfx_bitmap_font_t* font_small, char *name, int total) -{ - gfx_color_t black; - gfx_color_t white; - gfx_color_t grey; - gfx_color_t blue; - rect_t box; - int error; - char text[256]; - - black = create_color_t(0, 0, 0); - white = create_color_t(255, 255, 255); - grey = create_color_t(85, 85, 85); - blue = create_color_t(0, 0, 170); - - game_select_draw_bg(gfx_driver, font_default); - - /* window */ - game_select_display_window(gfx_driver, font_default, gfx_rect(GS_SCAN_WINDOW_LEFT, GS_SCAN_WINDOW_TOP, GS_SCAN_WINDOW_WIDTH, GS_SCAN_WINDOW_HEIGHT), "Scanning for Games"); - - /* window text */ - gfx_box_text(gfx_driver, gfx_rect(GS_SCAN_WINDOW_LEFT + 6, GS_SCAN_WINDOW_TOP + 16, GS_SCAN_WINDOW_WIDTH - 11, 8), font_default, create_pixmap_color_t(black), create_pixmap_color_t(white), "Please wait, scanning for games...", 0); - - if (name) { - snprintf(text, 256, "Adding: %s", name); - - gfx_box_text(gfx_driver, gfx_rect(GS_SCAN_WINDOW_LEFT + 6, GS_SCAN_WINDOW_TOP + 32, GS_SCAN_WINDOW_WIDTH - 11, 8), font_default, create_pixmap_color_t(black), create_pixmap_color_t(white), text, 0); - } - - snprintf(text, 256, "Games found: %i", total); - - gfx_box_text(gfx_driver, gfx_rect(GS_SCAN_WINDOW_LEFT + 6, GS_SCAN_WINDOW_TOP + 48, GS_SCAN_WINDOW_WIDTH - 11, 8), font_default, create_pixmap_color_t(black), create_pixmap_color_t(white), text, 0); - - box = gfx_rect(0, 0, 320 * gfx_driver->mode->xfact, 200 * gfx_driver->mode->yfact); - - if ((error = gfx_driver->update(gfx_driver, box, gfx_point(box.x, box.y), GFX_BUFFER_FRONT))) - { - GFXERROR("Error occured while updating region (%d,%d,%d,%d) in buffer %d\n", box.x, box.y, box.xl, box.yl, GFX_BUFFER_BACK); - } -} - -int -game_select_display(gfx_driver_t *gfx_driver, game_t *game_list, int game_count, gfx_bitmap_font_t* font_default, gfx_bitmap_font_t* font_small) -{ - int error; - int cont; - sci_event_t event; - int focus_button = GS_BUTTON_PLAY; - int selected_game = 0; - int first_game = 0; - int max_game; - rect_t box; - - box = gfx_rect(0, 0, 320 * gfx_driver->mode->xfact, 200 * gfx_driver->mode->yfact); - - max_game = (int)(((double)GS_LISTBOX_CONTENTS_HEIGHT) / font_small->line_height); - - game_select_display_game_list(gfx_driver, font_default, font_small, game_list, game_count, first_game, selected_game, focus_button); - if ((error = gfx_driver->update(gfx_driver, box, gfx_point(box.x, box.y), GFX_BUFFER_FRONT))) - { - GFXERROR("Error occured while updating region (%d,%d,%d,%d) in buffer %d\n", box.x, box.y, box.xl, box.yl, GFX_BUFFER_BACK); - } - - cont = 2; - - while (cont) - { - event = game_select_gfxop_get_event(gfx_driver, SCI_EVT_KEYBOARD); - - if (event.type == SCI_EVT_KEYBOARD) - { - if (event.data == SCI_K_ENTER) - { - switch (focus_button) - { - case GS_BUTTON_PLAY: - cont = 0; - break; - case GS_BUTTON_QUIT: - cont = 0; - selected_game = -1; - break; - } - } - else if ((event.buckybits & (SCI_K_TAB | SCI_EVM_RSHIFT)) || (event.buckybits & (SCI_K_TAB | SCI_EVM_LSHIFT))) - { - focus_button--; - - if (focus_button < GS_BUTTON_FIRST) - focus_button = GS_BUTTON_LAST; - - game_select_display_game_list(gfx_driver, font_default, font_small, game_list, game_count, first_game, selected_game, focus_button); - if ((error = gfx_driver->update(gfx_driver, box, gfx_point(box.x, box.y), GFX_BUFFER_FRONT))) - { - GFXERROR("Error occured while updating region (%d,%d,%d,%d) in buffer %d\n", box.x, box.y, box.xl, box.yl, GFX_BUFFER_BACK); - } - } - else if (event.data == SCI_K_TAB) - { - focus_button++; - - if (focus_button > GS_BUTTON_LAST) - focus_button = GS_BUTTON_FIRST; - - game_select_display_game_list(gfx_driver, font_default, font_small, game_list, game_count, first_game, selected_game, focus_button); - if ((error = gfx_driver->update(gfx_driver, box, gfx_point(box.x, box.y), GFX_BUFFER_FRONT))) - { - GFXERROR("Error occured while updating region (%d,%d,%d,%d) in buffer %d\n", box.x, box.y, box.xl, box.yl, GFX_BUFFER_BACK); - } - } - else if (event.data == SCI_K_ESC) - { - cont = 0; - selected_game = -1; - } - else if (event.data == SCI_K_UP) - { - if (selected_game > 0) - { - selected_game--; - - focus_button = GS_BUTTON_PLAY; - - if (selected_game < first_game) - { - first_game = selected_game; - } - - game_select_display_game_list(gfx_driver, font_default, font_small, game_list, game_count, first_game, selected_game, focus_button); - if ((error = gfx_driver->update(gfx_driver, box, gfx_point(box.x, box.y), GFX_BUFFER_FRONT))) - { - GFXERROR("Error occured while updating region (%d,%d,%d,%d) in buffer %d\n", box.x, box.y, box.xl, box.yl, GFX_BUFFER_BACK); - } - } - } - else if (event.data == SCI_K_DOWN) - { - if (selected_game < game_count - 1) - { - selected_game++; - - focus_button = GS_BUTTON_PLAY; - - if (selected_game - first_game + 1 > max_game) - { - first_game = selected_game - max_game + 1; - } - - game_select_display_game_list(gfx_driver, font_default, font_small, game_list, game_count, first_game, selected_game, focus_button); - if ((error = gfx_driver->update(gfx_driver, box, gfx_point(box.x, box.y), GFX_BUFFER_FRONT))) - { - GFXERROR("Error occured while updating region (%d,%d,%d,%d) in buffer %d\n", box.x, box.y, box.xl, box.yl, GFX_BUFFER_BACK); - } - } - } - else if (event.data == SCI_K_PGUP) - { - selected_game -= (max_game - 1); - if (selected_game < 0) - { - selected_game = 0; - } - - focus_button = GS_BUTTON_PLAY; - - if (selected_game < first_game) - { - first_game = selected_game; - } - - game_select_display_game_list(gfx_driver, font_default, font_small, game_list, game_count, first_game, selected_game, focus_button); - if ((error = gfx_driver->update(gfx_driver, box, gfx_point(box.x, box.y), GFX_BUFFER_FRONT))) - { - GFXERROR("Error occured while updating region (%d,%d,%d,%d) in buffer %d\n", box.x, box.y, box.xl, box.yl, GFX_BUFFER_BACK); - } - } - else if (event.data == SCI_K_PGDOWN) - { - selected_game += max_game - 1; - if (selected_game >= game_count) - { - selected_game = game_count - 1; - } - - focus_button = GS_BUTTON_PLAY; - - if (selected_game - first_game + 1 > max_game) - { - first_game = selected_game - max_game + 1; - } - - game_select_display_game_list(gfx_driver, font_default, font_small, game_list, game_count, first_game, selected_game, focus_button); - if ((error = gfx_driver->update(gfx_driver, box, gfx_point(box.x, box.y), GFX_BUFFER_FRONT))) - { - GFXERROR("Error occured while updating region (%d,%d,%d,%d) in buffer %d\n", box.x, box.y, box.xl, box.yl, GFX_BUFFER_BACK); - } - } - } - - game_select_gfxop_usleep(gfx_driver, 25000); - } - - return selected_game; -} diff --git a/engines/sci/module.mk b/engines/sci/module.mk index 3d2ec96909..4984e6c4e1 100644 --- a/engines/sci/module.mk +++ b/engines/sci/module.mk @@ -95,11 +95,6 @@ MODULE_OBJS = \ CXXFLAGS += -Wno-variadic-macros CPPFLAGS += -DSCUMMVM -# Build .c files as C++ -%.o: %.c - $(MKDIR) $(*D)/$(DEPDIR) - $(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d",-MQ,"$@",-MP $(CXXFLAGS) $(CPPFLAGS) -c $(<) -o $*.o - # Generate savegame.cpp $(srcdir)/engines/sci/engine/savegame.c: $(srcdir)/engines/sci/engine/savegame.cfsml cat $< | perl $(srcdir)/engines/sci/engine/cfsml.pl -f savegame.cfsml > $@ diff --git a/engines/sci/scicore/aatree.c b/engines/sci/scicore/aatree.cpp index 7bbef8c43b..7bbef8c43b 100644 --- a/engines/sci/scicore/aatree.c +++ b/engines/sci/scicore/aatree.cpp diff --git a/engines/sci/scicore/console.c b/engines/sci/scicore/console.cpp index 0aba9bd019..0aba9bd019 100644 --- a/engines/sci/scicore/console.c +++ b/engines/sci/scicore/console.cpp diff --git a/engines/sci/scicore/decompress0.c b/engines/sci/scicore/decompress0.cpp index 6dba2d5299..6dba2d5299 100644 --- a/engines/sci/scicore/decompress0.c +++ b/engines/sci/scicore/decompress0.cpp diff --git a/engines/sci/scicore/decompress01.c b/engines/sci/scicore/decompress01.cpp index e08e98f95b..e08e98f95b 100644 --- a/engines/sci/scicore/decompress01.c +++ b/engines/sci/scicore/decompress01.cpp diff --git a/engines/sci/scicore/decompress1.c b/engines/sci/scicore/decompress1.cpp index be88d775aa..be88d775aa 100644 --- a/engines/sci/scicore/decompress1.c +++ b/engines/sci/scicore/decompress1.cpp diff --git a/engines/sci/scicore/decompress11.c b/engines/sci/scicore/decompress11.cpp index 88f3a2795a..88f3a2795a 100644 --- a/engines/sci/scicore/decompress11.c +++ b/engines/sci/scicore/decompress11.cpp diff --git a/engines/sci/scicore/exe.c b/engines/sci/scicore/exe.cpp index 4e97f80ed5..4e97f80ed5 100644 --- a/engines/sci/scicore/exe.c +++ b/engines/sci/scicore/exe.cpp diff --git a/engines/sci/scicore/exe_lzexe.c b/engines/sci/scicore/exe_lzexe.cpp index 4445ed8df9..4445ed8df9 100644 --- a/engines/sci/scicore/exe_lzexe.c +++ b/engines/sci/scicore/exe_lzexe.cpp diff --git a/engines/sci/scicore/exe_raw.c b/engines/sci/scicore/exe_raw.cpp index 9a0dc5f742..9a0dc5f742 100644 --- a/engines/sci/scicore/exe_raw.c +++ b/engines/sci/scicore/exe_raw.cpp diff --git a/engines/sci/scicore/fnmatch.c b/engines/sci/scicore/fnmatch.cpp index a3b5a0ad69..a3b5a0ad69 100644 --- a/engines/sci/scicore/fnmatch.c +++ b/engines/sci/scicore/fnmatch.cpp diff --git a/engines/sci/scicore/hashmap.c b/engines/sci/scicore/hashmap.cpp index 1b2b6af5c1..1b2b6af5c1 100644 --- a/engines/sci/scicore/hashmap.c +++ b/engines/sci/scicore/hashmap.cpp diff --git a/engines/sci/scicore/int_hashmap.c b/engines/sci/scicore/int_hashmap.cpp index d170afd3d5..d170afd3d5 100644 --- a/engines/sci/scicore/int_hashmap.c +++ b/engines/sci/scicore/int_hashmap.cpp diff --git a/engines/sci/scicore/modules.c b/engines/sci/scicore/modules.cpp index f63d4e4aa0..f63d4e4aa0 100644 --- a/engines/sci/scicore/modules.c +++ b/engines/sci/scicore/modules.cpp diff --git a/engines/sci/scicore/old_objects.c b/engines/sci/scicore/old_objects.cpp index 8408373537..8408373537 100644 --- a/engines/sci/scicore/old_objects.c +++ b/engines/sci/scicore/old_objects.cpp diff --git a/engines/sci/scicore/reg_t_hashmap.c b/engines/sci/scicore/reg_t_hashmap.cpp index bee5a8bcf2..bee5a8bcf2 100644 --- a/engines/sci/scicore/reg_t_hashmap.c +++ b/engines/sci/scicore/reg_t_hashmap.cpp diff --git a/engines/sci/scicore/resource.c b/engines/sci/scicore/resource.cpp index 026bd76834..026bd76834 100644 --- a/engines/sci/scicore/resource.c +++ b/engines/sci/scicore/resource.cpp diff --git a/engines/sci/scicore/resource_map.c b/engines/sci/scicore/resource_map.cpp index 48ea54cb3a..48ea54cb3a 100644 --- a/engines/sci/scicore/resource_map.c +++ b/engines/sci/scicore/resource_map.cpp diff --git a/engines/sci/scicore/resource_patch.c b/engines/sci/scicore/resource_patch.cpp index 037b082476..037b082476 100644 --- a/engines/sci/scicore/resource_patch.c +++ b/engines/sci/scicore/resource_patch.cpp diff --git a/engines/sci/scicore/resourcecheck.c b/engines/sci/scicore/resourcecheck.cpp index f4c731b01f..f4c731b01f 100644 --- a/engines/sci/scicore/resourcecheck.c +++ b/engines/sci/scicore/resourcecheck.cpp diff --git a/engines/sci/scicore/sci_memory.c b/engines/sci/scicore/sci_memory.cpp index 4d0395d9dd..4d0395d9dd 100644 --- a/engines/sci/scicore/sci_memory.c +++ b/engines/sci/scicore/sci_memory.cpp diff --git a/engines/sci/scicore/script.c b/engines/sci/scicore/script.cpp index b3d977e5ad..b3d977e5ad 100644 --- a/engines/sci/scicore/script.c +++ b/engines/sci/scicore/script.cpp diff --git a/engines/sci/scicore/tools.c b/engines/sci/scicore/tools.cpp index 8167da33b4..8167da33b4 100644 --- a/engines/sci/scicore/tools.c +++ b/engines/sci/scicore/tools.cpp diff --git a/engines/sci/scicore/versions.c b/engines/sci/scicore/versions.cpp index 6b6e1ef0ee..6b6e1ef0ee 100644 --- a/engines/sci/scicore/versions.c +++ b/engines/sci/scicore/versions.cpp diff --git a/engines/sci/scicore/vocab.c b/engines/sci/scicore/vocab.cpp index c712fdf4b5..c712fdf4b5 100644 --- a/engines/sci/scicore/vocab.c +++ b/engines/sci/scicore/vocab.cpp diff --git a/engines/sci/scicore/vocab_debug.c b/engines/sci/scicore/vocab_debug.cpp index 6e22320ee2..6e22320ee2 100644 --- a/engines/sci/scicore/vocab_debug.c +++ b/engines/sci/scicore/vocab_debug.cpp diff --git a/engines/sci/sfx/adlib.c b/engines/sci/sfx/adlib.cpp index c84a087820..c84a087820 100644 --- a/engines/sci/sfx/adlib.c +++ b/engines/sci/sfx/adlib.cpp diff --git a/engines/sci/sfx/core.c b/engines/sci/sfx/core.cpp index 786f80ab45..786f80ab45 100644 --- a/engines/sci/sfx/core.c +++ b/engines/sci/sfx/core.cpp diff --git a/engines/sci/sfx/device/alsa-midi.c b/engines/sci/sfx/device/alsa-midi.cpp index 67ca995916..67ca995916 100644 --- a/engines/sci/sfx/device/alsa-midi.c +++ b/engines/sci/sfx/device/alsa-midi.cpp diff --git a/engines/sci/sfx/device/camd-midi.c b/engines/sci/sfx/device/camd-midi.cpp index 3af12f196e..3af12f196e 100644 --- a/engines/sci/sfx/device/camd-midi.c +++ b/engines/sci/sfx/device/camd-midi.cpp diff --git a/engines/sci/sfx/device/devices.c b/engines/sci/sfx/device/devices.cpp index 2e54b1df4f..2e54b1df4f 100644 --- a/engines/sci/sfx/device/devices.c +++ b/engines/sci/sfx/device/devices.cpp diff --git a/engines/sci/sfx/device/unixraw-midi.c b/engines/sci/sfx/device/unixraw-midi.cpp index 69ce3890fc..69ce3890fc 100644 --- a/engines/sci/sfx/device/unixraw-midi.c +++ b/engines/sci/sfx/device/unixraw-midi.cpp diff --git a/engines/sci/sfx/iterator.c b/engines/sci/sfx/iterator.cpp index 78bbdf816b..78bbdf816b 100644 --- a/engines/sci/sfx/iterator.c +++ b/engines/sci/sfx/iterator.cpp diff --git a/engines/sci/sfx/lists/gm_patches.c b/engines/sci/sfx/lists/gm_patches.cpp index b959a87461..b959a87461 100644 --- a/engines/sci/sfx/lists/gm_patches.c +++ b/engines/sci/sfx/lists/gm_patches.cpp diff --git a/engines/sci/sfx/lists/mt32_timbres.c b/engines/sci/sfx/lists/mt32_timbres.cpp index 776ff5dbb7..776ff5dbb7 100644 --- a/engines/sci/sfx/lists/mt32_timbres.c +++ b/engines/sci/sfx/lists/mt32_timbres.cpp diff --git a/engines/sci/sfx/mixer/dc.c b/engines/sci/sfx/mixer/dc.cpp index 52b3ab5cbb..52b3ab5cbb 100644 --- a/engines/sci/sfx/mixer/dc.c +++ b/engines/sci/sfx/mixer/dc.cpp diff --git a/engines/sci/sfx/mixer/mixers.c b/engines/sci/sfx/mixer/mixers.cpp index 997525f173..997525f173 100644 --- a/engines/sci/sfx/mixer/mixers.c +++ b/engines/sci/sfx/mixer/mixers.cpp diff --git a/engines/sci/sfx/mixer/soft.c b/engines/sci/sfx/mixer/soft.cpp index d71567a209..d71567a209 100644 --- a/engines/sci/sfx/mixer/soft.c +++ b/engines/sci/sfx/mixer/soft.cpp diff --git a/engines/sci/sfx/mixer/test.c b/engines/sci/sfx/mixer/test.cpp index 20b3e952e1..20b3e952e1 100644 --- a/engines/sci/sfx/mixer/test.c +++ b/engines/sci/sfx/mixer/test.cpp diff --git a/engines/sci/sfx/pcm-iterator.c b/engines/sci/sfx/pcm-iterator.cpp index cad4bd50f9..cad4bd50f9 100644 --- a/engines/sci/sfx/pcm-iterator.c +++ b/engines/sci/sfx/pcm-iterator.cpp diff --git a/engines/sci/sfx/pcm_device/alsa.c b/engines/sci/sfx/pcm_device/alsa.cpp index 26d4c35044..26d4c35044 100644 --- a/engines/sci/sfx/pcm_device/alsa.c +++ b/engines/sci/sfx/pcm_device/alsa.cpp diff --git a/engines/sci/sfx/pcm_device/audbuf_test.c b/engines/sci/sfx/pcm_device/audbuf_test.cpp index 216aa9079e..216aa9079e 100644 --- a/engines/sci/sfx/pcm_device/audbuf_test.c +++ b/engines/sci/sfx/pcm_device/audbuf_test.cpp diff --git a/engines/sci/sfx/pcm_device/audiobuf.c b/engines/sci/sfx/pcm_device/audiobuf.cpp index fa23708ce4..fa23708ce4 100644 --- a/engines/sci/sfx/pcm_device/audiobuf.c +++ b/engines/sci/sfx/pcm_device/audiobuf.cpp diff --git a/engines/sci/sfx/pcm_device/pcm_devices.c b/engines/sci/sfx/pcm_device/pcm_devices.cpp index a29de8896f..a29de8896f 100644 --- a/engines/sci/sfx/pcm_device/pcm_devices.c +++ b/engines/sci/sfx/pcm_device/pcm_devices.cpp diff --git a/engines/sci/sfx/pcm_device/sdl.c b/engines/sci/sfx/pcm_device/sdl.cpp index bd125835cb..bd125835cb 100644 --- a/engines/sci/sfx/pcm_device/sdl.c +++ b/engines/sci/sfx/pcm_device/sdl.cpp diff --git a/engines/sci/sfx/player/players.c b/engines/sci/sfx/player/players.cpp index eafff46bc3..eafff46bc3 100644 --- a/engines/sci/sfx/player/players.c +++ b/engines/sci/sfx/player/players.cpp diff --git a/engines/sci/sfx/player/polled.c b/engines/sci/sfx/player/polled.cpp index 2a4c23fa97..2a4c23fa97 100644 --- a/engines/sci/sfx/player/polled.c +++ b/engines/sci/sfx/player/polled.cpp diff --git a/engines/sci/sfx/player/realtime.c b/engines/sci/sfx/player/realtime.cpp index d3fbae5800..d3fbae5800 100644 --- a/engines/sci/sfx/player/realtime.c +++ b/engines/sci/sfx/player/realtime.cpp diff --git a/engines/sci/sfx/seq/gm.c b/engines/sci/sfx/seq/gm.cpp index 4889e76ea8..4889e76ea8 100644 --- a/engines/sci/sfx/seq/gm.c +++ b/engines/sci/sfx/seq/gm.cpp diff --git a/engines/sci/sfx/seq/instrument-map.c b/engines/sci/sfx/seq/instrument-map.cpp index 0d829a0582..0d829a0582 100644 --- a/engines/sci/sfx/seq/instrument-map.c +++ b/engines/sci/sfx/seq/instrument-map.cpp diff --git a/engines/sci/sfx/seq/map-mt32-to-gm.c b/engines/sci/sfx/seq/map-mt32-to-gm.cpp index bcaf3556f1..bcaf3556f1 100644 --- a/engines/sci/sfx/seq/map-mt32-to-gm.c +++ b/engines/sci/sfx/seq/map-mt32-to-gm.cpp diff --git a/engines/sci/sfx/seq/mt32.c b/engines/sci/sfx/seq/mt32.cpp index b71d474927..b71d474927 100644 --- a/engines/sci/sfx/seq/mt32.c +++ b/engines/sci/sfx/seq/mt32.cpp diff --git a/engines/sci/sfx/seq/oss-adlib.c b/engines/sci/sfx/seq/oss-adlib.cpp index 0406556f56..0406556f56 100644 --- a/engines/sci/sfx/seq/oss-adlib.c +++ b/engines/sci/sfx/seq/oss-adlib.cpp diff --git a/engines/sci/sfx/seq/sequencers.c b/engines/sci/sfx/seq/sequencers.cpp index 3ba7f25a46..3ba7f25a46 100644 --- a/engines/sci/sfx/seq/sequencers.c +++ b/engines/sci/sfx/seq/sequencers.cpp diff --git a/engines/sci/sfx/softseq/SN76496.c b/engines/sci/sfx/softseq/SN76496.cpp index 6ecd72bf9e..6ecd72bf9e 100644 --- a/engines/sci/sfx/softseq/SN76496.c +++ b/engines/sci/sfx/softseq/SN76496.cpp diff --git a/engines/sci/sfx/softseq/amiga.c b/engines/sci/sfx/softseq/amiga.cpp index 8595899718..8595899718 100644 --- a/engines/sci/sfx/softseq/amiga.c +++ b/engines/sci/sfx/softseq/amiga.cpp diff --git a/engines/sci/sfx/softseq/fluidsynth.c b/engines/sci/sfx/softseq/fluidsynth.cpp index a44d75e5bd..a44d75e5bd 100644 --- a/engines/sci/sfx/softseq/fluidsynth.c +++ b/engines/sci/sfx/softseq/fluidsynth.cpp diff --git a/engines/sci/sfx/softseq/opl2.c b/engines/sci/sfx/softseq/opl2.cpp index c19de1388a..c19de1388a 100644 --- a/engines/sci/sfx/softseq/opl2.c +++ b/engines/sci/sfx/softseq/opl2.cpp diff --git a/engines/sci/sfx/softseq/pcspeaker.c b/engines/sci/sfx/softseq/pcspeaker.cpp index 727b1f9e5a..727b1f9e5a 100644 --- a/engines/sci/sfx/softseq/pcspeaker.c +++ b/engines/sci/sfx/softseq/pcspeaker.cpp diff --git a/engines/sci/sfx/softseq/softsequencers.c b/engines/sci/sfx/softseq/softsequencers.cpp index d0f544190e..d0f544190e 100644 --- a/engines/sci/sfx/softseq/softsequencers.c +++ b/engines/sci/sfx/softseq/softsequencers.cpp diff --git a/engines/sci/sfx/songlib.c b/engines/sci/sfx/songlib.cpp index 57475e82db..57475e82db 100644 --- a/engines/sci/sfx/songlib.c +++ b/engines/sci/sfx/songlib.cpp diff --git a/engines/sci/sfx/test-iterator.c b/engines/sci/sfx/test-iterator.cpp index 1ecce673f9..1ecce673f9 100644 --- a/engines/sci/sfx/test-iterator.c +++ b/engines/sci/sfx/test-iterator.cpp diff --git a/engines/sci/sfx/time.c b/engines/sci/sfx/time.cpp index 0063b8ef65..0063b8ef65 100644 --- a/engines/sci/sfx/time.c +++ b/engines/sci/sfx/time.cpp diff --git a/engines/sci/sfx/timer/pthread.c b/engines/sci/sfx/timer/pthread.cpp index 074adbe08f..074adbe08f 100644 --- a/engines/sci/sfx/timer/pthread.c +++ b/engines/sci/sfx/timer/pthread.cpp diff --git a/engines/sci/sfx/timer/sigalrm.c b/engines/sci/sfx/timer/sigalrm.cpp index 40cc2872e1..40cc2872e1 100644 --- a/engines/sci/sfx/timer/sigalrm.c +++ b/engines/sci/sfx/timer/sigalrm.cpp diff --git a/engines/sci/sfx/timer/timers.c b/engines/sci/sfx/timer/timers.cpp index 353ae11ca7..353ae11ca7 100644 --- a/engines/sci/sfx/timer/timers.c +++ b/engines/sci/sfx/timer/timers.cpp diff --git a/engines/sci/sfx/timetest.c b/engines/sci/sfx/timetest.cpp index 80d9ad1b78..80d9ad1b78 100644 --- a/engines/sci/sfx/timetest.c +++ b/engines/sci/sfx/timetest.cpp diff --git a/engines/sci/tools/bdf.c b/engines/sci/tools/bdf.cpp index 5d97a51692..5d97a51692 100644 --- a/engines/sci/tools/bdf.c +++ b/engines/sci/tools/bdf.cpp diff --git a/engines/sci/tools/bdfgname.c b/engines/sci/tools/bdfgname.cpp index 200202562e..200202562e 100644 --- a/engines/sci/tools/bdfgname.c +++ b/engines/sci/tools/bdfgname.cpp diff --git a/engines/sci/tools/bdfgrid.c b/engines/sci/tools/bdfgrid.cpp index 4bbd022d1e..4bbd022d1e 100644 --- a/engines/sci/tools/bdfgrid.c +++ b/engines/sci/tools/bdfgrid.cpp diff --git a/engines/sci/tools/bdftofont.c b/engines/sci/tools/bdftofont.cpp index 4e7d9ddb65..4e7d9ddb65 100644 --- a/engines/sci/tools/bdftofont.c +++ b/engines/sci/tools/bdftofont.cpp diff --git a/engines/sci/tools/classes.c b/engines/sci/tools/classes.cpp index cdb8c93f9f..cdb8c93f9f 100644 --- a/engines/sci/tools/classes.c +++ b/engines/sci/tools/classes.cpp diff --git a/engines/sci/tools/fonttoc.c b/engines/sci/tools/fonttoc.cpp index f39f2601e5..f39f2601e5 100644 --- a/engines/sci/tools/fonttoc.c +++ b/engines/sci/tools/fonttoc.cpp diff --git a/engines/sci/tools/listwords.c b/engines/sci/tools/listwords.cpp index 8e63aada37..8e63aada37 100644 --- a/engines/sci/tools/listwords.c +++ b/engines/sci/tools/listwords.cpp diff --git a/engines/sci/tools/musicplayer.c b/engines/sci/tools/musicplayer.cpp index 34024ddf15..34024ddf15 100644 --- a/engines/sci/tools/musicplayer.c +++ b/engines/sci/tools/musicplayer.cpp diff --git a/engines/sci/tools/scidisasm.c b/engines/sci/tools/scidisasm.cpp index dc5e9f8d07..dc5e9f8d07 100644 --- a/engines/sci/tools/scidisasm.c +++ b/engines/sci/tools/scidisasm.cpp diff --git a/engines/sci/tools/scipack.c b/engines/sci/tools/scipack.cpp index a5b7a8d8a1..a5b7a8d8a1 100644 --- a/engines/sci/tools/scipack.c +++ b/engines/sci/tools/scipack.cpp diff --git a/engines/sci/tools/sciunpack.c b/engines/sci/tools/sciunpack.cpp index e5b3b39a2e..e5b3b39a2e 100644 --- a/engines/sci/tools/sciunpack.c +++ b/engines/sci/tools/sciunpack.cpp diff --git a/engines/sci/tools/scriptdump.c b/engines/sci/tools/scriptdump.cpp index 6efe150ba2..6efe150ba2 100644 --- a/engines/sci/tools/scriptdump.c +++ b/engines/sci/tools/scriptdump.cpp diff --git a/engines/sci/tools/vocabdump.c b/engines/sci/tools/vocabdump.cpp index 5dcf72a09b..5dcf72a09b 100644 --- a/engines/sci/tools/vocabdump.c +++ b/engines/sci/tools/vocabdump.cpp |