Ticket #9060: wince-diff.patch
File wince-diff.patch, 5.1 KB (added by , 14 years ago) |
---|
-
backends/platform/wince/module.mk
1 MODULE := backends/platform/wince 2 3 MODULE_OBJS := \ 4 CEActionsPocket.o CEDevice.o CEScaler.o \ 5 CEActionsSmartphone.o CELauncherDialog.o wince-sdl.o \ 6 CEgui/GUIElement.o CEgui/Panel.o CEgui/SDL_ImageResource.o \ 7 CEgui/ItemAction.o CEgui/PanelItem.o CEgui/Toolbar.o \ 8 CEgui/ItemSwitch.o CEgui/PanelKeyboard.o CEgui/ToolbarHandler.o \ 9 CEkeys/EventsBuffer.o \ 10 ../../../gui/Actions.o ../../../gui/Key.o ../../../gui/KeysDialog.o \ 11 ../sdl/sdl.o ../sdl/graphics.o ../sdl/events.o ../sdl/hardwarekeys.o \ 12 missing/missing.o \ 13 PocketSCUMM.o \ 14 ARMscaler.o \ 15 smartLandScale.o 16 17 MODULE_DIRS += \ 18 backends/platform/wince/ 19 20 # We don't use the rules.mk here on purpose 21 OBJS := $(addprefix $(MODULE)/, $(MODULE_OBJS)) $(OBJS) -
backends/platform/wince/CEgui/SDL_ImageResource.cpp
60 60 _surface = SDL_LoadBMP_RW(surfaceData, 1); 61 61 62 62 return _surface; 63 } ;63 } 64 64 65 65 SDL_Surface* SDL_ImageResource::get() { 66 66 return _surface; -
backends/platform/wince/missing/missing.cpp
135 135 #endif 136 136 EXT_C void GetCurrentDirectory(int len, char *buf) { 137 137 getcwd(buf,len); 138 } ;138 } 139 139 140 140 141 /* 142 Windows CE has no perror 143 */ 144 // #define perror(_t) MessageBox(NULL, _T("_t"), _T("Error/Warning"), MB_OK) 145 146 /* An strerror-like function that takes a Win32 error instead 147 of an errno error in ERROR. */ 148 149 static char * strwinerror (DWORD error) { 150 static char buf[1024]; 151 wchar_t msgbuf[1024]; 152 DWORD chars = FormatMessageW ( 153 FORMAT_MESSAGE_FROM_SYSTEM, 154 NULL, 155 error, 156 0, /* Default language */ 157 (WCHAR*)&msgbuf, 158 0, 159 NULL); 160 if (chars != 0) { 161 /* If there is an \r\n appended, zap it. */ 162 if (chars >= 2 163 && msgbuf[chars - 2] == '\r' 164 && msgbuf[chars - 1] == '\n') 165 msgbuf[chars - 2] = 0; 166 wcstombs (buf, msgbuf, chars + 1); 167 } else 168 sprintf (buf, "unknown win32 error (%ld)", error); 169 return buf; 170 } 171 172 extern void perror (const char *); 173 void perror (const char *s) { 174 if (s && *s) 175 fprintf (stderr, "%s: %s\n", s, strwinerror (GetLastError ())); 176 else 177 fprintf (stderr, "%s\n", strwinerror (GetLastError ())); 178 } 179 180 181 /* 141 182 Windows CE fopen has non-standard behavior -- not 142 183 fully qualified paths refer to root folder rather 143 184 than current folder (concept not implemented in CE). -
backends/platform/wince/wince.mk
1 # ScummVM Makefile for Windows CE port 2 # Uses the cegcc toolchain. For build info check out the wiki: http://wiki.scummvm.org 3 # $URL: https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk/backends/platform/wince/Makefile $ 4 # $Id: Makefile 42645 2009-07-21 19:39:24Z robinwatts $ 5 6 ifdef USE_ZLIB 7 DEFINES += -DUSE_ZLIB 8 LIBS += -lzlib 9 endif 10 11 ifdef USE_MAD 12 DEFINES += -DUSE_MAD 13 LIBS += -lmad 14 endif 15 16 ifdef USE_MPEG2 17 DEFINES += -DUSE_MPEG2 18 LIBS += -lmpeg2 19 endif 20 21 ifdef USE_TREMOR 22 DEFINES += -DUSE_TREMOR -DUSE_VORBIS 23 LIBS += -ltremorce 24 endif 25 26 ifdef USE_TREMOLO 27 DEFINES += -DUSE_TREMOR -DUSE_VORBIS -DUSE_TREMOLO 28 INCLUDES += -I$(srcdir)/backends/platform/wince/libs/include/tremolo 29 LIBS += -llibTremolo 30 endif 31 32 ifdef USE_FLAC 33 DEFINES += -DUSE_FLAC 34 LIBS += -lFLAC 35 endif 36 37 ifdef USE_ARM_SMUSH_ASM 38 DEFINES += -DUSE_ARM_SMUSH_ASM 39 endif 40 41 ifdef USE_ARM_GFX_ASM 42 DEFINES += -DUSE_ARM_GFX_ASM 43 endif 44 45 ifdef USE_ARM_COSTUME_ASM 46 DEFINES += -DUSE_ARM_COSTUME_ASM 47 endif 48 49 ifdef USE_ARM_SCALER_ASM 50 DEFINES += -DUSE_ARM_SCALER_ASM 51 endif 52 53 ifdef USE_ARM_SMUSH_ASM 54 DEFINES += -DUSE_ARM_SMUSH_ASM 55 endif 56 57 ifdef USE_ARM_GFX_ASM 58 DEFINES += -DUSE_ARM_GFX_ASM 59 endif 60 61 ifdef USE_ARM_COSTUME_ASM 62 DEFINES += -DUSE_ARM_COSTUME_ASM 63 endif 64 65 ifdef USE_ARM_SCALER_ASM 66 DEFINES += -DUSE_ARM_SCALER_ASM 67 endif 68 69 #all: dist 70 # echo $(EXECUTABLE) 71 72 #dist: ARMscaler.o PocketSCUMM.o $(EXECUTABLE) 73 74 #all-clean: clean 75 # $(RM) ARMscaler.o PocketSCUMM.o stub.o -
ports.mk
141 141 ScummVM-snapshot.dmg 142 142 rm -rf ScummVM-snapshot 143 143 144 144 145 # 146 # Windows CE specific 147 # 148 149 backends/platform/wince/PocketSCUMM.o: $(srcdir)/backends/platform/wince/PocketSCUMM.rc 150 $(WINDRES) -I$(srcdir)/backends/platform/wince $(srcdir)/backends/platform/wince/PocketSCUMM.rc backends/platform/wince/PocketSCUMM.o 151 152 153 # 145 154 # Windows specific 146 155 # 147 156