aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Matsuoka2001-11-06 10:13:32 +0000
committerClaudio Matsuoka2001-11-06 10:13:32 +0000
commit4ff9d1321b78197a2a9ad4c833a890b694a832d5 (patch)
tree6459e09514c035fb4643bc309a792f572877aefb
parent65fc6958d7fbd6af1720d2156951e79e89d67d1a (diff)
downloadscummvm-rg350-4ff9d1321b78197a2a9ad4c833a890b694a832d5.tar.gz
scummvm-rg350-4ff9d1321b78197a2a9ad4c833a890b694a832d5.tar.bz2
scummvm-rg350-4ff9d1321b78197a2a9ad4c833a890b694a832d5.zip
Merged Vasyl Tsvirkunov's PocketPC port.
svn-id: r3459
-rw-r--r--PocketSCUMM/PocketSCUMM.vcobin0 -> 50688 bytes
-rw-r--r--PocketSCUMM/PocketSCUMM.vcp2697
-rw-r--r--PocketSCUMM/missing/assert.h3
-rw-r--r--PocketSCUMM/missing/conio.h2
-rw-r--r--PocketSCUMM/missing/dir.h1
-rw-r--r--PocketSCUMM/missing/direct.h1
-rw-r--r--PocketSCUMM/missing/dirent.h52
-rw-r--r--PocketSCUMM/missing/errno.h1
-rw-r--r--PocketSCUMM/missing/fcntl.h1
-rw-r--r--PocketSCUMM/missing/io.h15
-rw-r--r--PocketSCUMM/missing/missing.cpp368
-rw-r--r--PocketSCUMM/missing/signal.h3
-rw-r--r--PocketSCUMM/missing/time.h24
-rw-r--r--PocketSCUMM/missing/unistd.h1
-rw-r--r--PocketSCUMM/pocketpc.cpp265
-rw-r--r--PocketSCUMM/screen.cpp319
-rw-r--r--PocketSCUMM/screen.h24
-rw-r--r--PocketSCUMM/sdl.h2
18 files changed, 3779 insertions, 0 deletions
diff --git a/PocketSCUMM/PocketSCUMM.vco b/PocketSCUMM/PocketSCUMM.vco
new file mode 100644
index 0000000000..ddb5ae8dff
--- /dev/null
+++ b/PocketSCUMM/PocketSCUMM.vco
Binary files differ
diff --git a/PocketSCUMM/PocketSCUMM.vcp b/PocketSCUMM/PocketSCUMM.vcp
new file mode 100644
index 0000000000..3900774c1f
--- /dev/null
+++ b/PocketSCUMM/PocketSCUMM.vcp
@@ -0,0 +1,2697 @@
+# Microsoft eMbedded Visual Tools Project File - Name="PocketSCUMM" - Package Owner=<4>
+# Microsoft eMbedded Visual Tools Generated Build File, Format Version 6.02
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (WCE ARM) Application" 0x8501
+# TARGTYPE "Win32 (WCE x86em) Application" 0x7f01
+# TARGTYPE "Win32 (WCE SH3) Application" 0x8101
+# TARGTYPE "Win32 (WCE SH4) Application" 0x8601
+# TARGTYPE "Win32 (WCE MIPS) Application" 0x8201
+
+CFG=PocketSCUMM - Win32 (WCE MIPS) Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "PocketSCUMM.vcn".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "PocketSCUMM.vcn" CFG="PocketSCUMM - Win32 (WCE MIPS) Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "PocketSCUMM - Win32 (WCE MIPS) Release" (based on "Win32 (WCE MIPS) Application")
+!MESSAGE "PocketSCUMM - Win32 (WCE MIPS) Debug" (based on "Win32 (WCE MIPS) Application")
+!MESSAGE "PocketSCUMM - Win32 (WCE SH4) Release" (based on "Win32 (WCE SH4) Application")
+!MESSAGE "PocketSCUMM - Win32 (WCE SH4) Debug" (based on "Win32 (WCE SH4) Application")
+!MESSAGE "PocketSCUMM - Win32 (WCE SH3) Release" (based on "Win32 (WCE SH3) Application")
+!MESSAGE "PocketSCUMM - Win32 (WCE SH3) Debug" (based on "Win32 (WCE SH3) Application")
+!MESSAGE "PocketSCUMM - Win32 (WCE ARM) Release" (based on "Win32 (WCE ARM) Application")
+!MESSAGE "PocketSCUMM - Win32 (WCE ARM) Debug" (based on "Win32 (WCE ARM) Application")
+!MESSAGE "PocketSCUMM - Win32 (WCE x86em) Release" (based on "Win32 (WCE x86em) Application")
+!MESSAGE "PocketSCUMM - Win32 (WCE x86em) Debug" (based on "Win32 (WCE x86em) Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+# PROP ATL_Project 2
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "MIPSRel"
+# PROP BASE Intermediate_Dir "MIPSRel"
+# PROP BASE CPU_ID "{D6519010-710F-11D3-99F2-00105A0DF099}"
+# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "MIPSRel"
+# PROP Intermediate_Dir "MIPSRel"
+# PROP CPU_ID "{D6519010-710F-11D3-99F2-00105A0DF099}"
+# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP Target_Dir ""
+RSC=rc.exe
+# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "MIPS" /d "_MIPS_" /r
+# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "MIPS" /d "_MIPS_" /r
+CPP=clmips.exe
+# ADD BASE CPP /nologo /W3 /GX- /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /YX /Oxs /M$(CECrtMT) /c
+# ADD CPP /nologo /W3 /GX- /I "." /I "missing" /I ".." /I "gapi/inc" /D "MIPS" /D "_MIPS_" /D "NDEBUG" /D "WIN32" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "SCUMM_NEED_ALIGNMENT" /YX /Oxs /M$(CECrtMT) /c
+MTL=midl.exe
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:MIPS
+# ADD LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:MIPS
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "MIPSDbg"
+# PROP BASE Intermediate_Dir "MIPSDbg"
+# PROP BASE CPU_ID "{D6519010-710F-11D3-99F2-00105A0DF099}"
+# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "MIPSDbg"
+# PROP Intermediate_Dir "MIPSDbg"
+# PROP CPU_ID "{D6519010-710F-11D3-99F2-00105A0DF099}"
+# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP Target_Dir ""
+RSC=rc.exe
+# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "MIPS" /d "_MIPS_" /r
+# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "MIPS" /d "_MIPS_" /r
+CPP=clmips.exe
+# ADD BASE CPP /nologo /W3 /GX- /Zi /Od /D "DEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /YX /M$(CECrtMTDebug) /c
+# ADD CPP /nologo /W3 /GX- /Zi /Od /I "." /I "missing" /I ".." /I "gapi/inc" /D "DEBUG" /D "MIPS" /D "_MIPS_" /D "WIN32" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "SCUMM_NEED_ALIGNMENT" /YX /M$(CECrtMTDebug) /c
+MTL=midl.exe
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:MIPS
+# ADD LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:MIPS
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "SH4Rel"
+# PROP BASE Intermediate_Dir "SH4Rel"
+# PROP BASE CPU_ID "{D6519021-710F-11D3-99F2-00105A0DF099}"
+# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "SH4Rel"
+# PROP Intermediate_Dir "SH4Rel"
+# PROP CPU_ID "{D6519021-710F-11D3-99F2-00105A0DF099}"
+# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP Target_Dir ""
+RSC=rc.exe
+# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "NDEBUG" /d "UNICODE" /d "_UNICODE" /d "$(CePlatform)" /d "SHx" /d "SH4" /d "_SH4_" /r
+# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "NDEBUG" /d "UNICODE" /d "_UNICODE" /d "$(CePlatform)" /d "SHx" /d "SH4" /d "_SH4_" /r
+CPP=shcl.exe
+# ADD BASE CPP /nologo /W3 /GX- /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /YX /Qsh4 /Oxs /M$(CECrtMT) /c
+# ADD CPP /nologo /W3 /GX- /I "." /I "missing" /I ".." /I "gapi/inc" /D "SHx" /D "SH4" /D "_SH4_" /D "NDEBUG" /D "WIN32" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "SCUMM_NEED_ALIGNMENT" /YX /Qsh4 /Oxs /M$(CECrtMT) /c
+MTL=midl.exe
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:SH4
+# ADD LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:SH4
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "SH4Dbg"
+# PROP BASE Intermediate_Dir "SH4Dbg"
+# PROP BASE CPU_ID "{D6519021-710F-11D3-99F2-00105A0DF099}"
+# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "SH4Dbg"
+# PROP Intermediate_Dir "SH4Dbg"
+# PROP CPU_ID "{D6519021-710F-11D3-99F2-00105A0DF099}"
+# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP Target_Dir ""
+RSC=rc.exe
+# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "DEBUG" /d "UNICODE" /d "_UNICODE" /d "$(CePlatform)" /d "SHx" /d "SH4" /d "_SH4_" /r
+# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "DEBUG" /d "UNICODE" /d "_UNICODE" /d "$(CePlatform)" /d "SHx" /d "SH4" /d "_SH4_" /r
+CPP=shcl.exe
+# ADD BASE CPP /nologo /W3 /GX- /Zi /Od /D "DEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /YX /Qsh4 /M$(CECrtMTDebug) /c
+# ADD CPP /nologo /W3 /GX- /Zi /Od /I "." /I "missing" /I ".." /I "gapi/inc" /D "DEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D "WIN32" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "SCUMM_NEED_ALIGNMENT" /YX /Qsh4 /M$(CECrtMTDebug) /c
+MTL=midl.exe
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:SH4
+# ADD LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:SH4
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "SH3Rel"
+# PROP BASE Intermediate_Dir "SH3Rel"
+# PROP BASE CPU_ID "{D6519020-710F-11D3-99F2-00105A0DF099}"
+# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "SH3Rel"
+# PROP Intermediate_Dir "SH3Rel"
+# PROP CPU_ID "{D6519020-710F-11D3-99F2-00105A0DF099}"
+# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP Target_Dir ""
+RSC=rc.exe
+# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "SHx" /d "SH3" /d "_SH3_" /r
+# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "SHx" /d "SH3" /d "_SH3_" /r
+CPP=shcl.exe
+# ADD BASE CPP /nologo /W3 /GX- /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /YX /Oxs /M$(CECrtMT) /c
+# ADD CPP /nologo /W3 /GX- /I "." /I "missing" /I ".." /I "gapi/inc" /D "SHx" /D "SH3" /D "_SH3_" /D "NDEBUG" /D "WIN32" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "SCUMM_NEED_ALIGNMENT" /YX /Oxs /M$(CECrtMT) /c
+MTL=midl.exe
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:SH3
+# ADD LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:SH3
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "SH3Dbg"
+# PROP BASE Intermediate_Dir "SH3Dbg"
+# PROP BASE CPU_ID "{D6519020-710F-11D3-99F2-00105A0DF099}"
+# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "SH3Dbg"
+# PROP Intermediate_Dir "SH3Dbg"
+# PROP CPU_ID "{D6519020-710F-11D3-99F2-00105A0DF099}"
+# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP Target_Dir ""
+RSC=rc.exe
+# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "SHx" /d "SH3" /d "_SH3_" /r
+# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "SHx" /d "SH3" /d "_SH3_" /r
+CPP=shcl.exe
+# ADD BASE CPP /nologo /W3 /GX- /Zi /Od /D "DEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /YX /M$(CECrtMTDebug) /c
+# ADD CPP /nologo /W3 /GX- /Zi /Od /I "." /I "missing" /I ".." /I "gapi/inc" /D "DEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D "WIN32" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "SCUMM_NEED_ALIGNMENT" /YX /M$(CECrtMTDebug) /c
+MTL=midl.exe
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:SH3
+# ADD LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:SH3
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "ARMRel"
+# PROP BASE Intermediate_Dir "ARMRel"
+# PROP BASE CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}"
+# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "ARMRel"
+# PROP Intermediate_Dir "ARMRel"
+# PROP CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}"
+# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP Target_Dir ""
+RSC=rc.exe
+# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r
+# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r
+CPP=clarm.exe
+# ADD BASE CPP /nologo /W3 /GX- /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /YX /Oxs /M$(CECrtMT) /c
+# ADD CPP /nologo /W3 /GX- /I "." /I "missing" /I ".." /I "gapi/inc" /D "ARM" /D "_ARM_" /D "NDEBUG" /D "WIN32" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "SCUMM_NEED_ALIGNMENT" /YX /Oxs /M$(CECrtMT) /c
+MTL=midl.exe
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM
+# ADD LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "ARMDbg"
+# PROP BASE Intermediate_Dir "ARMDbg"
+# PROP BASE CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}"
+# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "ARMDbg"
+# PROP Intermediate_Dir "ARMDbg"
+# PROP CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}"
+# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP Target_Dir ""
+RSC=rc.exe
+# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r
+# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r
+CPP=clarm.exe
+# ADD BASE CPP /nologo /W3 /GX- /Zi /Od /D "DEBUG" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /YX /M$(CECrtMTDebug) /c
+# ADD CPP /nologo /W3 /GX- /Zi /Od /I "." /I "missing" /I ".." /I "gapi/inc" /D "DEBUG" /D "ARM" /D "_ARM_" /D "WIN32" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "SCUMM_NEED_ALIGNMENT" /YX /M$(CECrtMTDebug) /c
+MTL=midl.exe
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM
+# ADD LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "X86EMRel"
+# PROP BASE Intermediate_Dir "X86EMRel"
+# PROP BASE CPU_ID "{D6518FF4-710F-11D3-99F2-00105A0DF099}"
+# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "X86EMRel"
+# PROP Intermediate_Dir "X86EMRel"
+# PROP CPU_ID "{D6518FF4-710F-11D3-99F2-00105A0DF099}"
+# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP Target_Dir ""
+RSC=rc.exe
+# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "i486" /r
+# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "i486" /r
+CPP=cl.exe
+# ADD BASE CPP /nologo /W3 /GX- /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "i486" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "NDEBUG" /YX /Gz /Oxs /c
+# ADD CPP /nologo /W3 /GX- /I "." /I "missing" /I ".." /I "gapi/inc" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "i486" /D "_X86_" /D "x86" /D "NDEBUG" /D "WIN32" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "SCUMM_NEED_ALIGNMENT" /YX /Gz /Oxs /c
+MTL=midl.exe
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) aygshell.lib /nologo /stack:0x10000,0x1000 /subsystem:windows /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /windowsce:emulation /MACHINE:IX86
+# ADD LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) aygshell.lib /nologo /stack:0x10000,0x1000 /subsystem:windows /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /windowsce:emulation /MACHINE:IX86
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "X86EMDbg"
+# PROP BASE Intermediate_Dir "X86EMDbg"
+# PROP BASE CPU_ID "{D6518FF4-710F-11D3-99F2-00105A0DF099}"
+# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "X86EMDbg"
+# PROP Intermediate_Dir "X86EMDbg"
+# PROP CPU_ID "{D6518FF4-710F-11D3-99F2-00105A0DF099}"
+# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
+# PROP Target_Dir ""
+RSC=rc.exe
+# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "i486" /r
+# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "i486" /r
+CPP=cl.exe
+# ADD BASE CPP /nologo /W3 /GX- /Zi /Od /D "DEBUG" /D "i486" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /YX /Gz /c
+# ADD CPP /nologo /W3 /GX- /Zi /Od /I "." /I "missing" /I ".." /I "gapi/inc" /D "DEBUG" /D "i486" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "_X86_" /D "x86" /D "WIN32" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "SCUMM_NEED_ALIGNMENT" /YX /Gz /c
+MTL=midl.exe
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) aygshell.lib /nologo /stack:0x10000,0x1000 /subsystem:windows /debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /windowsce:emulation /MACHINE:IX86
+# ADD LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) aygshell.lib /nologo /stack:0x10000,0x1000 /subsystem:windows /debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /windowsce:emulation /MACHINE:IX86
+
+!ENDIF
+
+# Begin Target
+
+# Name "PocketSCUMM - Win32 (WCE MIPS) Release"
+# Name "PocketSCUMM - Win32 (WCE MIPS) Debug"
+# Name "PocketSCUMM - Win32 (WCE SH4) Release"
+# Name "PocketSCUMM - Win32 (WCE SH4) Debug"
+# Name "PocketSCUMM - Win32 (WCE SH3) Release"
+# Name "PocketSCUMM - Win32 (WCE SH3) Debug"
+# Name "PocketSCUMM - Win32 (WCE ARM) Release"
+# Name "PocketSCUMM - Win32 (WCE ARM) Debug"
+# Name "PocketSCUMM - Win32 (WCE x86em) Release"
+# Name "PocketSCUMM - Win32 (WCE x86em) Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=..\actor.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_ACTOR=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_ACTOR=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_ACTOR=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_ACTOR=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_ACTOR=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_ACTOR=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_ACTOR=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_ACTOR=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_ACTOR=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_ACTOR=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\boxes.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_BOXES=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_BOXES=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_BOXES=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_BOXES=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_BOXES=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_BOXES=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_BOXES=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_BOXES=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_BOXES=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_BOXES=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\costume.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_COSTU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_COSTU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_COSTU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_COSTU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_COSTU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_COSTU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_COSTU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_COSTU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_COSTU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_COSTU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\debug.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_DEBUG=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_DEBUG=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_DEBUG=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_DEBUG=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_DEBUG=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_DEBUG=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_DEBUG=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_DEBUG=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_DEBUG=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_DEBUG=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\gfx.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_GFX_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_GFX_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_GFX_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_GFX_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_GFX_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_GFX_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_GFX_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_GFX_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_GFX_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_GFX_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\object.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_OBJEC=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_OBJEC=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_OBJEC=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_OBJEC=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_OBJEC=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_OBJEC=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_OBJEC=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_OBJEC=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_OBJEC=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_OBJEC=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\resource.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_RESOU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_RESOU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_RESOU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_RESOU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_RESOU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_RESOU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_RESOU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_RESOU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_RESOU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_RESOU=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\saveload.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_SAVEL=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_SAVEL=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_SAVEL=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_SAVEL=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_SAVEL=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_SAVEL=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_SAVEL=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_SAVEL=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_SAVEL=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_SAVEL=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\script.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_SCRIP=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_SCRIP=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_SCRIP=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_SCRIP=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_SCRIP=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_SCRIP=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_SCRIP=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_SCRIP=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_SCRIP=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_SCRIP=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\script_v1.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_SCRIPT=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_SCRIPT=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_SCRIPT=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_SCRIPT=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_SCRIPT=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_SCRIPT=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_SCRIPT=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_SCRIPT=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_SCRIPT=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_SCRIPT=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\script_v2.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_SCRIPT_=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_SCRIPT_=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_SCRIPT_=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_SCRIPT_=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_SCRIPT_=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_SCRIPT_=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_SCRIPT_=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_SCRIPT_=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_SCRIPT_=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_SCRIPT_=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\scummvm.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_SCUMM=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_SCUMM=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_SCUMM=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_SCUMM=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_SCUMM=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_SCUMM=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_SCUMM=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_SCUMM=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_SCUMM=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_SCUMM=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\sound.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_SOUND=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_SOUND=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_SOUND=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_SOUND=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_SOUND=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_SOUND=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_SOUND=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_SOUND=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_SOUND=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_SOUND=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\stdafx.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_STDAF=\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_STDAF=\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_STDAF=\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_STDAF=\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_STDAF=\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_STDAF=\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_STDAF=\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_STDAF=\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_STDAF=\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_STDAF=\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\string.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_STRIN=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_STRIN=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_STRIN=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_STRIN=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_STRIN=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_STRIN=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_STRIN=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_STRIN=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_STRIN=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_STRIN=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\sys.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_SYS_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_SYS_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_SYS_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_SYS_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_SYS_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_SYS_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_SYS_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_SYS_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_SYS_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_SYS_C=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\verbs.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_VERBS=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_VERBS=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_VERBS=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_VERBS=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_VERBS=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_VERBS=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_VERBS=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_VERBS=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_VERBS=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_VERBS=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=..\scumm.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\scummsys.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\stdafx.h
+# End Source File
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# End Group
+# Begin Group "Port Source Files"
+
+# PROP Default_Filter "cpp"
+# Begin Source File
+
+SOURCE=.\missing\missing.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_MISSI=\
+ ".\missing\dirent.h"\
+ ".\missing\sys\time.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_MISSI=\
+ ".\missing\dirent.h"\
+ ".\missing\sys\time.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_MISSI=\
+ ".\missing\dirent.h"\
+ ".\missing\sys\time.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_MISSI=\
+ ".\missing\dirent.h"\
+ ".\missing\sys\time.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_MISSI=\
+ ".\missing\dirent.h"\
+ ".\missing\sys\time.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_MISSI=\
+ ".\missing\dirent.h"\
+ ".\missing\sys\time.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_MISSI=\
+ ".\missing\dirent.h"\
+ ".\missing\sys\time.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_MISSI=\
+ ".\missing\dirent.h"\
+ ".\missing\sys\time.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_MISSI=\
+ ".\missing\dirent.h"\
+ ".\missing\sys\time.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_MISSI=\
+ ".\missing\dirent.h"\
+ ".\missing\sys\time.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\pocketpc.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_POCKE=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_POCKE=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_POCKE=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_POCKE=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_POCKE=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_POCKE=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_POCKE=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_POCKE=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_POCKE=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_POCKE=\
+ "..\scumm.h"\
+ "..\scummsys.h"\
+ "..\SDL.h"\
+ "..\stdafx.h"\
+ ".\missing\unistd.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\screen.cpp
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+DEP_CPP_SCREE=\
+ ".\gapi\inc\gx.h"\
+ ".\screen.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+DEP_CPP_SCREE=\
+ ".\gapi\inc\gx.h"\
+ ".\screen.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+DEP_CPP_SCREE=\
+ ".\gapi\inc\gx.h"\
+ ".\screen.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+DEP_CPP_SCREE=\
+ ".\gapi\inc\gx.h"\
+ ".\screen.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+DEP_CPP_SCREE=\
+ ".\gapi\inc\gx.h"\
+ ".\screen.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+DEP_CPP_SCREE=\
+ ".\gapi\inc\gx.h"\
+ ".\screen.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+DEP_CPP_SCREE=\
+ ".\gapi\inc\gx.h"\
+ ".\screen.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+DEP_CPP_SCREE=\
+ ".\gapi\inc\gx.h"\
+ ".\screen.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+DEP_CPP_SCREE=\
+ ".\gapi\inc\gx.h"\
+ ".\screen.h"\
+
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+DEP_CPP_SCREE=\
+ ".\gapi\inc\gx.h"\
+ ".\screen.h"\
+
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\gapi\ARM\gx.lib
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\gapi\emu\gx.lib
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\gapi\MIPS\gx.lib
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\gapi\SH\gx.lib
+
+!IF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Release"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE MIPS) Debug"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Release"
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH4) Debug"
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Release"
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE SH3) Debug"
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Release"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE ARM) Debug"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Release"
+
+# PROP Exclude_From_Build 1
+
+!ELSEIF "$(CFG)" == "PocketSCUMM - Win32 (WCE x86em) Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# End Group
+# Begin Group "Port Header Files"
+
+# PROP Default_Filter "h"
+# Begin Source File
+
+SOURCE=.\missing\assert.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\missing\conio.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\missing\dir.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\missing\direct.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\missing\dirent.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\missing\errno.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\missing\fcntl.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\missing\io.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\screen.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\missing\signal.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\missing\sys\stat.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\missing\sys\time.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\missing\time.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\missing\sys\types.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\missing\unistd.h
+# End Source File
+# End Group
+# End Target
+# End Project
diff --git a/PocketSCUMM/missing/assert.h b/PocketSCUMM/missing/assert.h
new file mode 100644
index 0000000000..ada1a466e6
--- /dev/null
+++ b/PocketSCUMM/missing/assert.h
@@ -0,0 +1,3 @@
+/* Header is not present in Windows CE SDK */
+
+#define assert(a) ; \ No newline at end of file
diff --git a/PocketSCUMM/missing/conio.h b/PocketSCUMM/missing/conio.h
new file mode 100644
index 0000000000..0cb5c297ea
--- /dev/null
+++ b/PocketSCUMM/missing/conio.h
@@ -0,0 +1,2 @@
+/* Header is not present in Windows CE SDK */
+
diff --git a/PocketSCUMM/missing/dir.h b/PocketSCUMM/missing/dir.h
new file mode 100644
index 0000000000..7ee9f5e5ba
--- /dev/null
+++ b/PocketSCUMM/missing/dir.h
@@ -0,0 +1 @@
+/* Header is not present in Windows CE SDK */
diff --git a/PocketSCUMM/missing/direct.h b/PocketSCUMM/missing/direct.h
new file mode 100644
index 0000000000..7ee9f5e5ba
--- /dev/null
+++ b/PocketSCUMM/missing/direct.h
@@ -0,0 +1 @@
+/* Header is not present in Windows CE SDK */
diff --git a/PocketSCUMM/missing/dirent.h b/PocketSCUMM/missing/dirent.h
new file mode 100644
index 0000000000..82dd0b2ee7
--- /dev/null
+++ b/PocketSCUMM/missing/dirent.h
@@ -0,0 +1,52 @@
+/* Header is not present in Windows CE SDK */
+/* It would not be a bad idea to take this thing from gcc distro and port
+ it properly. For now only required part is ported. */
+
+struct dirent
+{
+ long d_ino; /* Always zero. */
+ unsigned short d_reclen; /* Always zero. */
+ unsigned short d_namlen; /* Length of name in d_name. */
+ char* d_name; /* File name. */
+ /* NOTE: The name in the dirent structure points to the name in the
+ * finddata_t structure in the DIR. */
+};
+
+/*
+ * This is an internal data structure. Good programmers will not use it
+ * except as an argument to one of the functions below.
+ */
+typedef struct
+{
+ /* disk transfer area for this dir */
+/* struct _finddata_t dd_dta; */
+
+ /* dirent struct to return from dir (NOTE: this makes this thread
+ * safe as long as only one thread uses a particular DIR struct at
+ * a time) */
+ struct dirent dd_dir;
+
+ /* _findnext handle */
+ long dd_handle;
+
+ /*
+ * Status of search:
+ * 0 = not started yet (next entry to read is first entry)
+ * -1 = off the end
+ * positive = 0 based index of next entry
+ */
+ short dd_stat;
+
+ /* given path for dir with search pattern (struct is extended) */
+ char dd_name[1];
+} DIR;
+
+
+DIR* opendir (const char*);
+struct dirent* readdir (DIR*);
+int closedir (DIR*);
+/*
+void rewinddir (DIR*);
+long telldir (DIR*);
+void seekdir (DIR*, long);
+*/
diff --git a/PocketSCUMM/missing/errno.h b/PocketSCUMM/missing/errno.h
new file mode 100644
index 0000000000..7ee9f5e5ba
--- /dev/null
+++ b/PocketSCUMM/missing/errno.h
@@ -0,0 +1 @@
+/* Header is not present in Windows CE SDK */
diff --git a/PocketSCUMM/missing/fcntl.h b/PocketSCUMM/missing/fcntl.h
new file mode 100644
index 0000000000..7ee9f5e5ba
--- /dev/null
+++ b/PocketSCUMM/missing/fcntl.h
@@ -0,0 +1 @@
+/* Header is not present in Windows CE SDK */
diff --git a/PocketSCUMM/missing/io.h b/PocketSCUMM/missing/io.h
new file mode 100644
index 0000000000..a7b74c71b7
--- /dev/null
+++ b/PocketSCUMM/missing/io.h
@@ -0,0 +1,15 @@
+/* Header is not present in Windows CE SDK */
+
+/* This stuff will live here until port configuration file is in place */
+#define stricmp _stricmp
+#define strdup _strdup
+#define _HEAPOK 0
+#define _heapchk() 0
+
+#ifndef _FILE_DEFINED
+ typedef void FILE;
+ #define _FILE_DEFINED
+#endif
+FILE* wce_fopen(const char* fname, const char* fmode);
+#define fopen wce_fopen
+
diff --git a/PocketSCUMM/missing/missing.cpp b/PocketSCUMM/missing/missing.cpp
new file mode 100644
index 0000000000..d139584f54
--- /dev/null
+++ b/PocketSCUMM/missing/missing.cpp
@@ -0,0 +1,368 @@
+/* MISSING.C
+ Implementation for standard and semi-standard C library calls missing in WinCE
+ environment.
+ (C) 2001 Vasyl Tsvirkunov
+*/
+#include <windows.h>
+#include <tchar.h>
+#include <string.h>
+#include "sys/stat.h"
+#include "sys/time.h"
+#include "time.h"
+#include "dirent.h"
+
+/* forward declaration */
+char *strdup(const char *strSource);
+
+/* Limited dirent implementation. Used by UI.C and DEVICES.C */
+static WIN32_FIND_DATA wfd;
+
+DIR* opendir(const char* fname)
+{
+ DIR* pdir;
+ char fnameMask[MAX_PATH+1];
+ TCHAR fnameUnc[MAX_PATH+1];
+ char nameFound[MAX_PATH+1];
+
+ if(fname == NULL)
+ return NULL;
+
+ strcpy(fnameMask, fname);
+ if(!strlen(fnameMask) || fnameMask[strlen(fnameMask)-1] != '\\')
+ strncat(fnameMask, "\\", MAX_PATH-strlen(fnameMask)-1);
+ strncat(fnameMask, "*.*", MAX_PATH-strlen(fnameMask)-4);
+
+ pdir = (DIR*)malloc(sizeof(DIR)+strlen(fname));
+ pdir->dd_dir.d_ino = 0;
+ pdir->dd_dir.d_reclen = 0;
+ pdir->dd_dir.d_name = 0;
+ pdir->dd_dir.d_namlen = 0;
+
+ pdir->dd_handle = 0;
+ pdir->dd_stat = 0;
+ strcpy(pdir->dd_name, fname); /* it has exactly enough space for fname and nul char */
+
+ MultiByteToWideChar(CP_ACP, 0, fnameMask, -1, fnameUnc, MAX_PATH);
+ if((pdir->dd_handle = (long)FindFirstFile(fnameUnc, &wfd)) == (long)INVALID_HANDLE_VALUE)
+ {
+ free(pdir);
+ return NULL;
+ }
+ else
+ {
+ WideCharToMultiByte(CP_ACP, 0, wfd.cFileName, -1, nameFound, MAX_PATH, NULL, NULL);
+
+ pdir->dd_dir.d_name = strdup(nameFound);
+ pdir->dd_dir.d_namlen = strlen(nameFound);
+ }
+ return pdir;
+}
+
+struct dirent* readdir(DIR* dir)
+{
+ char nameFound[MAX_PATH+1];
+ static struct dirent dummy;
+
+ if(dir->dd_stat == 0)
+ {
+ dummy.d_name = ".";
+ dummy.d_namlen = 1;
+ dir->dd_stat ++;
+ return &dummy;
+ }
+ else if(dir->dd_stat == 1)
+ {
+ dummy.d_name = "..";
+ dummy.d_namlen = 2;
+ dir->dd_stat ++;
+ return &dummy;
+ }
+ else if(dir->dd_stat == 2)
+ {
+ dir->dd_stat++;
+ return &dir->dd_dir;
+ }
+ else
+ {
+ if(FindNextFile((HANDLE)dir->dd_handle, &wfd) == 0)
+ {
+ dir->dd_stat = -1;
+ return NULL;
+ }
+ WideCharToMultiByte(CP_ACP, 0, wfd.cFileName, -1, nameFound, MAX_PATH, NULL, NULL);
+
+ if(dir->dd_dir.d_name)
+ free(dir->dd_dir.d_name);
+
+ dir->dd_dir.d_name = strdup(nameFound);
+ dir->dd_dir.d_namlen = strlen(nameFound);
+
+ dir->dd_stat ++;
+
+ return &dir->dd_dir;
+ }
+}
+
+int closedir(DIR* dir)
+{
+ if(dir == NULL)
+ return 0;
+
+ if(dir->dd_handle)
+ FindClose((HANDLE)dir->dd_handle);
+
+ if(dir->dd_dir.d_name)
+ free(dir->dd_dir.d_name);
+ free(dir);
+ return 1;
+}
+
+/* Very limited implementation of stat. Used by UI.C, MEMORY-P.C (latter is not critical) */
+int stat(const char *fname, struct stat *ss)
+{
+ TCHAR fnameUnc[MAX_PATH+1];
+ HANDLE handle;
+ int len;
+
+ if(fname == NULL || ss == NULL)
+ return -1;
+
+ /* Special case (dummy on WinCE) */
+ len = strlen(fname);
+ if(len >= 2 && fname[len-1] == '.' && fname[len-2] == '.' &&
+ (len == 2 || fname[len-3] == '\\'))
+ {
+ /* That's everything implemented so far */
+ memset(ss, 0, sizeof(struct stat));
+ ss->st_size = 1024;
+ ss->st_mode |= S_IFDIR;
+ return 0;
+ }
+
+ MultiByteToWideChar(CP_ACP, 0, fname, -1, fnameUnc, MAX_PATH);
+ handle = FindFirstFile(fnameUnc, &wfd);
+ if(handle == INVALID_HANDLE_VALUE)
+ return -1;
+ else
+ {
+ /* That's everything implemented so far */
+ memset(ss, 0, sizeof(struct stat));
+ ss->st_size = wfd.nFileSizeLow;
+ if(wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
+ ss->st_mode |= S_IFDIR;
+
+ FindClose(handle);
+ }
+ return 0;
+}
+
+/* Remove file by name */
+int remove(const char* path)
+{
+ TCHAR pathUnc[MAX_PATH+1];
+ MultiByteToWideChar(CP_ACP, 0, path, -1, pathUnc, MAX_PATH);
+ return !DeleteFile(pathUnc);
+}
+
+/* in our case unlink is the same as remove */
+int unlink(const char* path)
+{
+ return remove(path);
+}
+
+/* Make directory, Unix style */
+void mkdir(char* dirname, int mode)
+{
+ char path[MAX_PATH+1];
+ TCHAR pathUnc[MAX_PATH+1];
+ char* ptr;
+ strncpy(path, dirname, MAX_PATH);
+ if(*path == '/')
+ *path = '\\';
+ /* Run through the string and attempt creating all subdirs on the path */
+ for(ptr = path+1; *ptr; ptr ++)
+ {
+ if(*ptr == '\\' || *ptr == '/')
+ {
+ *ptr = 0;
+ MultiByteToWideChar(CP_ACP, 0, path, -1, pathUnc, MAX_PATH);
+ CreateDirectory(pathUnc, 0);
+ *ptr = '\\';
+ }
+ }
+ MultiByteToWideChar(CP_ACP, 0, path, -1, pathUnc, MAX_PATH);
+ CreateDirectory(pathUnc, 0);
+}
+
+/* Used in DEVICES.C and UI.C for some purpose. Not critical in this port */
+int system(const char* path) { return 0; }
+
+
+char *tmpnam(char *string)
+{
+ TCHAR pTemp[MAX_PATH+1];
+ static char buffer[MAX_PATH+1];
+ GetTempFileName(TEXT("."), TEXT("A8_"), 0, pTemp);
+ WideCharToMultiByte(CP_ACP, 0, pTemp, -1, buffer, MAX_PATH, NULL, NULL);
+
+ if(string)
+ {
+ strcpy(string, buffer);
+ return string;
+ }
+ else
+ return buffer;
+}
+
+FILE *tmpfile()
+{
+ TCHAR pTemp[MAX_PATH+1];
+ if(!GetTempFileName(TEXT("."), TEXT("A8_"), 0, pTemp))
+ return _wfopen(pTemp, TEXT("w+b"));
+ else
+ return 0;
+}
+
+void rewind(FILE *stream)
+{
+ fseek(stream, 0, SEEK_SET);
+}
+
+
+char *strdup(const char *strSource)
+{
+ char* buffer;
+ buffer = (char*)malloc(strlen(strSource)+1);
+ if(buffer)
+ strcpy(buffer, strSource);
+ return buffer;
+}
+
+/* Used in UI.C */
+char cwd[MAX_PATH+1] = "";
+char *getcwd(char *buffer, int maxlen)
+{
+ TCHAR fileUnc[MAX_PATH+1];
+ char* plast;
+
+ if(cwd[0] == 0)
+ {
+ GetModuleFileName(NULL, fileUnc, MAX_PATH);
+ WideCharToMultiByte(CP_ACP, 0, fileUnc, -1, cwd, MAX_PATH, NULL, NULL);
+ plast = strrchr(cwd, '\\');
+ if(plast)
+ *plast = 0;
+ /* Special trick to keep start menu clean... */
+ if(_stricmp(cwd, "\\windows\\start menu") == 0)
+ strcpy(cwd, "\\Apps");
+ }
+ if(buffer)
+ strncpy(buffer, cwd, maxlen);
+ return cwd;
+}
+
+/* Limited implementation of time.h. time_t formula is possibly incorrect. */
+time_t time(time_t* res)
+{
+ time_t t;
+ SYSTEMTIME st;
+ GetLocalTime(&st);
+
+ t = (time_t)(((((((st.wYear-1970)*12+st.wMonth)*31+st.wDay)*7+st.wDayOfWeek)*24+st.wHour)*60+st.wMinute)*60+st.wSecond);
+
+ if(res)
+ *res = t;
+ return t;
+}
+
+struct tm* localtime(time_t* timer)
+{
+ static struct tm tmLocalTime;
+ unsigned long rem = *timer;
+
+ tmLocalTime.tm_sec = (short)(rem % 60);
+ rem /= 60;
+ tmLocalTime.tm_min = (short)(rem % 60);
+ rem /= 60;
+ tmLocalTime.tm_hour = (short)(rem % 24);
+ rem /= 24;
+ tmLocalTime.tm_mday = (short)(rem % 7);
+ rem /= 7;
+ tmLocalTime.tm_mday = (short)(rem % 31);
+ rem /= 31;
+ tmLocalTime.tm_mon = (short)(rem % 12);
+ rem /= 12;
+ tmLocalTime.tm_year = (short)(rem+1970);
+
+ return &tmLocalTime;
+}
+
+/* Very limited implementation of sys/time.h */
+void gettimeofday(struct timeval* tp, void* dummy)
+{
+ DWORD dt = GetTickCount();
+ tp->tv_sec = dt/1000;
+ tp->tv_usec = dt*1000;
+}
+
+void usleep(long usec)
+{
+ long msec = usec/1000;
+ if(msec <= 0)
+ Sleep(0);
+ else
+ Sleep(msec);
+}
+
+/*
+Windows CE fopen has non-standard behavior -- not
+fully qualified paths refer to root folder rather
+than current folder (concept not implemented in CE).
+*/
+#undef fopen
+
+FILE* wce_fopen(const char* fname, const char* fmode)
+{
+ char fullname[MAX_PATH+1];
+
+ if(!fname || fname[0] == '\0')
+ return NULL;
+ if(fname[0] != '\\' && fname[0] != '/')
+ {
+ getcwd(fullname, MAX_PATH);
+ strncat(fullname, "\\", MAX_PATH-strlen(fullname)-1);
+ strncat(fullname, fname, MAX_PATH-strlen(fullname)-strlen(fname));
+ return fopen(fullname, fmode);
+ }
+ else
+ return fopen(fname, fmode);
+}
+
+/* This may provide for better sync mechanism */
+unsigned int clock()
+{
+ return GetTickCount();
+}
+
+/* And why do people use this? */
+void abort()
+{
+ exit(1);
+}
+
+/*
+IMHO, no project should use this one, it is not portable at all. This implementation
+at least allows some projects to work.
+*/
+char* getenv(char* name)
+{
+ static char buffer[MAX_PATH+1];
+ if(strcmp(name, "HOME") == 0 || strcmp(name, "HOMEDIR") == 0)
+ {
+ getcwd(buffer, MAX_PATH);
+ return buffer;
+ }
+ else
+ return "";
+}
+
diff --git a/PocketSCUMM/missing/signal.h b/PocketSCUMM/missing/signal.h
new file mode 100644
index 0000000000..128d6bf1db
--- /dev/null
+++ b/PocketSCUMM/missing/signal.h
@@ -0,0 +1,3 @@
+/* Header is not present in Windows CE SDK */
+/* Functionality is not critical -- Pocket PC devices do not have Ctrl+C */
+#define signal(a,b)
diff --git a/PocketSCUMM/missing/time.h b/PocketSCUMM/missing/time.h
new file mode 100644
index 0000000000..40c2894dca
--- /dev/null
+++ b/PocketSCUMM/missing/time.h
@@ -0,0 +1,24 @@
+/* Header is not present in Windows CE SDK */
+
+#ifndef A800_TIME_H
+#define A800_TIME_H
+
+#include <stdlib.h>
+
+struct tm
+{
+ short tm_year;
+ short tm_mon;
+ short tm_mday;
+ short tm_wday;
+ short tm_hour;
+ short tm_min;
+ short tm_sec;
+};
+
+time_t time(time_t* dummy);
+struct tm* localtime(time_t* dummy);
+
+unsigned int clock();
+
+#endif
diff --git a/PocketSCUMM/missing/unistd.h b/PocketSCUMM/missing/unistd.h
new file mode 100644
index 0000000000..7ee9f5e5ba
--- /dev/null
+++ b/PocketSCUMM/missing/unistd.h
@@ -0,0 +1 @@
+/* Header is not present in Windows CE SDK */
diff --git a/PocketSCUMM/pocketpc.cpp b/PocketSCUMM/pocketpc.cpp
new file mode 100644
index 0000000000..c7a827bb69
--- /dev/null
+++ b/PocketSCUMM/pocketpc.cpp
@@ -0,0 +1,265 @@
+// ScummVM - Scumm Interpreter
+// PocketSCUMM - PocketPC port of ScummVM. Based on the original Win32
+// implementation by Ludvig Strigeus.
+// Ported by Vasyl Tsvirkunov (vasyl@pacbell.net).
+// Note: this is the very first version, implementing only basic functionality.
+// Keyboard is not implemented, there is no way to access save/load game
+// and the interpreter is hardcoded to one game (MI1 in this case). Later
+// versions will get these limitations removed. Right now you should
+// consider this port a proof of concept.
+// To run PocketSCUMM, put PocketSCUMM.exe and game resources (MONKEY.000, MONKEY.001)
+// in one folder (can be on storage card) and run the executable. Unused part of
+// the screen below the image is split to two halves - tap on the left to press
+// Escape (skip intro, etc.), tap on the right to change screen rotation.
+
+#include "stdafx.h"
+#include <assert.h>
+
+#include "scumm.h"
+#include "screen.h"
+
+class WndMan
+{
+ HMODULE hInst;
+ HWND hWnd;
+
+ bool terminated;
+
+public:
+ byte *_vgabuf;
+ Scumm *_scumm;
+
+public:
+ void init();
+
+ bool handleMessage();
+ void run();
+ void setPalette(byte *ctab, int first, int num);
+ void writeToScreen();
+};
+
+void Error(LPCTSTR msg)
+{
+ MessageBox(0, msg, TEXT("Error"), MB_ICONSTOP);
+ exit(1);
+}
+
+Scumm scumm;
+ScummDebugger debugger;
+WndMan wm[1];
+byte veryFastMode;
+
+static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
+{
+ WndMan *wm = (WndMan*)GetWindowLong(hWnd, GWL_USERDATA);
+
+ switch (message)
+ {
+ case WM_DESTROY:
+ case WM_CLOSE:
+ GraphicsOff();
+ PostQuitMessage(0);
+ break;
+
+ case WM_CHAR:
+ if(wParam == 'Q' || wParam == 'q')
+ wParam = VK_ESCAPE;
+ wm->_scumm->_keyPressed = wParam;
+ break;
+
+ case WM_KEYDOWN:
+ if (wParam>='0' && wParam<='9')
+ {
+ wm->_scumm->_saveLoadSlot = wParam - '0';
+ if (GetAsyncKeyState(VK_SHIFT)<0)
+ wm->_scumm->_saveLoadFlag = 1;
+ else if (GetAsyncKeyState(VK_CONTROL)<0)
+ wm->_scumm->_saveLoadFlag = 2;
+ wm->_scumm->_saveLoadCompatible = false;
+ }
+
+ if (wParam=='F')
+ {
+ wm->_scumm->_fastMode ^= 1;
+ }
+
+ if (wParam=='G')
+ {
+ veryFastMode ^= 1;
+ }
+
+ if (wParam=='D')
+ {
+ debugger.attach(wm->_scumm);
+ }
+ if(wParam == 'R')
+ SetScreenMode(GetScreenMode()+1);
+
+ break;
+
+ case WM_MOUSEMOVE:
+ {
+ int x = ((int16*)&lParam)[0];
+ int y = ((int16*)&lParam)[1];
+ Translate(&x, &y);
+ wm->_scumm->mouse.x = x;
+ wm->_scumm->mouse.y = y;
+ }
+ break;
+ case WM_LBUTTONDOWN:
+ {
+ int x = ((int16*)&lParam)[0];
+ int y = ((int16*)&lParam)[1];
+ Translate(&x, &y);
+ wm->_scumm->mouse.x = x;
+ wm->_scumm->mouse.y = y;
+ wm->_scumm->_leftBtnPressed |= 1;
+ if(y > 200)
+ {
+ if(x<160)
+ wm->_scumm->_keyPressed = VK_ESCAPE;
+ else
+ SetScreenMode(GetScreenMode()+1);
+ }
+ }
+ break;
+ case WM_RBUTTONDOWN:
+ wm->_scumm->_rightBtnPressed |= 1;
+ break;
+ default:
+ return DefWindowProc(hWnd, message, wParam, lParam);
+ }
+ return 0;
+}
+
+void WndMan::writeToScreen()
+{
+ Blt(_vgabuf);
+}
+
+void WndMan::setPalette(byte *ctab, int first, int num) {
+ int i;
+
+#if 1
+ for (i=0; i<256; i++)
+ SetPalEntry(i, ctab[i*3+0]<<2, ctab[i*3+1]<<2, ctab[i*3+2]<<2);
+#else
+ for (i=0; i<256; i++)
+ SetPalEntry(i, i, i, i);
+#endif
+}
+
+
+void WndMan::init()
+{
+ /* Retrieve the handle of this module */
+ hInst = GetModuleHandle(NULL);
+
+ /* Register the window class */
+ WNDCLASS wcex;
+ wcex.style = CS_HREDRAW | CS_VREDRAW;
+ wcex.lpfnWndProc = (WNDPROC)WndProc;
+ wcex.cbClsExtra = 0;
+ wcex.cbWndExtra = 0;
+ wcex.hInstance = hInst;
+ wcex.hIcon = 0;
+ wcex.hCursor = ::LoadCursor(NULL, IDC_ARROW);
+ wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
+ wcex.lpszMenuName = 0;
+ wcex.lpszClassName = TEXT("ScummVM");
+ if (!RegisterClass(&wcex))
+ Error(TEXT("Cannot register window class!"));
+
+ hWnd = CreateWindow(TEXT("ScummVM"), TEXT("ScummVM"), WS_POPUP,
+ 0, 0, 240, 320, NULL, NULL, hInst, NULL);
+ SetWindowLong(hWnd, GWL_USERDATA, (long)this);
+// ShowCursor(false);
+
+ ShowWindow(hWnd, SW_SHOW);
+ GraphicsOn(hWnd);
+}
+
+
+bool WndMan::handleMessage()
+{
+ MSG msg;
+
+ if (!PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
+ return false;
+
+ if(msg.message==WM_QUIT)
+ {
+ terminated=true;
+ exit(1);
+ return true;
+ }
+
+ TranslateMessage(&msg);
+ DispatchMessage(&msg);
+
+ return true;
+}
+
+
+void blitToScreen(Scumm *s, byte *src,int x, int y, int w, int h)
+{
+ byte *dst;
+ int i;
+
+ dst = (byte*)wm->_vgabuf + y*320 + x;
+
+ do
+ {
+ memcpy(dst, src, w);
+ dst += 320;
+ src += 320;
+ }
+ while (--h);
+
+}
+
+void updateScreen(Scumm *s)
+{
+ if(s->_palDirtyMax != -1)
+ {
+ wm->setPalette(s->_currentPalette, 0, 256);
+ s->_palDirtyMax = -1;
+ }
+
+ wm->writeToScreen();
+}
+
+void waitForTimer(Scumm *s)
+{
+ if(!veryFastMode)
+ {
+ Sleep(5);
+ }
+ s->_scummTimer+=2;
+ wm->handleMessage();
+}
+
+void initGraphics(Scumm *s)
+{
+}
+
+void drawMouse(Scumm *s, int, int, int, byte*, bool)
+{
+}
+
+
+int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nShowCmd)
+{
+ scumm._videoMode = 0x13;
+
+ wm->init();
+ wm->_vgabuf = (byte*)calloc(320,200);
+ wm->_scumm = &scumm;
+
+ char* argv[] = { "", "MONKEY", NULL };
+ int argc = 2;
+
+ scumm.scummMain(argc, argv);
+
+ return 0;
+}
diff --git a/PocketSCUMM/screen.cpp b/PocketSCUMM/screen.cpp
new file mode 100644
index 0000000000..4f9f2693d8
--- /dev/null
+++ b/PocketSCUMM/screen.cpp
@@ -0,0 +1,319 @@
+/* (C) 2001 Vasyl Tsvirkunov */
+
+#include <windows.h>
+#include "gx.h"
+#include "screen.h"
+
+#define SMOOTH
+
+#define MAX_CLR 0x100
+#ifdef SMOOTH
+static UBYTE palRed[MAX_CLR];
+static UBYTE palGreen[MAX_CLR];
+static UBYTE palBlue[MAX_CLR];
+#endif
+static unsigned short pal[MAX_CLR];
+
+
+GXDisplayProperties gxdp;
+int active;
+
+struct tScreenGeometry
+{
+ long width;
+ long height;
+ long startoffset;
+ long sourceoffset;
+ long linestep;
+ long pixelstep;
+ long xSkipMask;
+ long xLimit;
+ long lineLimit;
+};
+
+tScreenGeometry geom[3];
+
+int currentScreenMode = 0;
+int useMode = 0;
+int maxMode = 2;
+
+void SetScreenMode(int mode)
+{
+ currentScreenMode = mode;
+ if(currentScreenMode > maxMode)
+ currentScreenMode = 0;
+}
+
+int GetScreenMode()
+{
+ return currentScreenMode;
+}
+
+void GraphicsSuspend()
+{
+ if(active)
+ {
+ active = 0;
+ GXSuspend();
+ }
+}
+
+void GraphicsResume()
+{
+ if(!active)
+ {
+ active = 1;
+ GXResume();
+ }
+}
+
+void GraphicsOff(void)
+{
+ GXCloseDisplay();
+ active = 0;
+}
+
+int GraphicsOn(HWND hWndMain)
+{
+ GXOpenDisplay(hWndMain, GX_FULLSCREEN);
+
+ gxdp = GXGetDisplayProperties();
+ if((gxdp.ffFormat & (kfDirect555 | kfDirect565)) == 0 || gxdp.cxWidth < 240 || gxdp.cyHeight < 240)
+ {
+ GraphicsOff();
+ return 1;
+ }
+
+ // portrait
+ geom[0].width = gxdp.cxWidth; // 240
+ geom[0].height = gxdp.cyHeight; // 320
+ geom[0].startoffset = 0;
+ geom[0].sourceoffset = 0;
+ geom[0].linestep = gxdp.cbyPitch;
+ geom[0].pixelstep = gxdp.cbxPitch;
+ geom[0].xSkipMask = gxdp.cxWidth < 320 ? 0x00000003 : 0xffffffff;
+ geom[0].xLimit = 320; // skip 1/4
+ geom[0].lineLimit = 320*200;
+
+ // left handed landscape
+ geom[1].width = gxdp.cyHeight; // 320
+ geom[1].height = gxdp.cxWidth; // 240
+ geom[1].startoffset = gxdp.cbyPitch*(gxdp.cyHeight-1);
+ geom[1].sourceoffset = 0;
+ geom[1].linestep = gxdp.cbxPitch;
+ geom[1].pixelstep = -gxdp.cbyPitch;
+ geom[1].xSkipMask = 0xffffffff;
+ geom[1].xLimit = 320; // no skip
+ geom[1].lineLimit = 320*200;
+
+ // right handed landscape
+ geom[2].width = gxdp.cyHeight; // 320
+ geom[2].height = gxdp.cxWidth; // 240
+ geom[2].startoffset = gxdp.cbxPitch*(gxdp.cxWidth-1);
+ geom[2].sourceoffset = 0;
+ geom[2].linestep = -gxdp.cbxPitch;
+ geom[2].pixelstep = gxdp.cbyPitch;
+ geom[2].xSkipMask = 0xffffffff;
+ geom[2].xLimit = 320; // no skip
+ geom[2].lineLimit = 320*200;
+
+ if(gxdp.cyHeight < 320)
+ maxMode = 0; // portrait only!
+
+ active = 1;
+ return 0;
+}
+
+void SetPalEntry(int ent, UBYTE r, UBYTE g, UBYTE b)
+{
+ if (ent >= MAX_CLR)
+ return;
+#ifdef SMOOTH
+ palRed[ent] = r;
+ palGreen[ent] = g;
+ palBlue[ent] = b;
+#endif
+ if(gxdp.ffFormat & kfDirect565)
+ pal[ent] = ((r&0xf8)<<(11-3))|((g&0xfc)<<(5-2))|((b&0xf8)>>3);
+ else if(gxdp.ffFormat & kfDirect555)
+ pal[ent] = ((r&0xf8)<<(10-3))|((g&0xf8)<<(5-2))|((b&0xf8)>>3);
+}
+
+void Cls()
+{
+ int x, y;
+ UBYTE* dst;
+ UBYTE *scraddr;
+ scraddr = (UBYTE*)GXBeginDraw();
+ if(scraddr)
+ {
+ for(y=0; y<geom[useMode].height; y++)
+ {
+ dst = scraddr+geom[useMode].startoffset;
+ for(x=0; x<geom[useMode].width; x++)
+ {
+ *(unsigned short*)dst = 0;
+ dst += geom[useMode].pixelstep;
+ }
+ scraddr += geom[useMode].linestep;
+ }
+ GXEndDraw();
+ }
+}
+
+int counter = 0;
+
+void Blt(UBYTE * scr_ptr)
+{
+ static UBYTE *src;
+ static UBYTE *dst;
+ static UBYTE *scraddr;
+ static UBYTE *scr_ptr_limit;
+ static UBYTE *src_limit;
+ static long pixelstep;
+ static long linestep;
+ static long skipmask;
+
+#ifdef SMOOTH
+ static bool b565 = (gxdp.ffFormat & kfDirect565);
+#endif
+
+ if(!active)
+ {
+ Sleep(100);
+ return;
+ }
+
+ /* Update screen mode, also thread protection by doing this */
+ if(useMode != currentScreenMode)
+ {
+ useMode = currentScreenMode;
+ Cls();
+ }
+
+ scraddr = (UBYTE*)GXBeginDraw();
+ if(scraddr)
+ {
+ scraddr += geom[useMode].startoffset;
+ scr_ptr += geom[useMode].sourceoffset;
+ scr_ptr_limit = scr_ptr + geom[useMode].lineLimit;
+ pixelstep = geom[useMode].pixelstep;
+ linestep = geom[useMode].linestep;
+ src_limit = scr_ptr + geom[useMode].xLimit;
+ skipmask = geom[useMode].xSkipMask;
+
+ /* Internal pixel loops */
+#ifdef SMOOTH
+ if(skipmask == 3)
+ {
+ while(scr_ptr < scr_ptr_limit)
+ {
+ src = scr_ptr;
+ dst = scraddr;
+ while(src < src_limit)
+ {
+ UBYTE r, g, b;
+ r = (3*palRed[*(src+0)] + palRed[*(src+1)])>>2;
+ g = (3*palGreen[*(src+0)] + palGreen[*(src+1)])>>2;
+ b = (3*palBlue[*(src+0)] + palBlue[*(src+1)])>>2;
+
+ if(b565)
+ *(unsigned short*)dst = ((r&0xf8)<<(11-3))|((g&0xfc)<<(5-2))|((b&0xf8)>>3);
+ else
+ *(unsigned short*)dst = ((r&0xf8)<<(10-3))|((g&0xf8)<<(5-2))|((b&0xf8)>>3);
+ dst += pixelstep;
+
+ r = (palRed[*(src+1)] + palRed[*(src+2)])>>1;
+ g = (palGreen[*(src+1)] + palGreen[*(src+2)])>>1;
+ b = (palBlue[*(src+1)] + palBlue[*(src+2)])>>1;
+
+ if(b565)
+ *(unsigned short*)dst = ((r&0xf8)<<(11-3))|((g&0xfc)<<(5-2))|((b&0xf8)>>3);
+ else
+ *(unsigned short*)dst = ((r&0xf8)<<(10-3))|((g&0xf8)<<(5-2))|((b&0xf8)>>3);
+ dst += pixelstep;
+
+ r = (palRed[*(src+2)] + 3*palRed[*(src+3)])>>2;
+ g = (palGreen[*(src+2)] + 3*palGreen[*(src+3)])>>2;
+ b = (palBlue[*(src+2)] + 3*palBlue[*(src+3)])>>2;
+
+ if(b565)
+ *(unsigned short*)dst = ((r&0xf8)<<(11-3))|((g&0xfc)<<(5-2))|((b&0xf8)>>3);
+ else
+ *(unsigned short*)dst = ((r&0xf8)<<(10-3))|((g&0xf8)<<(5-2))|((b&0xf8)>>3);
+ dst += pixelstep;
+
+ src += 4;
+ }
+ scraddr += linestep;
+ scr_ptr += 320;
+ src_limit += 320;
+ }
+ }
+ else
+#endif
+ if(skipmask != 0xffffffff)
+ {
+ while(scr_ptr < scr_ptr_limit)
+ {
+ src = scr_ptr;
+ dst = scraddr;
+ while(src < src_limit)
+ {
+ if((long)src & skipmask)
+ {
+ *(unsigned short*)dst = pal[*src];
+ dst += pixelstep;
+ }
+ src ++;
+ }
+ scraddr += linestep;
+ scr_ptr += 320;
+ src_limit += 320;
+ }
+ }
+ else
+ {
+ while(scr_ptr < scr_ptr_limit)
+ {
+ src = scr_ptr;
+ dst = scraddr;
+ while(src < src_limit)
+ {
+ *(unsigned short*)dst = pal[*src];
+ dst += pixelstep;
+ src ++;
+ }
+ scraddr += linestep;
+ scr_ptr += 320;
+ src_limit += 320;
+ }
+ }
+
+ GXEndDraw();
+ }
+}
+
+void Translate(int* px, int* py)
+{
+ int x, y;
+
+ switch(currentScreenMode)
+ {
+ case 0: /* portrait */
+ *px = *px*4/3;
+ break;
+ case 1: /* landscape left */
+ x = 320 - *py;
+ y = *px;
+ *px = x;
+ *py = y;
+ break;
+ case 2: /* landscape right */
+ x = *py;
+ y = 240 - *px;
+ *px = x;
+ *py = y;
+ break;
+ }
+}
diff --git a/PocketSCUMM/screen.h b/PocketSCUMM/screen.h
new file mode 100644
index 0000000000..f245c66258
--- /dev/null
+++ b/PocketSCUMM/screen.h
@@ -0,0 +1,24 @@
+/* (C) 2001 Vasyl Tsvirkunov */
+
+#ifndef SCREEN_H
+#define SCREEN_H
+
+#ifndef UBYTE
+#define UBYTE unsigned char
+#endif
+
+int GraphicsOn(HWND hWndMain);
+void GraphicsOff();
+void GraphicsSuspend();
+void GraphicsResume();
+
+void SetPalEntry(int ent, UBYTE r, UBYTE g, UBYTE b);
+void Blt(UBYTE * scr_ptr);
+
+/* meaning: 0 - portrait, 1 - left hand landscape, 2 - right hand landscape */
+void SetScreenMode(int mode);
+int GetScreenMode();
+
+void Translate(int* x, int* y);
+
+#endif
diff --git a/PocketSCUMM/sdl.h b/PocketSCUMM/sdl.h
new file mode 100644
index 0000000000..884eccf800
--- /dev/null
+++ b/PocketSCUMM/sdl.h
@@ -0,0 +1,2 @@
+/* dummy header */
+