Commit Graph

2565 Commits

Author SHA1 Message Date
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
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
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
Max Horn
85d5eec950 COMMON: Set _capacity to just _size in Common::Array::operator= 2011-05-16 13:50:06 +02:00
Max Horn
0bbb412249 COMMON: RemoveAvoid redundant typedefs if config.h is present 2011-05-14 10:41:17 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Matthew Hoops
a1d41da096 Merge remote branch 'upstream/master' into t7g-ios
Conflicts:
	audio/decoders/qdm2.h
	common/util.cpp
	engines/groovie/music.cpp
	engines/groovie/resource.h
	video/qt_decoder.cpp
	video/qt_decoder.h
2011-05-11 00:30:28 -04:00
Max Horn
9511af6682 COMMON: Always prefer GCC 4.x versions of READ_UINT*/WRITE_UINT*
In addition, we use them if in GCC >= 3.3 if unaligned access is
possible. The GCC variants of these macros also contain protection
against overzealous compilers' static aliasing optimizations.
2011-05-10 15:38:18 +02:00
Max Horn
8754c86686 COMMON: Refactor typedefs a bit 2011-05-10 11:02:08 +02:00
Max Horn
76780268f2 COMMON: Refactor scummsys.h 2011-05-09 16:23:22 +02:00
Max Horn
3920cfe69e COMMON: Do not #undef _MSC_VER 2011-05-09 16:23:22 +02:00
Max Horn
49ab6d0289 COMMON: If config.h is present, don't use hardcoded settings from scummsys.h 2011-05-09 16:23:22 +02:00
Max Horn
dfff22e56b COMMON: Unify definition of scumm_str(n)icmp 2011-05-09 16:23:22 +02:00
Max Horn
db82d282ea N64: Remove (u)int64 typedefs from common/scummsys.h 2011-05-09 16:23:21 +02:00
Max Horn
b4058a696a COMMON: Tweak some comments 2011-05-09 14:32:03 +02:00
Sven Hesse
88d562a361 COMMON: Add a class SafeSubReadStream
SafeSubReadStream is basically a SeekableSubReadStream that
re-seek()s the parent stream before each read(). That way, more than
one SafeSubReadStream of the same parent stream can be used safely
at the same time, at the cost of increasing IO.
2011-05-06 16:47:48 +02:00
Matthew Hoops
44ad7d45ba COMMON: Remove convertCrsrCursor()
Graphics::MacCursor is its replacement
2011-05-05 19:48:57 -04:00
Matthew Hoops
029bfc0c60 COMMON: Fix spelling of 'Philips' 2011-05-03 15:55:40 -04:00
Max Horn
2fa63ca015 COMMON: Forbid use of getcwd&getwd; add macro to enable unistd.h compatibility 2011-05-03 14:30:25 +02:00
Max Horn
bdc7414f80 COMMON: Don't declare a fake printf 2011-05-03 11:41:01 +02:00
Johannes Schickel
c0bd496c90 COMMON: Fix compilation when zlib support is enabled. 2011-05-02 17:19:35 +02:00
Max Horn
59e77ed667 ALL: Mark printf and various other symbols as forbidden
Right now, a few places in the frontend code still use printf and
consorts. We mark the affected files with a FIXME for now, and
add a dedicated exception for each. To be fixed!

Also tweak FORBIDDEN_SYMBOL_REPLACEMENT to hopefully really always
enforce a compiler error
2011-05-02 16:31:31 +02:00
Thierry Crozat
6d0451105b OSYSTEM: Clarify doc for getGraphicsMode() 2011-04-29 12:52:35 +01:00
Ori Avtalion
e52d54b55e NDS: Fix compilation 2011-04-28 22:19:35 +03:00
Ori Avtalion
a88e355b2d COMMON: Fix compilation on backends that USE_RGB_COLOR 2011-04-28 19:58:45 +03:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Ori Avtalion
3e01d35281 JANITORIAL: Format more forward declarations to follow convention 2011-04-28 12:32:01 +03:00
Ori Avtalion
cd6ee0589d JANITORIAL: Format forward declarations to follow convention 2011-04-28 12:20:34 +03:00
Littleboy
55650f364c COMMON: Add proper error handling to the ZipArchive class
- Add check in listMembers and skip files that can't be enumerated.
 - Add checks for all function calls in createReadStreamForMember (and no longer return a stream from an uninitialized buffer when the file cannot be read).
2011-04-25 07:20:16 -04:00
Littleboy
62e8233009 COMMON: Fix MSVC warning in PEResources::parseResourceLevel() 2011-04-24 17:08:07 -04:00
Johannes Schickel
c6112f7383 COMMON: Do not call ReadStream::eos in SubReadStream::read.
Instead I moved the call to ReadStream::eos into SubReadStream::eos.

fuzzie pointed out that in certain cases this resulted in a lot of eos calls
before. Those were rather needlessly, since checking the eos bit of the
decorated stream in read does not give any advantage over checking it when
the client code really wants to test the eos flag.
2011-04-19 18:08:47 +02:00
Max Horn
3a574199b0 COMMON: Cleanup names/handling of some error codes 2011-04-18 18:22:04 +02:00
Max Horn
1037ed2470 COMMON: Clarify error naming conventions
Not all error codes comply with these yet.
2011-04-18 18:22:04 +02:00
Max Horn
cd2fcaf4ca COMMON: Remove kInvalidPathError 2011-04-18 18:22:03 +02:00
Max Horn
7c13aa48cd COMMON: Tweak extra text handling in Common::Error 2011-04-18 18:22:03 +02:00
Max Horn
7ccba1fced COMMON: Fix typo 2011-04-18 18:22:03 +02:00
Max Horn
bac8fa70fd COMMON: Cleanup error messages 2011-04-18 18:22:03 +02:00
Max Horn
73f04118f3 COMMON: Rename Error to ErrorCode, introduce new Error class 2011-04-18 18:22:02 +02:00
Eugene Sandulenko
ce0cc0ee85 COMMON: Partial fix for #3087922: COMMON/BASE/BACKENDS: Code analysis warnings 2011-04-17 15:25:06 +03:00
Matthew Hoops
6d153f311c Merge remote branch 'upstream/master' into t7g-ios
Conflicts:
	video/qt_decoder.cpp
2011-04-13 16:04:29 -04:00
Matthew Hoops
4366f3632c COMMON: Cleanup QuickTime's readSTTS() 2011-04-12 14:01:42 -04:00
Max Horn
f1471689cf COMMON: Let MKTAG always return an uint32 2011-04-12 17:23:21 +02:00
Max Horn
58b4cc0220 COMMON: Use correct MKTAG definition, stupid 2011-04-12 17:04:49 +02:00
Max Horn
0ce2ca4e00 COMMON: Replace MKID_BE by MKTAG
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
Max Horn
a8b3501252 COMMON: Drop totally obsolete & outdated DEC C++ 'support' 2011-04-12 16:41:36 +02:00
Klaus Reimer
48dbbdcd74 COMMON: Fix usage of wrong variable when keymapper is active 2011-04-12 11:05:48 +02:00
Matthew Hoops
4a39baa095 COMMON: Fix QuickTime track duration 2011-04-10 21:11:02 -04:00
Matthew Hoops
9d0e5a7132 ALL: Add/update some comments 2011-04-10 15:11:03 -04:00
Matthew Hoops
7c5dfaa04c COMMON: Parse the MPEG-4 esds atom 2011-04-08 22:46:19 -04:00
Matthew Hoops
faee277978 COMMON: Add a DisposeAfterUse flag to QuickTimeParser 2011-04-08 17:04:29 -04:00
Matthew Hoops
50d2519552 COMMON: Add iOS platform type 2011-04-07 10:52:58 -04:00
Matthew Hoops
db71efd94f VIDEO: Split the QuickTime parser from the QuickTime VideoDecoder 2011-04-07 00:21:48 -04:00
Max Horn
c4ae3b90db COMMON: Fix (harmless) int <-> uint mismatch 2011-04-04 09:53:26 +02:00
dhewg
b065007c8f COMMON: Unbreak EventRecorder a little 2011-03-29 22:13:31 +02:00
dhewg
d83a83ef50 JANITORIAL: Remove/comment unused vars
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02:00
Littleboy
5a1874e3d9 COMMON: Add SaveFileManager::copySavefile() and update SaveFileManager::renameSavefile() to use it 2011-03-24 18:51:58 -04:00
Max Horn
4172414e35 COMMON: Remove TODO from struct Event
I moved this TODO to the Wiki TODO page and extended it there. Yet
while I originally wrote it, I now think that we are probably best off
keeping things as they are.
2011-03-23 15:25:46 +01:00
md5
23aabc950a COMMON: Removed custom PI define (M_PI should be used instead) 2011-03-19 02:39:38 +02:00
md5
3924fc0bad COMMON: Enable math constants under Visual Studio 2011-03-19 01:56:10 +02:00
Matthew Hoops
e815102659 Merge branch 'pe_exe' of https://github.com/clone2727/scummvm into clone2727-pe_exe 2011-03-07 17:07:59 -05:00
Matthew Hoops
bc3638834b COMMON: Add TODO to make compressed NE EXE handling transparent 2011-03-07 13:18:33 -05:00
Matthew Hoops
c7d7e50155 COMMON: Add a sanity assert 2011-03-07 13:14:10 -05:00
Matthew Hoops
d2f8103a3b COMMON: Fix WinResourceID::getID() 2011-03-07 13:12:43 -05:00
Matthew Hoops
826197cf76 COMMON: Make the operator=(String) function be a const reference instead 2011-03-07 13:11:28 -05:00
Matthew Hoops
6582b77f1c SCUMM: Use the new WinCursor code in SCUMM HE
Also, updated the MacResManager cursor code to reflect the SCUMM resource extractor code changes
2011-03-06 19:57:18 -05:00
Matthew Hoops
c66233f83e GRAPHICS: Split the NE cursor code from the NEResources class
Now the code lies in Graphics and all cursors are not cached upon opening an exe. The engine is now in charge of caching which cursors it wants.
2011-03-04 23:17:57 -05:00
dhewg
b84b56b248 COMMON: Remove newlines from debug()
They were interfering with my precious debug spew :P
2011-03-02 23:18:34 +01:00
Matthew Hoops
e053373dd3 COMMON: Add a key color field to NECursor 2011-02-22 20:11:50 -05:00
Matthew Hoops
a2a0b13de2 COMMON: Begin to merge some NE/PE code
The ID classes are now common to both. The files have been renamed to better illustrate their purpose.
2011-02-22 20:03:18 -05:00
Matthew Hoops
3995610ce3 COMMON: Add a convenience function to ignore the language field 2011-02-22 12:33:41 -05:00
Matthew Hoops
d5c494a239 COMMON: Add default Windows PE types 2011-02-22 02:02:00 -05:00
Matthew Hoops
91287b2e18 COMMON: Add basic PE EXE parser
Much thanks to fuzzie for her assistance
2011-02-22 01:47:11 -05:00
D G Turner
a925286361 COMMON: Correct NE Resource Loader for Osystem RGBA->RGB Palette Change. 2011-02-20 06:12:21 +00:00
Johannes Schickel
39861271d6 COMMON: Make MacResManager::convertCrsrCursor to return a RGB palette. 2011-02-14 17:08:33 +01:00
Ori Avtalion
3354204f53 JANITORIAL: Remove extraneous parentheses
svn-id: r55890
2011-02-12 10:36:35 +00:00
Johannes Schickel
9f6dc040ff CONFIGURE: Add basic support for ICC.
svn-id: r55862
2011-02-10 01:05:48 +00:00
Max Horn
97bfd60e61 COMMON: Reduce overflow risk in Common::Rational += and -= operators
svn-id: r55839
2011-02-09 00:12:02 +00:00
Max Horn
2184326dbc COMMON: Add comment that explains strange <= checks in gcd()
svn-id: r55838
2011-02-09 00:11:39 +00:00
Max Horn
ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00
Matthew Hoops
2be57434a1 COMMON: Only take the md5 of the resource fork data section
Since various apps can modify the type/creator of the files, we can't rely on the header of the resource fork to take the md5. I've therefore also recalculated all of the detector entries (all 5 of them) that use the Mac resource fork code.

svn-id: r55764
2011-02-04 15:27:56 +00:00
Johannes Schickel
867c0d9645 COMMON: Add an erase method which takes an iterator to HashMap.
Currently there is no iterator returned from this method, to have some
similarity to associative containers of the STL.

I also "added" one unit test for this method, which is basically just
a copy of the HashMap::erase(const Key &) test with the required adaptions.

svn-id: r55661
2011-01-30 17:28:35 +00:00
David Turner
f7e1ed3762 COMMON: Fixed memory leakage in unarj readHeader().
This manifested in Drascula.

svn-id: r55582
2011-01-28 02:56:07 +00:00
Filippos Karapetis
b0321af343 COMMON: Added some very simple operators to the Point class (+, -, += and -=), taken from the BS25 Vertex class
svn-id: r55476
2011-01-23 19:00:35 +00:00
Matthew Hoops
75b232c67d COMMON: Update documentation of the MacResManager
svn-id: r55403
2011-01-22 02:31:30 +00:00
Matthew Hoops
fc8f135a61 COMMON: Document which engines use DCL
svn-id: r55380
2011-01-21 14:28:43 +00:00
Matthew Hoops
476eeb69e6 COMMON: Move SCI's DCL decompression code to common
svn-id: r55367
2011-01-21 01:55:44 +00:00
Johannes Schickel
4ad14abef3 COMMON: Some style fixes in config-manager.cpp.
svn-id: r55315
2011-01-18 21:13:47 +00:00
Johannes Schickel
da6fdff421 COMMON: Some slight formatting fixes in config-manager.cpp.
svn-id: r55228
2011-01-13 16:38:14 +00:00
Yotam Barnoy
42c8cacde6 CONFIGMANAGER: small changes to support old config files with no 'gameId' keys. As discussed on -devel.
svn-id: r55222
2011-01-13 11:30:37 +00:00
Jordi Vilalta Prat
dd47d644d3 COMMON: Fix a few space formatting issues.
svn-id: r55200
2011-01-11 03:03:40 +00:00
Alyssa Milburn
319fdf40b2 COMMON: Fix comment about getButtonState.
svn-id: r55087
2011-01-01 22:36:33 +00:00
Yotam Barnoy
77a6dc7046 CONFIG-MGR: added ability to add other non-game domains
The way we determine if a domain is a game domain or not when loading from the config file is by checking for a 'gameId' key. This required changing the method of loading somewhat. MiscDomains (ie. non-game domains) are saved to the config file before game domains but after the main domains.

This change shouldn't mess anything up but it could probably use a look-through just in case.

svn-id: r55060
2010-12-29 15:16:31 +00:00
Johannes Schickel
6308dd77d6 OSYSTEM: Clarify grabPalette documentation after talking with Max about it.
svn-id: r54978
2010-12-20 17:28:17 +00:00
Alyssa Milburn
bcea996361 COMMON: Handle C++-style comments in config files
svn-id: r54868
2010-12-11 19:53:11 +00:00
Johannes Schickel
e361b84d3b BACKENDS: Fix OSD implementation in ModularBackend.
svn-id: r54828
2010-12-08 01:35:34 +00:00
Matthew Hoops
70ab5a21da COMMON: Fix AppleDouble support in the MacResManager (thanks, fuzzie)
svn-id: r54775
2010-12-05 00:51:04 +00:00
Jordi Vilalta Prat
d5a4f554af ALL: Fix a few typos
svn-id: r54716
2010-12-01 20:03:05 +00:00
Jordi Vilalta Prat
a17c07bcaa I18N: Improve the fallback language auto-detection.
- Broaden the range of language tags that could be accepted as fallback in
  auto-detection. For example, for a system with locale 'pt_PT', all of
  these would be accepted as valid fallbacks: 'pt_PT_*', 'pt', 'pt_*'
- Make language codes matching case-insensitive as specified in RFC 4647.
- Add support language code blocks longer than 2 characters.

svn-id: r54715
2010-12-01 20:00:40 +00:00
Jordi Vilalta Prat
8393bc5b5f I18N: Don't build TranslationManager when translation is disabled.
svn-id: r54684
2010-11-30 18:50:19 +00:00
Matthew Hoops
ab732a73ff COMMON: Add a bit more to the doxygen comment for NEResources
svn-id: r54564
2010-11-29 00:27:48 +00:00
Max Horn
945602fdbe COMMON: Remove unnecessary reference to file.h
svn-id: r54561
2010-11-28 23:09:47 +00:00
Matthew Hoops
f403c0f8a8 COMMON: Add support for loading NE resources and cursors
Needed for Mohawk (and Hugo Win eventually). Based on DrMcCoy's excellent Dark Seed II code.

svn-id: r54557
2010-11-28 22:55:00 +00:00
Filippos Karapetis
626e9413fd AmigaOS: Fixed compilation after the latest GSoC code merging (bug #3121350)
svn-id: r54555
2010-11-28 22:12:11 +00:00
Johannes Schickel
284b49aabc COMMON: Comment out locale <-> Common::Language conversion utils for now.
svn-id: r54517
2010-11-28 02:12:53 +00:00
Johannes Schickel
1ad63b431e BACKEND: Switch OSystem::getSystemLanguage return type to Common::String.
This is done as discussed on -devel.

svn-id: r54516
2010-11-28 02:12:33 +00:00
Matthew Hoops
34db1820eb COMMON: Add an isBE() function to get the endianness of a ReadStreamEndian
svn-id: r54500
2010-11-26 15:06:25 +00:00
Johannes Schickel
ebbd504b90 COMMON: Adapt translation manager to use the OSystem for language detection.
svn-id: r54480
2010-11-25 18:42:05 +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
1cc80de1d9 COMMON: Add SeekableReadStreamEndian class
svn-id: r54445
2010-11-23 22:33:10 +00:00
Max Horn
12d5151ff4 COMMON: Remove default value for endianess in ReadStreamEndian subclasses
svn-id: r54441
2010-11-23 22:27:20 +00:00
Max Horn
382982d6e3 COMMON: Add ReadStreamEndian mixin class
svn-id: r54438
2010-11-23 22:26:27 +00:00
Max Horn
ae919f3ebd COMMON: Remove XOR decoding capability from MemoryReadStream
svn-id: r54436
2010-11-23 22:25:53 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00