Commit Graph
2847 Commits
Author SHA1 Message Date
Alexander Tkachev f58abd9540 COMMON: Update GZipWriteStream::pos()
Though it seemed the _wrapped stream should return valid position, it
was always 0. That's why I've added a _pos field, which is updated in
write() and returned in pos().
2016-08-04 15:14:06 +06:00
Alexander Tkachev 7a89caac84 COMMON: Add WriteStream::pos()
It returns int32, because some complex streams are derived from both
WriteStream and ReadStream, and in ReadStream pos() returns int32,
because -1 means an error.

I had to change MemoryStream's uint32 to int32, which is probably not so
good.
2016-08-04 14:36:21 +06:00
Eugene Sandulenko 9d3a2c1c7f Merge pull request #786 from dreammaster/titanic
TITANIC: Starship Titanic engine
2016-08-01 00:27:28 +03:00
Bastien Bouclet 8d34d5190d Revert "BUILD: Fix test compilation with event recorder enabled"
This reverts commit 1f8667c5d9.
2016-07-28 18:23:50 +02:00
Bastien Bouclet ad3ab61241 COMMON: Remove the EventRecorder dependency from OSystem
EventRecorder is in the gui lib which is not linked in the cxxtest suite.
2016-07-28 18:23:46 +02:00
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