2446 Commits

Author SHA1 Message Date
Johannes Schickel
bcd07d35bb OSYSTEM: Mention that our OSystem graphics API is not thread safe.
Based on f621f6a5059ec619ae9ea1045548e62a27e99ab4 and the fact that our OpenGL
based backends do not (and sometimes cannot easily) implement it in a thread
safe manner.
2011-08-06 18:55:32 +02:00
Alyssa Milburn
df3bc62a3a COMMON: Change param type of processDelayMillis to fix build. 2011-08-06 18:14:28 +02:00
D G Turner
ad936e9f8c COMMON: Corrected Previous Commit.
Common::String class is in common/str.h, not string.h...
2011-08-06 15:52:36 +01:00
D G Turner
fb0a05c4cd COMMON: Fix Missing Dependency In Timer Header.
This should fix the PSP build.
2011-08-06 15:49:11 +01:00
Eugene Sandulenko
baf65bc872 RECORDER: Added stub for delayMillis() processing 2011-08-06 11:31:12 +01:00
Eugene Sandulenko
2fa17c44ed JANITORIAL: Remove SVN keywords 2011-08-06 11:30:47 +01:00
Eugene Sandulenko
78f1ea7690 OSYSTEM: extended installTimerProc() with timer ID parameter 2011-08-06 11:28:35 +01:00
Alyssa Milburn
a8896be85e COMMON: Initialize more z_stream fields before calling inflateInit2.
The zlib documentation and examples claim this is needed, as spotted
by LordHoto.
2011-08-04 21:55:28 +02:00
Oystein Eftevaag
9044e17499 Merge pull request #52 from CeRiAl/macosx-sparkle
MACOSX: Add Sparkle support
2011-08-02 16:09:58 -07:00
Johannes Schickel
950faa4143 COMMON: Limited gcc specific intLog2 to gcc 3.4 or newer.
Older gcc versions did not include __builtin_clz, which made the PS2 port
fail to compile, since it uses 3.2.2.
2011-07-24 20:18:21 +02:00
Johannes Schickel
a1bfbe65ba COMMON: Add an optimized intLog2 implementation for gcc using __builtin_clz.
This is done as discussed here:
54f25aa843
2011-07-24 19:54:49 +02:00
Johannes Schickel
b609100a56 COMMON: Let intLog2 return an int instead of uint32, since it should return -1 for 0. 2011-07-24 19:53:48 +02:00
CeRiAl
f60d6f7a97 MACOSX/UPDATES: Streamline UpdateManager
Moved UpdateManager related code from backends/modular-backend.* to
common/system.*. Added switch --enable/disable-updates to be able
to disable updates support generally.
2011-07-19 21:35:37 +02:00
CeRiAl
828f1884b4 MACOSX: Add Sparkle support 2011-07-19 21:33:01 +02:00
Littleboy
da60ff3ded JANITORIAL: Fix MSVC warnings
- Conversion from double to float
 - Unary minus operator applied to unsigned type
 - ARRAYSIZE redefinition
2011-07-19 14:12:07 -04:00
Matthew Hoops
9ad45e28a1 COMMON: Fix some formatting 2011-07-19 10:31:03 -04:00
Matthew Hoops
6334ec413f COMMON: Move cosine/sine tables out of header files
Access is now restricted to using the getSineTable()/getCosineTable() helper functions.
2011-07-19 00:45:16 -04:00
D G Turner
54f25aa843 COMMON: Renamed Integer Log2 function from log2 to intLog2.
This avoids naming collisions with system libraries on some platforms
i.e. DS, DC where the log2 is realised by macro.
2011-07-19 02:29:13 +01:00
Sven Hesse
45f1f1275c COMMON: Document the BitStream a bit more 2011-07-19 01:48:45 +02:00
clone2727
6370984b22 Merge pull request #50 from clone2727/bink
Add support for Bink video to SCUMM HE
2011-07-18 16:04:39 -07:00
Matthew Hoops
26d15ce675 COMMON: Fix comment 2011-07-18 11:53:47 -04:00
Matthew Hoops
87b4ef5547 COMMON: Update code from eos 2011-07-18 10:28:10 -04:00
Matthew Hoops
e6171fbb74 COMMON: Update class documentation to say they're now used by SCUMM 2011-07-18 10:21:20 -04:00
Matthew Hoops
c4d3a86010 COMMON: Remove USE_BINK checks from header files 2011-07-18 10:13:50 -04:00
Matthew Hoops
a50abde1b1 BUILD: Allow for disabling Bink support 2011-07-13 12:08:26 -04:00
Littleboy
8e75d9c84b COMMON: Update documentation comment for TaskbarManager slot 2011-07-06 14:33:40 -04:00
Matthew Hoops
7dc7271316 COMMON: Remove unused vector2orientation function 2011-07-03 13:32:05 -04:00
Matthew Hoops
9dd8650872 COMMON: Cleanup BitStream
Fix mismatched new[]/free and restored a missing statement
2011-07-02 19:44:04 -04:00
Johannes Schickel
7e4224e52a COMMON: Fix compilation when USE_HASHMAP_MEMORY_POOL is not defined. 2011-07-03 00:16:07 +02:00
Matthew Hoops
4ace7f626b VIDEO: Add Bink video decoder
Based on eos' code which is in turn based on FFmpeg's code
2011-07-02 16:36:37 -04:00
Matthew Hoops
b44ea652ed COMMON: Add DCT math code
Based on eos' code which is based on FFmpeg's code
2011-07-02 15:30:22 -04:00
Matthew Hoops
f311a7ee67 COMMON: Add RDFT math code
Based on eos' code which is based on FFmpeg's code
2011-07-02 15:28:09 -04:00
Matthew Hoops
3aefa913fa COMMON: Add an FFT math handler
Based on eos' code which is based on FFmpeg's code
2011-07-02 15:23:49 -04:00
Matthew Hoops
0aa58b9033 COMMON: Add a Huffman bitstream decoder
Based on eos' code
2011-07-02 15:20:34 -04:00
Matthew Hoops
1d4ec6f1d1 COMMON: Add some simple math utilities
Based on eos' code
2011-07-02 15:15:04 -04:00
Matthew Hoops
6ff94e2554 COMMON: Add a BitStream class
Based on eos' BitStream
2011-07-02 15:08:02 -04:00
Ori Avtalion
aa0f307e06 ALL: Require DECLARE_SINGLETON to be used in the Common namepsace
Silences the clang warning:

  static data member specialization of '_singleton' must
  originally be declared in namespace 'Common'; accepted as a C++0x
  extension [-Wc++0x-extensions]

Wrapping "namespace Common {}" around the macro assignment causes clang
to complain about a spurious semicolon, and removing the semicolon at
the end of the macro causes some editors to misbehave.

Changing the requirement of using the macro in one namespace (the
global) to another (Common) seems a small price to pay to
silence a warning.
2011-06-30 22:41:41 +03:00
Thierry Crozat
b35f4d31a6 COMMON: Look for translations.dat in Theme path before using SearchMan 2011-06-24 20:21:08 +01:00
Littleboy
b694a78f62 ANALYSIS: Add static casts to is* functions
This fixes a potential problem with passing char values that would be sign-extended and yield unexpected results.
See http://msdn.microsoft.com/en-us/library/ms245348.aspx
2011-06-23 08:52:52 -04:00
Julien
53c4a190fc COMMON: Add abort() to the list of forbidden symbols 2011-06-23 15:11:38 +08:00
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