2291 Commits

Author SHA1 Message Date
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
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
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