Commit Graph

2406 Commits

Author SHA1 Message Date
Thierry Crozat
2109fc7a3c COMMON: Improve loading of translations data file
Now if the header of the file is not correct it continues to look for a
valid file, while before if the first file found was obsolete or corrupted
translation was disabled even if a valid file was present in the search
path.
2011-06-22 22:48:08 +01:00
Eugene Sandulenko
33ce6e60fd Merge pull request #26 from Littleboy/taskbar
Taskbar integration
2011-06-22 13:35:37 -07:00
Johannes Schickel
3b7c91f2a7 COMMON: Move HerculesDimensions enum to SCUMM.
The enum is only used inside the SCUMM engine so it is rather pointless to
keep it in common/util.h right now. Also if we really want it in some common
place it should probably be better in graphics/ too.
2011-06-21 16:59:50 +02:00
Willem Jan Palenstijn
5674dda4cc COMMON: Fix conflicting comment 2011-06-20 16:27:12 +02:00
Max Horn
88913c0139 ALL: Remove trailing whitespaces
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
  git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Max Horn
b81207a04e COMMON: Replace some vsnprintf/STRINGBUFLEN uses by vformat 2011-06-18 01:36:16 +02:00
Max Horn
e792adb1b8 COMMON: Add vformat() function (Common::String analog to vsprintf) 2011-06-18 01:36:15 +02:00
Max Horn
f7c1e7d002 COMMON: Remove default implementation of OSystem::logMessage 2011-06-17 20:50:41 +02:00
Eugene Sandulenko
94ad45b058 Merge pull request #30 from tsoliman/configure-enhancement-warning-clean
Configure enhancement warning clean
2011-06-17 10:19:57 -07:00
Max Horn
da3fff8ab3 COMMON: Make use of Common::parseBool 2011-06-17 10:38:16 +02:00
Tarek Soliman
4d0bba314d ENGINES: Warn user about games marked with ADGF_UNSTABLE flags
ADGF_UNSTABLE is always warned about.
ADGF_TESTING is only warned about when running
configure with --enable-relase.

Both warnings are subject to the enable_wip_game_warning
config option.
2011-06-16 13:37:13 -05:00
Julien
599695bc4f COMMON: Change TaskbarManager to the new module slot interface 2011-06-16 14:27:06 -04:00
Littleboy
9614834548 BACKENDS/COMMON/GUI: Remove complete support for TaskbarManager when taskbar integration is not enabled 2011-06-16 14:23:28 -04:00
Littleboy
7458073bad COMMON: Update TaskbarManager header with better documentation and examples of use 2011-06-16 14:23:20 -04:00
Littleboy
28aa4f0f33 COMMON: Add overall documentation to TaskbarManager interface 2011-06-16 14:23:17 -04:00
Littleboy
e1dc9cdc0b BACKENDS: Add support for count status to TaskbarManager
- Show the number of found games when using the massadd dialog
2011-06-16 14:23:12 -04:00
Littleboy
cd7822a29f BACKENDS: Add engine-level accessor for TaskbarManager 2011-06-16 10:35:24 -04:00
Littleboy
c0ec09ac66 BACKENDS: Implement Win32 taskbar progress state and recent list 2011-06-16 10:30:06 -04:00
Littleboy
71e457783e BACKENDS: Add generic TaskbarManager class to handle taskbar integration 2011-06-16 10:26:51 -04:00
Max Horn
7be9a57524 COMMON: Fix code formatting, rename stuff for consistency 2011-06-15 23:21:54 +02:00
Vladimir
e4c9ae7a54 COMMON: fixed resize 2011-06-15 17:30:43 +02:00
Vladimir
e3178397ce COMMON: added assign(T*, T*) 2011-06-15 17:29:52 +02:00
Thierry Crozat
38c9988938 COMMON: Fix crash in TranslationManager when reading long strings
It was writing data beyond the end of a buffer. This change makes
sure this does not happen. It only changes reading of the messages
since the language codes, charset names and contexts are always
much smaller than the buffer.
2011-06-14 23:15:50 +01:00
Max Horn
7ab553d72a COMMON: Do not try to read from res forks of non-existant files 2011-06-10 22:30:03 +02:00
Max Horn
28c5d298f5 COMMON: Fix OSystem docs 2011-06-08 14:39:30 +02:00
Max Horn
fce7f90a94 BACKENDS: Shuffle backends class hierarchy and module initialization 2011-06-08 14:29:22 +02:00
Max Horn
0b7f475e35 BACKENDS: Add OSystem::resetGraphicsScale() default implementation 2011-06-08 12:10:49 +02:00
Alyssa Milburn
bdd5256e15 COMMON: Add headers needed for delete calls. 2011-06-08 11:44:08 +02:00
Max Horn
997f0a1900 BACKENDS: All backends use _savefileManager now, adapt OSystem accordingly 2011-06-07 14:57:58 +02:00
Max Horn
f13e671759 BACKENDS: All backends use _timerManager now, adapt OSystem accordingly 2011-06-07 14:57:58 +02:00
Max Horn
04afdf7c7d BACKENDS: Move more 'manager slots' from ModularBackend to OSystem 2011-06-07 14:57:56 +02:00
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