3601 Commits

Author SHA1 Message Date
Max Horn
4b9df2203f DS: Add shell script which emulates old DS builds using configure&make
svn-id: r51556
2010-07-31 22:43:09 +00:00
Max Horn
450b82355d DS: Fix custom DS build system
svn-id: r51555
2010-07-31 22:42:42 +00:00
Yotam Barnoy
1532685d82 PSP: optimized memcpy some more and fixed memcpy testing
Found that the particular implementation was producing messy assembly for misaligned copies. Improved it and also fixed up wrapping the memcpy, which would cause endless prints in case memcpy testing is asked for.

svn-id: r51503
2010-07-30 09:32:54 +00:00
Marcus Comstedt
630127bc07 DC: Let scummvm.ini override autodetect of games
If a game CD has a scummvm.ini file with at least one game domain in
it, the normal autodetection is now bypassed and a menu of only the
games in the .ini file is presented instead.  The descriptions of the
games are taken from the .ini file, but icons are still scanned for
in the old fashion.

Note that previously ScummVM would read global options from the
scummvm.ini file on the boot disc (if present), but now global options
are instead taken from the scummvm.ini on the game disc (in case of
a disc swap).

svn-id: r51480
2010-07-29 20:37:56 +00:00
Marcus Comstedt
3e8a972602 DC: Specialize createConfig{Read,Write}Stream
Implement platform-specific variants of createConfigReadStream() 
and createConfigWriteStream(), instead of inheriting the BaseBackend 
definitions.  Nonstandard behavious is as follows: 
 
* createConfigWriteStream() always returns 0 (read-only filesystem) 
 
* createConfigReadStream() returns an empty MemoryReadStream instead 
  of NULL if scummvm.ini does not exist.  This is to make sure that 
  loadDefaultConfigFile() always clears out any old config data, as 
  I'll want to restart config parsing from scratch after a disc 
  swap.

svn-id: r51478
2010-07-29 19:11:49 +00:00
Max Horn
148c830d76 DS: Add WRAP_MALLOC support to ds.mk, update comments
svn-id: r51474
2010-07-29 16:24:25 +00:00
Max Horn
8de57b0b29 DS: Get rid of DS_NON_SCUMM_BUILD and DS_SCUMM_BUILD
svn-id: r51473
2010-07-29 16:24:08 +00:00
Max Horn
d22ebd358d BUILD: Unify how MODULE_DIRS is computed for backends
This should help avoid situations where MODULE_DIRS is not set to a
complete list of build dirs (which causes troubles with the automatic
header dependency detection logic).

On the long run, we should replace the relevant code by a macro or also
use rules.mk for this (with yet another if/else case add to it).

svn-id: r51467
2010-07-29 13:03:21 +00:00
Max Horn
2692e55208 BUILD: Fix MODULE_DIRS for WinCE port
svn-id: r51466
2010-07-29 13:02:30 +00:00
Max Horn
264d17ccc7 BUILD: Compile & link certain files only for specific BACKEND values
svn-id: r51465
2010-07-29 13:02:14 +00:00
Torbjörn Andersson
bbd3f0dbb3 ALSA: Be more intelligent when picking MIDI port
Often, a client has more than one available port. Pick the first one
that isn't already in use. For instance, on my computer client 17 is
the "Emu10k1 WaveTable", and it has four available ports. If, say,
aplaymidi is already playing on port 17:0, ScummVM will use port 17:1
instead. Otherwise the two programs will mess up each others
instruments and controller settings.

Of course, in reality I doubt that anyone will run two different MIDI
playing applications at once.

svn-id: r51380
2010-07-27 17:18:02 +00:00
Torbjörn Andersson
47f93e9d07 ALSA: Tweak capability and type flags for the MIDI port
This keeps ScummVM's own port from being included in the list of
available MIDI devices.

svn-id: r51378
2010-07-27 16:35:28 +00:00
Johannes Schickel
2db4e71b66 ALSA: Simplify device querying code.
Thanks to eriktorbjorn for some quick testing.

svn-id: r51366
2010-07-27 13:01:10 +00:00
Angus Lees
d508ba6766 Remove Android themeengine patch - an improved version is now part of
the main ScummVM codebase thanks to fingolfin :)

svn-id: r51362
2010-07-27 11:16:44 +00:00
Eugene Sandulenko
b3f08d183b SDL: Fix bug #3025258
Bug #3025258: "Cursor Leaves Trail in GUI when Screen is Shaking". Based
on patch provided by eriktorbjorn but extended with another edge case.

svn-id: r51212
2010-07-23 16:38:31 +00:00
Willem Jan Palenstijn
7b485a7978 GP2XWIZ: Fix warning
svn-id: r51203
2010-07-23 12:09:54 +00:00
Torbjörn Andersson
5b3f31feec General: Fixed building the SEQ MIDI driver
An #include was missing, causing the driver to never be built. Also fixed what
looked like a cut-and-paste error in generating the features string.

svn-id: r51056
2010-07-20 08:56:53 +00:00
Max Horn
37aa8a7499 BUILD: Unify adding -DUNIX to DEFINES; complete SEQ MIDI detection
* Added a yes/no variable _unix to configure, which controls when
  -DUNIX is added to DEFINES
* Enable SEQ MIDI via _seq_midi by default on UNIX type systems,
  except for those which override that.
* Switch SEQ MIDI code to check #define USE_SEQ_MIDI
  (alternatively, we could compile it only conditionally...)

svn-id: r51055
2010-07-20 08:25:13 +00:00
Max Horn
211fcfe7ba MIDI: Build and use ALSA driver if and only if USE_ALSA is defined
svn-id: r51053
2010-07-20 08:24:34 +00:00
Torbjörn Andersson
abae29a2dc ALSA: Get ALSA port settings from the new device config settings.
This is also an attempt to make the transition from the old settings to the
new ones a little less rough, by trying to put something sensible into the
first device, which is what's used by default. Currently it prefers 17:x
and 65:x since they're the old defaults, followed by 128:x since that's
probably TiMidity.

The old SCUMMVM_PORT environment variable still overrides any config
settings. I haven't made up my mind whether or not that's a good idea, but
at least it prints a warning message.

TODO: The old 'alsa_port' setting is not handled. It should probably be
used to set sensible defaults for the new settings, but I'm not sure where
this should be done.

TODO: The documentation will need to be updated, once everything is working
the way it should.

svn-id: r51019
2010-07-19 07:47:11 +00:00
Torbjörn Andersson
75dd75a737 SUBSYSTEM: ALSA music driver
We should probably open the sequencer the exact same way, both when
opening the driver and when asking it for available MIDI devices. Not
that I've been able to figure out the difference between "hw" and
"default" from the fine ALSA manual...

And I'm not sure we really need to try and keep compatibility with
ancient (pre-0.9.0?) ALSA any longer...

svn-id: r51014
2010-07-19 05:30:40 +00:00
Andre Heider
70dfcdfb54 trying to fix psp build for case sensitive filesystems.
svn-id: r50989
2010-07-18 12:53:24 +00:00
Yotam Barnoy
30d7517343 PSP: switched to using my memcpy
svn-id: r50982
2010-07-18 07:03:14 +00:00
Yotam Barnoy
844a332f8d PSP: forgot test files
svn-id: r50981
2010-07-18 06:59:25 +00:00
Yotam Barnoy
58a1fbc13c Made memcpy faster but not as fast with uncached mem.
svn-id: r50980
2010-07-18 06:49:56 +00:00
Max Horn
0b48a71c99 Remove PalmOS port
svn-id: r50964
2010-07-17 18:41:38 +00:00
Torbjörn Andersson
bc0c306110 If the ALSA driver hasn't been opened, closing it should do nothing. This keeps
ScummVM from crashing if, for instance, someone accidentally closes the driver
twice.

svn-id: r50870
2010-07-14 04:33:35 +00:00
Yotam Barnoy
762c569207 PSP: Typos in trace.h
svn-id: r50844
2010-07-13 08:00:22 +00:00
Max Horn
dcd520ce31 Get rid of yet another global object with constructor
svn-id: r50835
2010-07-12 23:19:56 +00:00
Max Horn
e2c1ee853a SDL: Tweak OSystem_SDL::detectSupportedFormats a bit
Previously, the code in OSystem_SDL::detectSupportedFormats
assumed that the arrays RGBList and BGRList had the exact
same length, and that the entries in each mirrored those in
the other 100%. Instead of relying on that, the code now
simply iterates over both lists separately. This changes the
resulting order a bit, but since we never gave any
guarantees on that, this should not matter.

svn-id: r50833
2010-07-12 23:19:08 +00:00
Max Horn
8e9d933658 SDL: Overhaul OSystem_SDL::getSupportedFormats
* Do not use global constructor for the RGBList and BGRList
  tables anymore, by moving them inside a function.
* Update the list of supported formats if the hardware
  screen surface changes. Previously, the list of supported
  pixel formats (and its order) was computed only once and
  then never changed.

svn-id: r50832
2010-07-12 23:18:44 +00:00
Max Horn
4237f9a416 DS: Fix OPT_SPEED and OPT_SIZE usage being reversed; add ARM7 files to 'make clean'
svn-id: r50745
2010-07-07 23:24:29 +00:00
Max Horn
f6afba1f19 DS: Split buildrule for scummvm.nds and scummvm.ds.gba
This parallels what I did in ds.mk

svn-id: r50744
2010-07-07 23:24:08 +00:00
Max Horn
6aa53ba3b8 DS: Remove cruft from Makefiles
svn-id: r50743
2010-07-07 23:23:44 +00:00
Max Horn
c4a626931b DS: Code formatting
svn-id: r50742
2010-07-07 23:23:19 +00:00
Max Horn
fe72d5dd78 DS: Fix some quirks in the NDS build system, remove some dead code
* remove (S)RAM save code (it has not been in use for quite some time)
* remove the lz compressor (was only used by ram save code)
* OPT_SPEED was set incorrectly
* dsmain.cpp was misspelled as ds_main.cpp
* remove unsed arm9 libcartreset (the copy in the arm7 directory
  still is around, though)

svn-id: r50741
2010-07-07 23:22:53 +00:00
Max Horn
61a200dcdd DS: Remove redundant lines from arm9/makefile
svn-id: r50736
2010-07-07 16:51:36 +00:00
Max Horn
fe409ea269 DS: cleanup arm9/makefile
svn-id: r50729
2010-07-06 22:29:45 +00:00
Max Horn
9b927b414a DS: Implemented (ugly, but working) support for optimization level overrides
svn-id: r50728
2010-07-06 22:14:06 +00:00
Max Horn
2343f8c60d DS: Add isScrollingWithDPad() to make code more readable
svn-id: r50727
2010-07-06 22:13:43 +00:00
Max Horn
edac80ad6b DS: Fix warning about anonymous struct
svn-id: r50709
2010-07-05 20:36:43 +00:00
Max Horn
429de8f6ef DS: More formating, made more vars static
svn-id: r50708
2010-07-05 20:36:11 +00:00
Max Horn
5d25d3821a DS: Only include NDS/scummvm_ipc.h where necessary; minor tweaks
svn-id: r50702
2010-07-05 19:10:56 +00:00
Max Horn
68d620ccab DS: Fix warnings, make some vars static, cleanup
svn-id: r50701
2010-07-05 19:10:20 +00:00
Max Horn
776c3a1d51 DS: Fix MODULE_DIRS value (now dependency tracking works correctly)
svn-id: r50694
2010-07-05 16:12:47 +00:00
Max Horn
75529dc402 DS: Fix various warnings and errors in the DS FS code
* Do not modify the strings passed to std_fopen anymore
* Correct signature of std_fread
* Do not cast away constness, nor perform unnecessary casts

svn-id: r50693
2010-07-05 16:12:31 +00:00
Max Horn
edb5210d38 DS: Fix error in std_fopen (warnings are great :)
svn-id: r50692
2010-07-05 16:12:10 +00:00
Max Horn
d2a24c0a95 DS: Remove unused portdefs.cpp
svn-id: r50691
2010-07-05 16:11:54 +00:00
Max Horn
782e43591a DS: Cleanup NDS portdefs.h a bit
* Don't #include "nds/ndstypes.h" everywhere
* Don't #define ITCM_DATA globally, it is only need in one place
* Fix STREAM_AUDIO_FROM_DISK definition (copy&paste error)
* Fix custom assert() implementation by using the do/while(0) trick
  for macros. Previously, there could be subtle errors caused by
  statements like
     if (COND) assert(...) else ...

svn-id: r50690
2010-07-05 16:11:34 +00:00
Max Horn
3d44870c8a NDS: Update GPL/copyright headers; add namespace DS closing comments
svn-id: r50689
2010-07-05 16:11:11 +00:00