4100 Commits

Author SHA1 Message Date
Jordi Vilalta Prat
10476048f8 I18N: Fix language detection in UNIX (not everyone speaks German yet)
svn-id: r54494
2010-11-26 10:40:19 +00:00
Johannes Schickel
03df495563 SDL: Hook up file logger to log on Windows.
For now the log file will be either "%APPDATA%/ScummVM/Logs/scummvm.log" or
"%USERPROFILE%/Application Data/ScummVM/Logs/scummvm.log" to match the
location of the default ScummVM configuration file.

svn-id: r54490
2010-11-26 00:52:04 +00:00
Johannes Schickel
425f284050 SDL: Hook up file logger to log on UNIX-like systems.
As discussed on -devel this always logs to ~/.scummvm/logs/scummvm.log.

svn-id: r54489
2010-11-26 00:51:42 +00:00
Johannes Schickel
189c9bf216 OSYSTEM: Add API to query the system locale.
I also adapted the SDL backend to implement the API.

svn-id: r54479
2010-11-25 18:40:56 +00:00
Max Horn
fbd1ae7eb6 LOG: Reset _startOfLine when opening a new log file
svn-id: r54452
2010-11-24 09:39:47 +00:00
Johannes Schickel
d93698fc1c BACKENDS: Add a basic logger implementation.
This is the logger I posted at our patch tracker. Item #3115757
"OSYSTEM: Basic logger". It includes the changes proposed by Max.

It is currently not hooked into any backend, since we still need to decide
where to log files, whether to have multiple log files etc.

svn-id: r54451
2010-11-24 00:08:26 +00:00
Johannes Schickel
dfb2b9cd2f PSP: Remove tabs from README.PSP.
svn-id: r54386
2010-11-19 17:09:47 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
Johannes Schickel
111384473b PSP: Update README.PSP.in with the latest changes to README.PSP.
svn-id: r54384
2010-11-19 16:52:09 +00:00
Lars Persson
17d8fafedd SYMBIAN : Updated for proper FORBIDDEN handling, added cdaudio support needed, updated version nr
svn-id: r54378
2010-11-19 13:23:33 +00:00
Lars Persson
824a4009c9 SYMBIAN : Remove Symbian FatalError implementation (not really used anymore for any current symbian phone)
svn-id: r54372
2010-11-19 12:49:33 +00:00
Max Horn
9fb1e2b17e COMMON: Change wrapBufferedWriteStream() to always disposes wrapped stream
This is the only we need right now, and it saves a few bytes per
instance. The template approach I used before has the drawback that it
increases the binary size, which negates the benefit. Thanks to LordHoto
for pointing this out.

svn-id: r54344
2010-11-18 20:27:15 +00:00
Max Horn
9531b7766c PS2: Fix use of Ps2File::_sema w/o __PS2_FILE_SEMA__ guard
svn-id: r54343
2010-11-18 20:24:27 +00:00
Johannes Schickel
e1030e53a5 BACKENDS: Implement logging API proposed by Max on -devel.
This commits a slightly modified patch from my patch tracker item #3104630
"OSYSTEM: Add logging API as proposed by Max on -devel".

I was not able to test compilation on Android and SamsungTV, since there is no
toolchain for those on buildbot (or I was too blind to find them).

svn-id: r54339
2010-11-18 19:12:14 +00:00
Max Horn
c02a233084 DS: Add note that ARM_ADPCM is unused (and fix a typo)
svn-id: r54335
2010-11-18 17:45:07 +00:00
Max Horn
7444a06c61 DS: cleanup
svn-id: r54334
2010-11-18 17:42:28 +00:00
Max Horn
316ba2e6a9 DS: Replace GBAMPSaveFile by DSFileStream + wrapBufferedWriteStream
svn-id: r54332
2010-11-18 17:31:12 +00:00
Max Horn
b8995eadfc DS: Remove write buffering in DSFileStream, use wrapBufferedWriteStream instead
svn-id: r54331
2010-11-18 17:30:00 +00:00
Max Horn
24f4d97901 DS: Avoid needlessly allocating temporary Common::String instances
svn-id: r54329
2010-11-18 17:15:35 +00:00
Max Horn
152e52d015 COMMON: Make implementation of Buffered*Stream classes internal
svn-id: r54326
2010-11-18 17:02:51 +00:00
Max Horn
b8f0026739 DS: Port changes from 1.2.0 branch to trunk
svn-id: r54325
2010-11-18 17:01:30 +00:00
Max Horn
bac018a3aa DS: Two more 'FILE' related fixes/workarounds
svn-id: r54321
2010-11-18 15:42:52 +00:00
Max Horn
51a954c1dd DS: Add some FIXME/TODO comments on changes that need to be applied to the DS backend
svn-id: r54318
2010-11-18 13:17:25 +00:00
Max Horn
16d9e0f14a DS: Fix compilation despite use of 'forbidden' symbols
svn-id: r54317
2010-11-18 13:13:48 +00:00
Yotam Barnoy
50e6fe264b PSP: reduced fragmentation by allocating overlay just once
svn-id: r54316
2010-11-18 11:32:53 +00:00
Yotam Barnoy
5c8b4dbee7 PSP: added backtracing function for debugging
Currently not used by anything.

svn-id: r54312
2010-11-18 07:52:04 +00:00
Max Horn
668adaa461 GUI: Rename gui/GuiManager.* to gui/gui-manager.*
svn-id: r54265
2010-11-16 10:19:01 +00:00
Max Horn
427dc1ae93 GUI: Move major widgets to new directory gui/widgets
Also renamed the source/header files, now they are more closely
aligned to how we rename most other source files

svn-id: r54264
2010-11-16 10:11:57 +00:00
Max Horn
abe1959d36 COMMON: Simplify DECLARE_SINGLETON macro
This makes it possible to write
  DECLARE_SINGLETON(foo);
instead of
  DECLARE_SINGLETON(foo)
without causing a warning about an extra semicolon.
The extra semicolon helps some editors at parsing the C++ code.

svn-id: r54258
2010-11-16 08:23:13 +00:00
Yotam Barnoy
2e9b304d76 PSP: changed renderer to render huge images properly
The PSP HW wasn't able to calculate the proper stretching when given the whole image size on a huge image. This is also a better way to do it because we're not overwriting tiles of the texture.

svn-id: r54190
2010-11-10 16:22:00 +00:00
Fabio Battaglia
77a636aaec N64: correct wrong check in romfs stream code
my implementation of romfs_seek is based on lseek, not on fseek,
so it returns the offset on successful completion, not 0, corrected
the check in RomfsStream::seek().

svn-id: r54151
2010-11-09 11:00:56 +00:00
Max Horn
82e473bc3b BACKENDS: Partial merge of gsoc2010-opengl: Audio CD changes only
This commit contains the AudioCDManager changes from the gsoc2010-opengl
branch. The other changes in that branch are restricted to the backends
directory only (plus configure).

The Nintendo DS and Dreamcast ports still need to be ported over to
the new Audio CD system, but that should be fairly easy to do.

svn-id: r54147
2010-11-08 22:53:36 +00:00
Max Horn
daf3fb0df7 WINCE: Remove tons of obsolete workaround code for 'missing' headers and funcs
svn-id: r54089
2010-11-05 10:31:36 +00:00
Max Horn
7ace85e636 PLUGINS: Simplify ELF plugin providers & DLObject subclasses
* Remove DLObject virtual methods allocSegment and freeSegment.
  As long as all DLObject implementations use memalign + free to
  allocate/release segments, there is no point in wrapping those.
  This enables further simplifications.
* Add TemplatedELFPlugin template class. Use this instead of explicit
  ELFPlugin subclasses.
* Rename DLObject::discard_symtab to discardSymtab

svn-id: r54082
2010-11-05 01:20:34 +00:00
Max Horn
102e7ee88c PLUGINS: Add EM_SH to elf32.h (e_machine type used by DC backend)
svn-id: r54081
2010-11-05 01:19:45 +00:00
John Willis
b7f1e3b239 GPH: Update README-GPH to suggest even more WiKi reading.
svn-id: r54064
2010-11-04 14:12:30 +00:00
Yotam Barnoy
f5bfae598c PSP: cleaning up some stuff from plugin merge
svn-id: r54060
2010-11-04 06:28:34 +00:00
Yotam Barnoy
50d2f7a6be DS: moved build-ds.sh to DS directory. It's currently unused but has a good way of reducing dynamic size
svn-id: r54059
2010-11-04 06:22:24 +00:00
Yotam Barnoy
3fedacdb43 DC: remove multi-build of dc-provider that slipped in with plugin merge.
svn-id: r54058
2010-11-04 05:51:58 +00:00
Max Horn
99cf0e3936 COMMON: Undo changes to common/ptr.h, remove Common::ScopedPtrC
The deletePointer() method approach cannot work, as it is called
by the destructor of the base class.
A possible correct solution would be to enhance ScopedPtr with a
"deleter" object like SharedPtr. But this seems overkill as long as we
need it in only one place.

svn-id: r54057
2010-11-04 00:49:12 +00:00
Yotam Barnoy
13b904d282 Merge from gsoc2010-plugins
This merge was extremely difficult to carry out. It wasn't entirely SVN's fault -- there were several merges to the branch that were done by hand. Please check for any issues and regressions. Also note that the DS makefile was not copied over since the "one at a time" plugin mode currently has too much fragmentation ie. it doesn't work.

svn-id: r54051
2010-11-03 22:01:01 +00:00
Yotam Barnoy
e56a3747d2 Dummy file creation through SVN to allow merging gsoc plugins via mercurial
svn-id: r54046
2010-11-03 06:23:16 +00:00
John Willis
7f354ac7e0 OPENPANDORA: Add FORBIDDEN_SYMBOL_ALLOW_ALL define to enable use of forbidden symbols.
svn-id: r54041
2010-11-02 11:20:43 +00:00
Max Horn
06876671e5 SYMBIAN: Trigger a compiler error on systems where __GCC32__ is set, instead of producing incorrect code
svn-id: r54005
2010-11-01 16:02:47 +00:00
Max Horn
e27b05ef35 COMMON: Rename String::printf() to String::format()
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.

The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.

svn-id: r54004
2010-11-01 16:02:28 +00:00
Max Horn
c94278fb20 GP2X: Fix warnings about unused decls
svn-id: r53982
2010-10-31 17:24:27 +00:00
Max Horn
6dc5fccfe3 WINCE: Fix assert() implementation
svn-id: r53980
2010-10-31 17:23:31 +00:00
Max Horn
a4bdd3cdec WINCE: Code formatting
svn-id: r53979
2010-10-31 17:11:43 +00:00
Max Horn
086fe78af1 WINCE: Enable use of forbidden symbols, cleanup
I tried to untangle the header interdependencies a bit, but this
is still quite a mess.
This commit also fixes some warnings.

svn-id: r53978
2010-10-31 17:10:45 +00:00
Max Horn
ae829727da PS2: Enable another use of forbidden symbols
svn-id: r53977
2010-10-31 17:01:47 +00:00