Commit Graph

2942 Commits

Author SHA1 Message Date
Paul Gilbert
68e230182c TITANIC: Implement TTparser normalize 2016-07-10 16:39:35 -04:00
Colin Snover
b6dbc79021 SCI32: Add support for blacklined video
Ow. My eyeballs.
2016-07-10 09:36:10 -05:00
Willem Jan Palenstijn
e243147f1e COMMON: Make MemoryWriteStreamDynamic private members protected 2016-07-02 21:19:23 +02:00
Eugene Sandulenko
603fccf74b COMMON: Fixed SortedArray implementation 2016-06-04 13:50:15 +02:00
Eugene Sandulenko
31913eee17 COMMON: Fix warning about shadowing class members 2016-05-28 17:18:17 +02:00
Eugene Sandulenko
cdbf10ca81 COMMON: Fix another warning.
We're shadowing the class variables with local ones.
2016-05-23 22:47:03 +02:00
Eugene Sandulenko
c383ed4104 COMMON: Remove const qualifiers.
We have to cast it back to void *, which loses const qualifier
2016-05-23 22:44:36 +02:00
Eugene Sandulenko
419211733e COMMON: Fix warning 2016-05-23 22:41:21 +02:00
Eugene Sandulenko
3d89af272b COMMON: Fix SortedArray implementation for empty array 2016-05-23 16:36:34 +02:00
Eugene Sandulenko
1f8667c5d9 BUILD: Fix test compilation with event recorder enabled 2016-05-23 16:36:26 +02:00
Eugene Sandulenko
a6fd06074d COMMON: Fix SortedArray implementation.
Had to use a modified bsearch for finding the nearest element.
2016-05-22 22:59:41 +02:00
Eugene Sandulenko
cc54c7723c COMMON: Implement SortedArray 2016-05-22 22:12:59 +02:00
Eugene Sandulenko
8d8b1836ba Merge pull request #688 from blorente/master
COMMON:String::replace and Common::replace functionality added.
2016-05-19 20:45:57 +02:00
Borja Lorente Escobar
a19b50ddf2 COMMON: Add replace functions to Common and String.
COMMON: Add replacement to common/algorithm.h

COMMON: Intermediate commit to show doubts.

 COMMON: Basic String::replace() methods implemented.

COMMON: Fix typo in the algorithm.h documentation.

COMMON: Fix documentation of String::replace()

COMMON: Fix formatting issues in method signatures.

COMMON: Add assert and reformat loops in str and algorithm.

COMMON: Fix typo in comment.

COMMON: Fix style in string test cases.

COMMON: Add Doxygen documentation to algorithm and String.

COMMON: Add Doxygen documentation to algorithm and String.

COMMON: Add Doxygen documentation to algorithm.

COMMON: Fix style in algorithm comments.

COMMON: Add Doxygen comments to String.

COMMON: Add Doxygen comments to algorithm test function.

COMMON: Add String support for substring replace.

COMMON: Fix string replace to comply with STL

COMMON: Fix documentation on string replace

COMMON: Fix style in string replace

COMMON: Fix unwanted reference problem in String::replace().

COMMON: Fix indentation in comments for replace

COMMON: Fix indentation in replace

COMMON: Fix comments in String::replace to match implementation.

COMMON: Remove assert to allow for not-null-terminated character arrays

COMMON: Add new test for String::replace

COMMON: Fix broken comments on String::replace

COMMON: Fix sharing bug on ensureCapacity

COMMON: Remove superfluous call to makeUnique()
2016-05-16 22:01:21 +02:00
Eugene Sandulenko
2cd0a99e2b Merge pull request #745 from Cruel/3ds
3DS: New Backend
2016-05-16 10:05:00 +02:00
Thierry Crozat
cede9e7734 UPDATES: Fix interval normalization
When given a valid value the normalization was returning the next
valid value instead of returning the given one. This caused for
example the interval to be changed each time we opened the
options (and thus check to be automatically activated the first
time the options were accessed).
2016-04-09 21:47:20 +01:00
Eugene Sandulenko
c18a12453e UPDATES: Implemented method getLastUpdateCheckTimeAndDate()
Currently it uses methods and constants deprecated in 10.10.
10.10+ -specific code will follow
2016-04-09 17:04:04 +02:00
Thomas Edvalson
e2b9572a83 3DS: Initial commit 2016-04-06 02:12:02 -04:00
Eugene Sandulenko
0925e9cd29 UPDATES: Fix endless loop 2016-04-03 23:10:55 +02:00
Eugene Sandulenko
d643036c20 Merge pull request #735 from sev-/updates-gui
UPDATES: Add GUI. Opt-in dialog and Options
2016-04-03 11:38:06 +02:00
Eugene Sandulenko
98f0be39e2 Merge pull request #743 from fuzzie/apple2-platform
COMMON: Add Apple II platform
2016-04-02 23:08:39 +02:00
Alyssa Milburn
0dd3563085 COMMON: Add Apple II platform 2016-04-02 21:57:48 +02:00
Eugene Sandulenko
a743ec2e07 UPDATES: Implement and use method for normalizing interval value to accepted values 2016-04-01 21:29:29 +02:00
Eugene Sandulenko
14478a65f1 UPDATES: Added documentation to new methods 2016-04-01 21:19:15 +02:00
Eugene Sandulenko
08e7f0ab91 UPDATES: Got rid of hardcoded update intervals list 2016-03-31 09:31:57 +02:00
Eugene Sandulenko
73784c6a84 UPDATES: Made interval set/get functions accept normal integers 2016-03-30 19:27:59 +02:00
Eugene Sandulenko
f1fa8ea1ca COMMON: Use better reallocation strategy in MemoryWriteStreamDynamic.
Fixes bug #6983: "SWORD25: long saving time"
2016-03-28 18:45:34 +02:00
Johannes Schickel
10d4d30628 Merge pull request #682 from lordhoto/savefilemanager-case-insensitive
ALL: Make SaveFileManager case insensitive.
2016-03-16 21:35:01 +01:00
Johannes Schickel
b8fb9e6a51 COMMON: Cleanup: Use StringArray instead of custom type. 2016-03-01 19:18:23 +01:00
Johannes Schickel
91b5c5a413 COMMON: Add a method to list files to MacResManager. 2016-03-01 19:16:10 +01:00
Willem Jan Palenstijn
d4d4b779aa COMMON: Fix Rect::intersects doc 2016-03-01 19:11:49 +01:00
Johannes Schickel
8c5931bca4 COMMON: Add documentation about savefile names. 2016-02-25 21:51:53 +01:00
Johannes Schickel
e7e7aa0558 COMMON: Beautify SaveFileManager documentation. 2016-02-25 21:51:53 +01:00
Colin Snover
4ba0ff8deb COMMON: Add convenience method to Common::Rational for 1:1 ratios
For SCI engine games, ratios may not be normalised and so to avoid
extra scaling, there needs to be a way to simply check whether a
ratio is 1:1.
2016-02-18 13:18:02 -06:00
Colin Snover
7d54f0aaaf COMMON: Add methods for inserting and erasing with iterators
This provides improved feature parity to Common::List and is used
in SCI32 engine.
2016-02-18 13:18:01 -06:00
Alexandre Detiste
6c298e964f JANITORIAL: Typos detected with lintian & grep 2016-02-15 18:27:02 +01:00
Johannes Schickel
01d3d02679 COMMON: Fix formatting issues in archive.cpp. 2016-02-09 12:10:04 +01:00
Willem Jan Palenstijn
3e90a83aa4 COMMON: Fix memory leak in decompressDCL 2016-02-07 00:00:13 +01:00
Johannes Schickel
29b37f473c COMMON: Add render mode for Macintosh.
On request of m_kiewitz who wants to use it for AGI.
2016-02-05 12:38:28 +01:00
Johannes Schickel
06641f29a7 COMMON: Allow '#' to only match digits in matchString. 2016-01-26 16:35:30 +01:00
Johannes Schickel
354a3af717 COMMON: Add another GUIO game option flag.
We still can only display 7 options in our GUI though. Blame m_kiewitz if
anybody runs into that issue now. He wanted this.
2016-01-22 01:20:37 +01:00
Johannes Schickel
b166cb84e2 COMMON: Use spaces for beautifying formatting. 2016-01-21 23:48:48 +01:00
Johannes Schickel
a481702488 COMMON: Allow translation of PC-98 render modes. 2016-01-21 23:41:30 +01:00
Johannes Schickel
0024519e9c COMMON: Use our standard FM-TOWNS spelling for render modes. 2016-01-21 23:41:30 +01:00
Johannes Schickel
1479219f7a COMMON: Add render modes for Apple IIgs and Atari ST.
On request of m_kiewitz who wants to use it for AGI.
2016-01-21 23:41:30 +01:00
Johannes Schickel
54f5c95832 COMMON: Make FSNode(AbstractFSNode *) private again.
This also fixes a memory leak in OSystem_iOS7::addSysArchivesToSearchSet.
2016-01-07 11:25:02 +01:00
Vincent Bénony
73385584ba IOS: Adds a warning 2016-01-06 16:20:30 +01:00
Vincent Bénony
e0bfdb41d0 IOS: Formatting 2016-01-06 16:20:30 +01:00
Vincent Bénony
16605a3e10 IOS: Moves the helper function were it is used. 2016-01-06 16:20:29 +01:00
Vincent Bénony
64f50761ec IOS: Merge master 2016-01-06 16:19:03 +01:00
Vincent Bénony
bbf3785bba IOS: Adds two helper functions on strings 2016-01-06 15:35:30 +01:00
Vincent Bénony
108ce38443 IOS: Added a chroot like filesystem
This is needed because it is not possible to keep absolute paths to the iOS document directory, because a part of its name change between each installation / update.
2016-01-06 15:35:17 +01:00
Johannes Schickel
e7f54aec7d COMMON: A few formatting fixes. 2015-12-12 06:54:58 +01:00
Filippos Karapetis
7707f05338 COMMON: Throw a warning on inconsistent DCL fixed size buffers
This is useful for debugging, and needed for fixes in Russian fan made
translations of The Neverhood Chronicles
2015-11-19 02:05:12 +02:00
Filippos Karapetis
65a36315ea COMMON: The DCL decompressor is also used in neverhood 2015-11-19 02:05:12 +02:00
Bertrand Augereau
1311fe5c49 COMMON: Avoid useless (and dangerous when cctor/operator= don't support it) SWAP(x, x) in sorting 2015-11-10 20:08:19 +01:00
Bertrand Augereau
4920b3ab3e COMMON: Some ill-formed xml files triggered a seek(CUR, -2) in the parser 2015-11-09 22:51:15 +01:00
Paul Gilbert
89dfd36b60 CREATE_PROJECT: Add support for Visual Studio 2015 2015-09-28 19:23:58 -04:00
Bastien Bouclet
53388bf6e8 COMMON: Plug a memory leak in the FFT class 2015-07-13 18:45:31 +02:00
Martin Kiewitz
a07ff81051 COMMON: PKWARE data comp. remove temp. targetPtr
which was used for the temporary workaround in commit 4fb3264
2015-07-04 03:29:06 +02:00
Martin Kiewitz
614162e5fc COMMON: PKWARE data comp. lib. mask dictionary xs
added masking of dictionary offsets when copying from dictionary
issues should now all be fixed
2015-07-04 03:10:26 +02:00
Martin Kiewitz
4fb32647ad COMMON: PKWARE data comp. library fix
add old length+offset code for now, so that the graphical issues
in SCI don't occur anymore. Will investigate more tomorrow.
2015-07-04 02:52:56 +02:00
Martin Kiewitz
fafe22731b COMMON: PKWARE data comp. library fix
fixes dictionary issues with some compressed data
2015-07-04 02:26:12 +02:00
Martin Kiewitz
2bd0743125 COMMON: PKWARE data comp. lib. cleanup + enhanced
- uses streams now
- additional method for decompressing, when the target size is not
known
- improved comments
- added AGOS for using it
2015-07-04 01:45:34 +02:00
Bastien Bouclet
ed037a527c COMMON: Add getRevTab to FFT 2015-02-01 10:35:23 +01:00
clone2727
db64442c4a COMMON: Fix strict-alignment READ_BE_UINT64 on LE and READ_LE_UINT64 on BE 2015-01-18 14:41:15 -05:00
Willem Jan Palenstijn
cc045f7a83 COMMON: Fix strict-alignment READ_UINT64 2015-01-14 23:20:33 +01:00
Willem Jan Palenstijn
1084f2eea6 COMMON: Implement MIPS SWAP_BYTES_64 in terms of SWAP_BYTES_32 2015-01-04 22:00:00 +01:00
Willem Jan Palenstijn
7c7bdf3543 COMMON: Swap order of functions to 16, 32, 64 2015-01-04 21:59:45 +01:00
Johannes Schickel
e2e61184c6 COMMON: Fix return type of one READ_BE_UINT64 implementation.
This makes all unit tests pass for my on amd64 again. Thanks clone2727.
2015-01-04 21:30:05 +01:00
Johannes Schickel
64bad2ec4a COMMON: Fix some syntax issues.
Not compile tested. Then again it didn't look test before either. So, yay!
2015-01-04 21:17:33 +01:00
Johannes Schickel
eb4d1a6925 COMMON: Add missing readUint64/readSint64 to ReadStreamEndian. 2015-01-04 21:09:32 +01:00
Eugene Sandulenko
7865c78211 COMMON: Put more 64-bit stuff under HAVE_INT64 2015-01-04 20:47:12 +01:00
Eugene Sandulenko
f1765db70f COMMON: Put all 64-bit code under new HAVE_INT64 constant
I regrouped all functions in order to make the code less noisy
with #ifdefs
2015-01-04 20:41:50 +01:00
Eugene Sandulenko
9abd92a711 Merge pull request #508 from RichieSams/add_endian_and_stream_support_for_int64
COMMON: Add support for endian-safe reading/writing of int64
2015-01-04 19:50:33 +01:00
Adrian Astley
d497b45b1c COMMON: Fix typo that caused uint64 reads to return a uint32 2014-12-21 03:58:58 -06:00
Filippos Karapetis
bb120d0fd4 COMMON: Disable unused string 2014-12-07 17:49:55 +02:00
Willem Jan Palenstijn
7ff41ae902 COMMON: Remove executable bit 2014-11-23 17:51:13 +01:00
Stefan Kristiansson
3fb4ab1377 COMMON: make XMLParser::loadStream() fail when stream is null
Some users of this method relies on it to fail when
an invalid stream is passed to it
(E.g. VirtualKeyboard::openPack).
2014-11-22 10:02:42 +02:00
Filippos Karapetis
daf110c867 COMMON: Remove trailing whitespace 2014-10-28 15:38:52 +02:00
Filippos Karapetis
22be7f4346 COMMON: Add reference links for the enabled C++11 features in MSVC 2014-10-28 14:26:19 +02:00
Adrian Astley
c58f714610 COMMON: Add support for endian-safe reading/writing of int64 2014-09-16 13:49:27 -05:00
Роман Донченко
daceff7b2d COMMON: Use true nullptr in Visual Studio 2010+ and true override in VS 2012+
Those compilers support these features despite not being fully C++11-compliant.

<http://msdn.microsoft.com/en-us/library/hh567368.aspx> says that VS 2010
has "partial" support for override. I don't know what that entails and I
can't test it, so I err on the side of caution and only enable it in 2012
and up.
2014-09-05 23:25:19 +04:00
Einar Johan Trøan Sømåen
b7c5ce879f COMMON: Fix some Doxygen comments that seem wrong. 2014-08-29 03:28:00 +02:00
Johannes Schickel
e2313433bc COMMON: Use Common::String::clear instead of assigning "". 2014-08-12 01:43:30 +02:00
Torbjörn Andersson
278a14d96e COMMON: Fix crash when quitting on "Game data not found" dialog
ScummVM would try to look up "confirm_exit" in the active domain,
even though the active domain had been removed and pointed to an
invalid address. To avoid this, try to keep _activeDomain and
_activeDomainName updated if removeGameDomain() removes the active
domain.

For good measure, also do it if the active domain is removed by
renameGameDomain(), though I don't know if there was any case where
this would have caused trouble.
2014-08-07 22:55:52 +02:00
Torbjörn Andersson
42c9b1a2c1 COMMON: Minor whitespace fix. 2014-08-07 22:46:24 +02:00
David Turner
cb596113a7 Merge pull request #461 from digitall/vkeybdFix
Add trigger for Virtual Keyboard on long press of Middle Mouse Button
2014-06-28 14:59:08 +01:00
Joel Teichroeb
c43ce9ecf3 ALL: Remove support for MSVC8 and older
MSVC8 gives various compile error relating to templates that were changed
back in 2008, leading me to belive that no one is using it, and that there
is not point adding work arounds for a 9 year old compiler no one uses.
2014-06-21 11:32:45 -07:00
Eugene Sandulenko
c41ebe6f45 COMMON: Added align() method for BitStream 2014-06-09 22:33:45 +03:00
Johannes Schickel
559c10e91a COMMON: Don't allow debug channel 'all' to be used. 2014-06-05 16:32:27 +02:00
D G Turner
1e6fe10e3d COMMON: Add "all" option to debugflag controls in GUI Debugger. 2014-06-05 02:18:58 +01:00
Johannes Schickel
4c716539ad COMMON: Use float constants in DCT code.
Makes the DCT code use constants of type float in expressions which only use
type float values otherwise. This silences some floating point conversion
warnings in the DCT code.
2014-06-02 01:00:15 +02:00
Johannes Schickel
bab02dd42b COMMON: Some formatting fixes in RDFT code. 2014-06-02 01:00:15 +02:00
Johannes Schickel
3c0c64f820 COMMON: Use float constants in RDFT code.
We use float types in variables, thus also use them for constants. Silences
some conversion warnings.
2014-06-02 01:00:15 +02:00
Johannes Schickel
ec6f00ed1d COMMON: Make Rad<->Deg conversion use float constants.
Since we take a float parameter and return a float value we will also just
work on float values all the way. This silences some float conversion
warnings.
2014-06-02 01:00:15 +02:00
Eugene Sandulenko
c3ffbd884a Merge pull request #426 from sunmax/master
PS2: Pull request to master for latest PS2 code
2014-04-28 21:20:42 +03:00
D G Turner
b7192731b9 KEYMAPPER: Change hotkey from F8 to CTRL-F8 to reduce game conflicts. 2014-04-27 04:18:47 +01:00
D G Turner
8cf41943f6 VKEYBD: Switch hotkey from F7 to CTRL-F7 to reduce game conflicts.
Although this is harder for physically disabled users to trigger, they
can now use the long middle mouse button press instead to trigger.
2014-04-27 04:18:39 +01:00
D G Turner
e07a224a9a VKEYBD: Modify code to open vkeybd on long press of middle mouse button.
This should massively reduce any chance of a conflict with mouse usage
in games and is still easy for a person with mobility issues to perform.
2014-04-22 05:29:54 +01:00
D G Turner
5e6d05c816 VKEYBD: Add code to open virtual keyboard on middle mouse button.
This removes the need for a hardware keyboard to trigger the use
of the virtual keyboard via F7 if using the default event mapper.

As middle button is rarely used by games, this should not cause any
conflicts. Though to avoid this possibility, the event is passed to
the engine.
2014-04-22 05:29:54 +01:00
D G Turner
b8aaac27ba KEYMAPPER: Avoid blocking F8 events from engine when using keymapper.
This allows the keyboard mapper to be enabled without causing breakage
to engines which use F8.
2014-04-16 13:17:32 +01:00
D G Turner
8282298556 KEYMAPPER: Avoid blocking F7 events from engine when using vkeybd.
This allows the virtual keyboard to be enabled without causing breakage
to engines which use F7.
2014-04-16 11:53:38 +01:00
Filippos Karapetis
c3003eec85 COMMON: Reduce the warnings related to backwards seeking in ZIP files
The warnings are now changed to debug statements, are only shown once
per session (instead of once per stream) and are only enabled for debug
builds.
2014-03-28 01:30:38 +02:00
Matthew Hoops
9630753861 COMMON: Move some QuickTime Track variables into SampleDesc where they belong 2014-03-18 19:12:20 -04:00
Johannes Schickel
854e22b38b COMMON: Make GPL headers consistent in themselves. 2014-02-18 02:39:33 +01:00
Max Lingua
b69a2c81a7 PS2: scummsys.h (u)int64 is "long" for PS2 2014-01-19 12:53:55 -05:00
Johannes Schickel
417064e311 Merge pull request #417 from digitall/STACK_fixes
ALL: Fix optimization unstable code on checking for null after new.
2014-01-17 17:48:16 -08:00
clone2727
9d9ced0734 Merge pull request #366 from clone2727/he-saves-target-name
RFC: Make HE games use the target name in all save files
2014-01-17 15:59:44 -08:00
D G Turner
ac4087856f ALL: Remove optimization unstable code on checking for null after new.
These issues were identified by the STACK tool.

By default, the C++ new operator will throw an exception on allocation
failure, rather than returning a null pointer.

The result is that testing the returned pointer for null is redundant
and _may_ be removed by the compiler. This is thus optimization
unstable and may result in incorrect behaviour at runtime.

However, we do not use exceptions as they are not supported by all
compilers and may be disabled.

To make this stable without removing the null check, you could qualify
the new operator call with std::nothrow to indicate that this should
return a null, rather than throwing an exception.

However, using (std::nothrow) was not desirable due to the Symbian
toolchain lacking a <new> header.
A global solution to this was also not easy by redefining "new" as "new
(std::nothrow)" due to custom constructors in NDS toolchain and various
common classes.

Also, this would then need explicit checks for OOM adding to all new
usages as per C malloc which is untidy.

For now to remove this optimisation unstable code is best as it is
likely to not be present anyway, and OOM will cause a system library
exception instead, even without exceptions enabled in the application
code.
2014-01-15 02:36:19 +00:00
Johannes Schickel
3a8c243d34 COMMON: Revert "Fix mismatched new/delete in the MemoryPool class".
This reverts commit b585addc23.

The allocation of MemoryPool's page memory is doing in MemoryPool::allocPage,
which uses ::malloc, thus we need to use ::free to free the page memory in
MemoryPool::freeUnusedPages.
2013-12-17 00:26:50 +01:00
Filippos Karapetis
b585addc23 COMMON: Fix mismatched new/delete in the MemoryPool class
Memory is allocated with new in Hashmap::allocNode() and incorrectly
freed with free() in ~MemoryPool() and freeUnusedPages().
Issue reported by Dr. Memory
2013-12-17 01:16:28 +02:00
Johannes Schickel
df07a4655b COMMON: Add Latvian language code. 2013-12-05 16:26:44 +01:00
Johannes Schickel
a94c66f1e3 COMMON: Fix order of languages.
These are sorted according to the alphabetical order of the description. Thus,
Croatian should be between Chinese (Taiwan) and Czech.
2013-12-05 16:26:44 +01:00
Johannes Schickel
abe6d30f36 COMMON: Document Common::String::unsigned_type. 2013-11-23 21:34:55 +01:00
Johannes Schickel
4c15e51ab5 COMMON: Document U32String a bit better. 2013-11-23 21:34:54 +01:00
Johannes Schickel
b90400da44 COMMON: Add simple UTF-32 string class U32String. 2013-11-23 21:34:54 +01:00
Johannes Schickel
1a6f9378aa COMMON: Add underlying type names to Common::String.
The value_type is analogous to std::basic_string::value_type.
The unsigned_type on the other hand is an unsigned type of the value_type which
allows to obtain an character without nasty sign extension.
2013-11-23 21:34:54 +01:00
Filippos Karapetis
e36f24ad69 COMMON: Define int64 and uint64 if HAVE_CONFIG_H isn't set
This fixes compilation of sword25's pluto with Visual Studio. The issue
has been revealed with commit 34169a81. The other data types are
defined in scummsys.h, thus only the missing int64 and uint64 defines
are set.
2013-11-06 18:04:09 +02:00
Eugene Sandulenko
5d6c7fbcd1 RECORDER: Initialize variable. CID 1047258 2013-11-03 01:28:03 +02:00
Filippos Karapetis
b4f8e45a3c COMMON: SEEK_END offsets are negative
This was taken directly from the old code, which either used different
semantics, or had a genuine bug
2013-11-02 19:59:22 +02:00
Filippos Karapetis
732fb69b1c COMMON: Reenable SEEK_END seeking in GZipReadStream()
This is needed by the "Mirage" Wintermute game.
Vorbis can do backward seeking, thus we need to enable this for ZIP
streams. Since this can be a potentially slow operation, we throw a
warning (once per stream) when it occurs. Originally, SEEK_END seeks
in GZipReadStream were disabled by commit 9138128f. Refer to patch
#2050337 for more information.
2013-11-02 19:19:26 +02:00
Eugene Sandulenko
874939ae89 COMMON: Make XCode 5.0.1 happier 2013-10-27 22:45:49 +02:00
Matthew Hoops
eef7f9f46b COMMON: Fix the NE group icon resource type 2013-10-27 13:15:17 -04:00
D G Turner
a1998abed4 COMMON: Fix missing arjDecoder class variable init. CID 1002929
This fixes a couple of these variables by removing them as they
are unused or set-but-unused variables.
2013-10-05 07:02:18 +01:00
Eugene Sandulenko
e11da51202 COMMON: Make Coverity 6.6.1 happier
Apparently their tools do not include __has_feature clang extension.
I've submitted the bugreport to them but in the meantime let's have this
define in the system.
2013-09-27 11:06:22 +03:00
Filippos Karapetis
dca513dc20 COMMON: Expand the warnings thrown for broken DCL compressed data
The Russian translated versions of Neverhood have invalid unpacked
sizes for some compressed resources. This helps in identifying their
resource parameters more easily
2013-09-26 10:46:09 +03:00
Eugene Sandulenko
c55411a032 COMMON: Shut more Coverity warnings in coroutines. 2013-09-21 22:45:43 +03:00
Eugene Sandulenko
91bcfb290a COMMON: Use unused variables in coroutine macros.
This should fix couple of hundreds of Coverity detected defects.
2013-09-21 09:49:17 +03:00
Matthew Hoops
3f65a02ced COMMON: Make the two INI save file functions take a String reference 2013-08-12 20:48:55 -04:00
Johannes Schickel
7c2660c97e COMMON: Add setVal to ConfigManager::Domain.
This fixes compilation in the keymapper.
2013-08-13 00:11:46 +02:00
Johannes Schickel
818d3981e3 Merge pull request #377 from lordhoto/config-manager-cleanup
Config Manager Cleanup
2013-08-12 14:30:22 -07:00
Johannes Schickel
f7d3b06711 COMMON: Get rid of write version of ConfigManager::getGameDomains.
This can be abused to insert Domains into the game domains without any checks.
Instead, only write iterator access is given.
2013-08-12 01:33:29 +02:00
Johannes Schickel
0dae60a357 COMMON: Remove commented out include in config-manager.h. 2013-08-08 16:32:41 +02:00
Johannes Schickel
6da6e4e686 COMMON: Remove outdated comments on INIFile.
These very old comments claimed that ConfigManager uses INIFile. This is not
true however. Thus removing them should clear things up a little bit.
2013-08-08 16:30:38 +02:00
Johannes Schickel
63750d6780 COMMON: Rename ConfigFile to INIFile.
This clears up that 'ConfigFile' is actually a class handling only INI-files.
2013-08-08 16:28:38 +02:00
Johannes Schickel
774d53045d COMMON: Do not let ConfigManager::Domain inherit from StringMap.
Instead we provide wrapper functionality now. Intuitively a Domain is not a
simple StringMap.
2013-08-08 03:14:23 +02:00
Johannes Schickel
4790a4abd5 COMMON: Define all Unix98/BSD math constants in scummsys.h.
This should fix compilation on mingw64 with --enable-c++11 and also make sure
the constants are present on other systems for the uncommon case they might be
missing.
2013-08-02 20:02:02 +02:00
D G Turner
17ccd18ed3 COMMON: Add comment explaining reason for defining math constants. 2013-08-02 06:23:52 +01:00
D G Turner
26a9b528da COMMON: Move definition of math constants to scummsys header.
This should have no effect on common/math.h as scummsys is included at
the top anyway, but this will fix compilation on some toolchains when
strict ANSI language compliance is enabled i.e. -std=c++11, rather than
-std=gnu11.

This causes an issue as a side effect is to set a guard which disables
various non-standard defines in the system headers i.e. the M_PI and
M_SQRT1_2 constant definitions in the MinGW x86_64 toolchain on
buildbot.

By moving this into scummsys.h after the point of system math.h
inclusion, we can ensure that M_PI etc. are always present.
2013-07-31 06:18:58 +01:00
Johannes Schickel
2f9b7ba686 COMMON: Enforce formatting guidelines a bit more in util.h. 2013-07-30 21:02:01 +02:00
Eugene Sandulenko
67af740f3a COMMON: Revert last commit as rightfully pointed out by fuzze. 2013-07-29 12:30:47 +03:00
Eugene Sandulenko
351af76f9b COMMON: Added copy constructors and copier to Rect and Point. 2013-07-29 12:25:57 +03:00
Eugene Sandulenko
2c812ade01 Merge pull request #353 from clone2727/eventrec_timer_fix
ALL: Don't use EventRecorder at all when not compiled in
2013-07-18 08:15:28 -07:00
Eugene Sandulenko
9572bc6e30 RECORDER: Fix wrong argument order 2013-07-15 14:31:34 +03:00
Sven Hesse
989ea7cb56 JANITORIAL: Remove trailing whitespace 2013-07-14 19:01:47 +02:00
Eugene Sandulenko
aaaf466c71 RECORDER: Fix CID 1046886. Uninit class variables. 2013-07-14 19:03:29 +03:00
Matthew Hoops
1f6894ab25 COMMON: Cleanup the MacResManager a bit 2013-07-11 23:45:19 -04:00
Matthew Hoops
4a7e4e5b22 ALL: Don't use EventRecorder at all when not compiled in 2013-07-06 23:54:45 -04:00
Eugene Sandulenko
3490091ba2 RECORDER: Fix tests compilation. Patch by D G Turner 2013-07-06 07:31:28 +03:00