Commit Graph
5295 Commits
Author SHA1 Message Date
Andre Heider 5986aa96f2 PLUGINS: Formatting.
svn-id: r52552
2010-09-05 12:39:28 +00:00
Andre Heider c5a189f4d5 PLUGINS: Respect the VMA when relocating.
Plugins do not have to be linked at 0x0. Some platforms have limited
relocation jump offsets, which makes 0x0 unusable.

svn-id: r52551
2010-09-05 12:38:58 +00:00
Andre Heider ee2f4ef189 PLUGINS: Properly check the ELF header.
The ELFMAG is only 4 bytes, not 6. Properly check for endianess.

svn-id: r52550
2010-09-05 12:38:38 +00:00
Andre Heider 628842d457 PLUGINS: The VMA doesn't get added to any PHDR.
svn-id: r52549
2010-09-05 12:38:18 +00:00
Andre Heider 253a0aa7f9 PLUGINS: Fix warnings.
svn-id: r52548
2010-09-05 12:37:59 +00:00
Andre Heider 07e3a42224 PLUGINS: Cleanup includes and debug output.
Use the common debug functions instead of spamming #defines.

svn-id: r52547
2010-09-05 12:37:36 +00:00
Andre Heider 2c746709aa PLUGINS: Flush only memory ranges, not everything
svn-id: r52546
2010-09-05 12:37:07 +00:00
Andre Heider 4ac6c6a1dd DS: Enable debug level 2 when DISABLE_TEXT_CONSOLE is not set.
svn-id: r52545
2010-09-05 12:36:46 +00:00
Andre Heider 61cc69baf0 WII: Merge r52536 from trunk.
svn-id: r52537
2010-09-05 00:41:59 +00:00
Andre Heider f8ff771b8e WII: New disttarget 'wiiloaddist'
Uploads a .zip file to HBC to unpack to the used storage media.

svn-id: r52536
2010-09-05 00:36:27 +00:00
Andre Heider 9c495a23b2 DS: Merge r52533 from trunk.
svn-id: r52534
2010-09-04 22:26:12 +00:00
Andre Heider 7248efb178 DS: Enable stdout/err via nocash when DISABLE_COMMAND_LINE in not set.
svn-id: r52533
2010-09-04 22:19:20 +00:00
Johannes Schickel 48ee83b889 OPENGL: Properly initialize the graphics manager again.
Starting with r52503 the graphics manager's only initialize their event
observer when initEventObserver is called. It seems like it was an
oversight that this was not done in OSystem_SDL::setGraphicsMode, when a new
graphics manager was initialized.

This should fix window resizing with the OpenGL graphic's manager and mouse
movement.

svn-id: r52506
2010-09-03 15:52:31 +00:00
Alejandro Marzini 9136724110 SDL/OPENGL: Fix backend initialization when building with ENABLE_VKEYBD.
svn-id: r52503
2010-09-03 04:23:01 +00:00
Alejandro Marzini 30cbd35e74 OPENGL: Fix enable aspect ratio feature.
svn-id: r52502
2010-09-03 03:47:05 +00:00
Alejandro Marzini 19bf2b9eb6 OPENGL: Improve scaling, aspect ratio correction and display(GFX) modes.
Now the previous aspect ratio modes are handled as GFX modes. The previous
GFX modes were for scaling, but are removed now. A new 4/3 display mode
added. Added Ctrl-Shift-A for backward switching through display modes, and
Ctrl-Alt-<number key> for switching to a specific GFX mode.
Window resizing now is available for all display modes, and will
automatically change the scale factor as well as maintain the aspect ratio
when needed.

svn-id: r52501
2010-09-03 03:23:46 +00:00
Yotam Barnoy 43bbfa5ca8 PSP: removed strict-aliasing
It's no longer needed after adding __may_alias__ flag in endian.h.

svn-id: r52481
2010-09-01 12:56:34 +00:00
Yotam Barnoy b5a17ca628 PSP: fix BS2 crash by disabling strict aliasing
The problem that caused the crash in BS2 had to do with GCC making improper assumptions about our code. Specifically, the alignment trick we use for READ_UINT32/16 allows some targets(e.g. MIPS) to generate better code, but it also goes against ANSI C aliasing rules, which prohibit the sharing of addresses between a struct and another variable value. Using -fno-strict-aliasing tells GCC not to assume strict ANSI C aliasing and also unfortunately prevents it from making some good optimizations.

This change is probably needed for other platforms as well -- the crash on the PSP was simply a very rare coincidence.

svn-id: r52473
2010-08-31 15:24:08 +00:00
Martin Kiewitz c0b119feda SCI: still set game cursor, when mouse outside
of ScummVM window. Just don't change actual mouse position

svn-id: r52472
2010-08-31 13:05:15 +00:00
Thierry Crozat 37027d6531 I18N: Add "lowres" context for several GUI strings when in 1x mode.
This enables translators to use a different translation for these strings in
1x mode (e.g. 320x200 or 320x240) and in 2x or 3x modes.

svn-id: r52461
2010-08-30 22:24:40 +00:00
Andre Heider 2f3edeedc9 WII: Abuse pollEvent() to update the screen of skipped frames.
updateScreen() itself skips redraws when called too frequently. With
the right timing and number of consecutive calls this can result in
missing gfx updates, so lets abuse pollEvent() to check for overdue
redraws.

svn-id: r52456
2010-08-30 16:52:23 +00:00
Andre Heider ff1b64937a PLUGINS: Fix warnings and unnecessary casts.
svn-id: r52439
2010-08-29 11:14:14 +00:00
Lars Persson 33886e22af Build a couple of different variant to split engines in two.
svn-id: r52435
2010-08-29 08:26:59 +00:00
Andre Heider 80b9e8371b WII: svn merge Wii port commits from trunk
svn-id: r52425
2010-08-28 12:51:12 +00:00
Fabio Battaglia 12e0d8997b DINGUX: disable aspect ratio correction for some resolutions
Disable aspect ratio correction for games which have a native 240px 
height res, this fixes Maniac Mansion NES on dingux.

svn-id: r52422
2010-08-28 08:07:10 +00:00
Lars Persson fd574d5e24 Add support for HUGO game engine
svn-id: r52405
2010-08-27 07:11:31 +00:00
John Willis 1fea429497 GP2XWIZ: Add initial support for the GPH Caanoo.
Most of the codebase is the same, but the toolchain and libs are different.
Support for Caanoo specific features will follow, I just want to get the build support into trunk for now.

svn-id: r52400
2010-08-26 11:24:26 +00:00
Yotam Barnoy 89b34faa5a PSP: fixed flag to open()
I was missing a flag (PSP_O_TRUNC) causing the config file to be opened on top of the old file, causing file corruption.

svn-id: r52387
2010-08-25 13:26:30 +00:00
Yotam Barnoy b88f341b80 PSP: switched to using BufferedSeekableReadStream and BufferedWriteStream
The last PSP optimization made reading much faster, but writing isn't buffered so saving the config file was VERY slow.
I decided the cleanest way to do this would be to add BWS and use BSRS.

svn-id: r52327
2010-08-24 11:24:34 +00:00
John Willis c2ad45a5cf GP2XWIZ: Graphics code cleanup and start to add support for the GP2X Caanoo device.
svn-id: r52321
2010-08-24 09:29:30 +00:00
Alejandro Marzini 27beca0e8c OPENGL: Add Ctrl-Shift-Enter hotkey for backward switching fullscreen modes.
svn-id: r52310
2010-08-23 20:28:04 +00:00
John Willis edea88cf54 dingux: Add standard ScummVM copyright headers to the dingux backend.
svn-id: r52309
2010-08-23 19:49:51 +00:00
Alejandro Marzini 5c392df447 SDL/OPENGL: Fix segfault when using -g command line option.
svn-id: r52307
2010-08-23 19:44:39 +00:00
Alejandro Marzini 0df6bdde1c AMIGAOS: Fix build.
svn-id: r52306
2010-08-23 19:40:18 +00:00
Alejandro Marzini f27a4df548 AMIGAOS: Again, fix build.
svn-id: r52304
2010-08-23 18:52:10 +00:00
Alejandro Marzini 6164d1c0cb AMIGAOS: Fix build.
svn-id: r52303
2010-08-23 18:37:17 +00:00
Fabio Battaglia b5cb6b7c98 DINGUX: whitspace commit to start buildbot
svn-id: r52280
2010-08-22 16:07:04 +00:00
Fabio Battaglia 9349bec6db N64: add some comments to code
svn-id: r52277
2010-08-22 14:23:37 +00:00
Fabio Battaglia c31eba471d N64: small fix to the port readme
svn-id: r52275
2010-08-22 14:15:39 +00:00
Yotam Barnoy c45b3e4e0e PSP: switched from stdio to psp functions in plugin branch
Allows us to work with PSP plugins in this branch. Otherwise it's just too slow.

svn-id: r52273
2010-08-22 14:05:57 +00:00
Yotam Barnoy a503f9223a PSP: switched from stdio to psp functions -- dramatic speed improvement
Turns out that stdio is about 30x(!) slower than using the PSP's functions. Very significant optimization.

svn-id: r52271
2010-08-22 10:48:13 +00:00
Fabio Battaglia 43349a4cbf N64: fix some signed/unsigned int comparison warnings
svn-id: r52270
2010-08-22 09:59:46 +00:00
Fabio Battaglia 882ed43427 N64: Remove some unused variable and silence some signed/unsigned comparison warnings
svn-id: r52262
2010-08-21 14:36:40 +00:00
Alejandro Marzini 942e104e33 OPENGL: Fix issue with resize events generated after going out of fullscreen mode.
svn-id: r52248
2010-08-20 22:56:13 +00:00
Eugene Sandulenko 26dc4c2425 DINGOO: new port. Patch #3039277
svn-id: r52210
2010-08-19 12:43:37 +00:00
Yotam Barnoy 8fb92b9e2a PSP: made PSP compile with plugins.
Also removed criticalSection calls from elf-loader.cpp, since now streams are used so the criticalSections are automatic.

svn-id: r52206
2010-08-19 11:18:01 +00:00
Yotam Barnoy 3ece67d1b8 PLUGINS: added virtual destructor to DLObject
This could be really important. Maybe.

svn-id: r52205
2010-08-19 11:17:17 +00:00
Yotam Barnoy 70cd6cfda5 PSP: fixed issue in ME MP3 player that prevented different MP3 layers and versions from working.
MAD doesn't give enough information to decide the length of the PCM data -- it provides the Layer but not the MPEG version. I had to read the MP3 header directly to figure it out. This fixes issues with any MP3 files that might be used in any of the games.

svn-id: r52191
2010-08-18 16:58:32 +00:00
Andre Heider b2cbc3a429 WII: Bump the sfx buffer size to fix MT32 emulator hiccups.
svn-id: r52161
2010-08-17 18:44:16 +00:00
Yotam Barnoy aa16c9e046 PSP: changed display options to Full Screen, Keep Aspect Ratio and Original Resolution
This greatly simplifies the display options and makes them more practical. Original resolution will try to fit the game to the screen pixel-to-pixel, and will revert to full screen if it fails. Keep AR maximizes height and adjusts the width accordingly. This works very well with 320x200 games (AR of 1.6) which is close to the PSP's 1.7, but not so well with 320x240/640x480 (AR of 1.3). Full Screen is still default.

svn-id: r52138
2010-08-17 09:45:14 +00:00