Thierry Crozat
a605c7fd69
OSYSTEM: displayMessageOnOSD() now accepts non-ASCII strings
...
It should now accept strings encoded using the current
TranslationManaged charset (e.g. translated text).
2011-06-06 23:20:10 +01:00
Max Horn
c1b68a7fd7
COMMON: Clarify & correct OSystem::displayLogFile() docs
2011-06-06 17:56:36 +02:00
Max Horn
0403cfc060
COMMON: Attempt to make 'forbidden symbol' error more helpful
2011-06-06 17:10:03 +02:00
Max Horn
0a2fb9a465
COMMON: Make more symbols forbidden
2011-06-06 17:05:35 +02:00
Max Horn
c81e94b252
BACKENDS: Unify EventManager setup
2011-06-06 16:13:57 +02:00
Max Horn
0e20bc0086
COMMON: Remove PS2 / NDS hacks in system.cpp
2011-06-06 15:39:05 +02:00
Max Horn
c847522422
BACKENDS: Add OSystem::getDefaultConfigFileName
...
This is used to provide default implementations for createConfigWriteStream
and createConfigReadStream, which can be used by most backends.
Note that backends can still override createConfigRead/WriteStream;
this could be useful if settings on some port are not stored in a
regular file (think 'Windows registry', for a hypothetical example).
2011-06-06 15:30:21 +02:00
Max Horn
afb06b51cc
BACKENDS: Unify AudioCD manager instantiation
2011-06-06 15:02:33 +02:00
Alyssa Milburn
6842227ac2
COMMON: Add kInfo LogMessageType.
2011-06-06 12:26:01 +02:00
Max Horn
a6e5b97e9f
COMMON: Remove vfprintf call from XML parser
2011-06-06 11:19:09 +02:00
Max Horn
ce32745d9c
BACKENDS: Replace OSystem::disableCursorPalette by setFeatureState calls
2011-06-04 11:55:56 +02:00
Max Horn
6575cd195b
COMMON: Clarify OSystem feature flags docs a bit
2011-06-04 11:55:56 +02:00
Max Horn
91b889e2d3
COMMON: Rename kFeatureCursorHasPalette -> kFeatureCursorPalette
2011-06-04 11:55:56 +02:00
Max Horn
0a0258edcf
COMMON: Let Common::normalizePath normalize '..' in paths
...
There are some unit tests to verify that this works correctly.
There is a small chance that this causes regressions in weird setups.
2011-06-03 17:33:07 +02:00
Max Horn
3cc2e5b927
COMMON: Access mac res fork via FSNode instead of StdioStream
...
This fixes linker problems with the unit tests on Mac OS X. it is also
"more proper" to use the high-level FSNode API. StdioStream is a
(relatively) low-level wrapper intended for use inside of backends only.
2011-06-03 17:30:30 +02:00
Max Horn
279a5b4f32
BACKENDS: Add OSystem::displayLogFile interface + OSX implementation
2011-06-03 13:36:04 +02:00
Matthew Hoops
547fd1bdca
COMMON: Cleanup QuickTime variable and struct naming
2011-06-03 00:58:29 -04:00
Matthew Hoops
2e06681698
COMMON: Begin objectifying QuickTimeParser::SampleDesc further
...
This is preparation for multiple video and audio tracks
2011-06-02 23:44:40 -04:00
Johannes Schickel
d2a8e8023e
COMMON: Implement two simple workaround wrappers for _vsnprintf and _snprintf for MSVC.
...
This should assure vsnprintf and snprintf will now also always null
terminate the result even for MSVC.
Currently the functions are placed in scummsys.h, but that causes us
to include two standard C library headers there (for MSVC at least).
This is not particulary nice, so we should think of a better solution
here.
2011-06-01 22:18:28 +02:00
Johannes Schickel
007a33515f
COMMON: Add note about us defining vsnprintf as _vsnprintf for older MSVC versions.
2011-06-01 17:31:33 +02:00
Johannes Schickel
2f8e9b954e
COMMON: Add comment about MSVC's _snprintf.
...
This includes a FIXME, since _snprintf behaves differently to snprintf.
Not only in the return value (which is a minor difference, since we usually
do not use it), but also since it does not always include a terminating null.
2011-06-01 17:28:59 +02:00
clone2727
49a8f7675f
Merge pull request #20 from scott-t/t7g-ios
...
T7G iOS support
2011-06-01 07:04:05 -07:00
Max Horn
a4d105c902
COMMON: Move SDL endian check a bit down
2011-06-01 10:43:02 +02:00
Matthew Hoops
aa49b38c5a
Merge remote branch 'upstream/master' into t7g-ios
...
Conflicts:
engines/groovie/script.cpp
2011-05-31 14:16:29 -04:00
Max Horn
c86a6c466f
COMMON: Include SDL_endian.h instead of SDL_byteorder.h
2011-05-31 18:08:25 +02:00
Max Horn
811b257014
COMMON: Simplify OverlayColor definition
...
This typedef still should be moved somewhere else. Maybe a header file
of its own?
2011-05-31 14:22:19 +02:00
Max Horn
e06ca6560f
COMMON: Move scumm_str(n)icmp declaration to str.h
2011-05-31 14:19:25 +02:00
Max Horn
1c198cec1b
COMMON: Move some weird WinCE/MSVC snprintf-#define around
2011-05-31 14:06:47 +02:00
Max Horn
8654e846e4
COMMON: Shorten endianess / mem align guessing logic in scummsys.h
2011-05-31 14:05:37 +02:00
Max Horn
2d6be5d077
COMMON: Move more stuff from scummsys.h to portdefs.h
2011-05-31 13:56:28 +02:00
Max Horn
9c3e2e43bd
COMMON: Move some code from scummsys.h to relevant portdefs.h files
2011-05-31 13:48:03 +02:00
Johannes Schickel
263adb5cfc
COMMON: Limit pragma warning use in algorithm.h to MSVC.
...
Since we only want to disable a MSVC specific warning with it and other
compilers might have different warnings numbers it is safer to only target
MSVC here.
2011-05-29 21:12:42 +02:00
Matthew Hoops
9539017ee3
ALL: initialise -> initialize
2011-05-25 11:17:11 -04:00
Matthew Hoops
eea482fa43
ALL: behaviour -> behavior
2011-05-25 10:50:46 -04:00
Max Horn
39076ef972
BUILD: Rename UNIX #define to POSIX
2011-05-25 13:23:03 +02:00
Littleboy
89e954c653
COMMON: Silence MSVC warning for Common::gcd calls with an unsigned type
2011-05-24 00:56:48 -04:00
Max Horn
c82f117488
COMMON: Add putc(har) and getc(har) to forbidden symbols
...
Sorry, buildbot...
2011-05-24 00:19:32 +02:00
Max Horn
20cad6e8b6
COMMON: Modify Base::processSettings, get rid of Common::kArgumentNotProcessed
...
Instead of defining a hacked up Common::Error code, split the return
value of processSettings into two parts: An error code, and a value
which indicates whether the specified command was completely handled
by processSettings or not.
2011-05-23 19:39:25 +02:00
Max Horn
6f6051a9e1
COMMON: Mark more symbols as forbidden
2011-05-23 19:12:26 +02:00
Max Horn
8e3aafd30d
COMMON: Provide our own implementations for scumm_str(n)icmp
...
This takes up a tiny little bit of extra binary size, but gets
rid of some awful #ifdef hackery.
2011-05-23 19:12:25 +02:00
Max Horn
904739cc00
COMMON: Document that Stream API is meant to imitate ISO C FILE semantics
2011-05-18 13:06:41 +02:00
Max Horn
9b2ef340dc
COMMON: Forbid use of some more symbols
2011-05-17 12:58:34 +02:00
Max Horn
d165292234
COMMON: Remove unused RandomSource destructor, clarify comments, cleanup
2011-05-17 12:23:41 +02:00
Max Horn
fc9b8d2a71
COMMON: Remove auxillary RandomSource constructor
2011-05-17 12:17:28 +02:00
Max Horn
4cbe4ede66
COMMON: Registers RandomSources in constructor with the event recorder
...
This also removes the dependency of engines on the event recorder header
and API, and will make it easier to RandomSources that are not properly
registered.
2011-05-17 12:17:26 +02:00
Oystein Eftevaag
305c13a4aa
IPHONE/OSX: Updated xcode project
2011-05-16 22:26:58 -04:00
Max Horn
88319a727a
COMMON: Fix inserting an array into itself under certain conditions
2011-05-16 15:23:17 +02:00
Willem Jan Palenstijn
ffd0b20af7
COMMON: Don't allocate zero-sized storage in array
2011-05-16 14:44:45 +02:00
Max Horn
9081ab4402
COMMON: Unify Array memory allocation
...
We also change how alloc failures are handled: Instead of using
assert(), which is usually disabled in release builds on various
platforms, we now *always* catch this situation and invoke error() if
necessary.
2011-05-16 14:22:54 +02:00
Max Horn
eedb2d721f
COMMON: Change Array::insert_aux to immediately assign newly allocated memory to _storage
2011-05-16 13:58:59 +02:00