Commit Graph
4144 Commits
Author SHA1 Message Date
Pawel Kolodziejski 0f5de71f70 sync with scummvm 2011-05-08 15:38:26 +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
Pawel Kolodziejski 6be453780f synced with scummvm 2011-05-01 17:49:40 +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
Pawel Kolodziejski eed3bb8be9 write endlines in unix mode for configuration file to match scummvm 2011-04-28 13:21:30 +02: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
Pawel Kolodziejski 252d484434 common/sys.h -> common/scummsys.h to minimalize diffs with scummvm 2011-04-17 01:00:10 +02:00
Pawel Kolodziejski 99ee683308 cleanup headers 2011-04-16 14:08:33 +02:00
Pawel Kolodziejski 0640dcf2c7 synced with scummvm to 2011-Apr-13 2011-04-14 12:41:26 +02: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
Matthew Hoops e71f793f88 ALL: Restore kPlatformPS2
Wrongfully removed in revision bccbcae43
2011-04-12 20:51:54 +08:00
Klaus Reimer 48dbbdcd74 COMMON: Fix usage of wrong variable when keymapper is active 2011-04-12 11:05:48 +02:00
Pawel Kolodziejski 241c7a8c6e synced with scummvm svn rev 53000 2011-04-11 15:40:01 +02:00
Pawel Kolodziejski 697ed42447 synced with scummvm svn rev 51000 2011-04-11 11:41:07 +02:00
Matthew Hoops 4a39baa095 COMMON: Fix QuickTime track duration 2011-04-10 21:11:02 -04:00
Pawel Kolodziejski a237b039c7 remove not used code for now 2011-04-11 02:40:03 +02:00
Pawel Kolodziejski 0379eddaf5 added missing messages.cpp for translation code 2011-04-11 02:34:56 +02:00
Pawel Kolodziejski be1b3ab884 synced with scummvm svn rev 50000 2011-04-11 02:28:51 +02:00
Pawel Kolodziejski e3a475ff7b synced with scummvm rev svn 49000 2011-04-10 21:59:04 +02:00
Matthew Hoops 9d0e5a7132 ALL: Add/update some comments 2011-04-10 15:11:03 -04:00
Pawel Kolodziejski bccbcae43c synced rest files, missed with last sync rev 47951 2011-04-10 15:45:37 +02:00
Pawel Kolodziejski 41be88f8b7 synced with scummvm svn rev 47951 2011-04-10 15:33:20 +02: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