aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2018-11-27CREATE_PROJECT: Support building with Tremor instead of VorbisCameron Cawley
2018-11-04BACKENDS: Remove references to the GP32 backendCameron Cawley
2018-11-04VIDEO: Use liba52 to decode audio. This is still laughably brokenTorbjörn Andersson
At the moment, this produces nothing but misery in the form of Valgrind warnings and horrible noise.
2018-11-03COMMON: Add Portuguese (Portugal) Language.D G Turner
The current Portuguese entry is Brazilian dialect, so modifying the description and adding an entry for European Portuguese. This is required to deal with bug Trac #10791.
2018-10-26COMMON: Add Danish Language.D G Turner
This is required in PINK engine for danish localization as per Trac bug #10708.
2018-10-14COMMON: Add mutex to protect access to the String memory poolThierry Crozat
This fixes a crash due to concurrent access to the global MemoryPool used by the String class when String objects are used simultaneously from several threads (as is for example the case when enabling the cloud features). See bug #10524: Thread safety issue with MemoryPool
2018-10-14OSYSTEM: Add backendInitialized() functionThierry Crozat
Some feature, such as mutexes, are only available once the backend has been initialized. This new function can be used to avoid using those feature too early or too late.
2018-09-01SCI32: Add a game option to double the videos in KQ7 by defaultFilippos Karapetis
Scaling works correctly with the Windows variant, which uses AVI files, but the DOS variant uses Robot videos, and the way scaling is done there is different, and is not working yet with KQ7 DOS. Nonetheless, both versions are included in the game, so it's not a major issue.
2018-08-25COMMON: Cos/Sin Table switch internal structure so at() is fasterDavid Fioramonti
A new internal table has been added so that no if checks need to be performed for the at() lookup. The old table can still be accessed using getTable or atLegacy(). at() and atLegacy() return the same values, but at() is faster.
2018-08-25COMMON: Update RDFT and DCT cos/sin table constructor usageDavid Fioramonti
When the constructor for the cos/sin table was changed from number of bits to number of points all usages thoughout the code should of been changed, but this was missed in RDFT and DCT. Fixes Trac#10683.
2018-08-25MUTATIONOFJB: Use advanced detector.Ľubomír Remák
2018-08-18COMMON: FFT update cos/sin table constructor changeDavid Fioramonti
They now take in the size rather than the power of 2 exponent.
2018-08-18COMMON: allow cos/sin number of points to be more flexibleDavid Fioramonti
Previously, the cos/sin table had to be a power of 2, but there are many use cases where the number of points is not necessarily a power of 2 so this change the constructor so it now takes in the number of points rather than the number of points as the exponent of a power of 2. The restriction is that the size must be divisible by 4.
2018-08-18COMMON: Make strdup a forbidden symbolCameron Cawley
2018-08-18COMMON: Move new_strdup to common/str.cppCameron Cawley
2018-08-05COMMON: changed code page constant name from ascii to utf8Andrei Prykhodko
2018-08-05COMMON: made code pages conversion arrays static and constantAndrei Prykhodko
2018-08-05COMMON: named CodePage enumAndrei Prykhodko
2018-08-05COMMON: added method to convert text from various code pages to UnicodeAndrei Prykhodko
2018-08-03COMMON: Added Ukrainian languagelolbot-iichan
Common::UA_UKR is needed for FoxTail game at WinterMute engine
2018-07-30COMMON: Fix HashMap never reusing erased items storageThierry Crozat
When erasing and inserting many items this caused the hashmap capacity to grow more than it should which resulted in performances issues (and possibly memory issues as well). The issue was reported on IRC today with the wintermute engine.
2018-07-25COMMON: Add at() index function to cosine/sine tableDavid Fioramonti
The cos/sin table class now has an at() function for indexing safely into its internal array. This allows the checking and computing of the correct indexes to be done internally. The indexing in allows cos/sine of 0 to 2pi to be obtained. The values returned by getTable are the same as before. Comments that describe the values that the table contains has been modified to line up with what the code is doing.
2018-07-08GUI: Add Stretch Mode selection in Options dialogThierry Crozat
2018-07-08OSYSTEM: Add Stretch Mode APIThierry Crozat
2018-06-28COMMON: Added Finnish language constantsEugene Sandulenko
2018-06-18COMMON: Add simplistic UTF8->UTF32 converterEugene Sandulenko
2018-06-07MOHAWK: Display a GUI error message when no audio devices are availableBastien Bouclet
2018-06-04COMMON: More nullptr usage in common/ptrDavid Fioramonti
Replaces some more ptr=0 with ptr=nullptr.
2018-06-03Merge pull request #1141 from DanielSWolf/larryscaleThierry Crozat
SCI: High-quality "LarryScale" cel scaler for LSL7
2018-05-28COMMON: coding convention improvements for degree conversion funcsDavid Fioramonti
Removed whitespace before template keyword. Made template types camel case starting with lowercase.
2018-05-25COMMON: fix wrong size assignment in HashMapwhiterandrek
2018-05-24JANITORIAL: Fix trailing whitespaceAdrian Frühwirth
2018-05-20COMMON: Template deg2rad and rad2deg in Common/mathDavid Fioramonti
The input and output type can be different. Currently, rad2deg is only being used by sci (float to int) and deg2rad in wintermute.
2018-05-10COMMON: Use nullptr instead of NULL or 0 where appropriateBastien Bouclet
2018-04-30GUI: Make the tab completion case insensitive in the debug consoleBastien Bouclet
It made little sense for the tab-completion to be case sensitive while command execution itself is case insensitive.
2018-04-29COMMON: Add hasInstance() bool to singleton classLothar Serra Mari
2018-04-29OSYSTEM: Add API to copy text to clipboardThierry Crozat
This has also been implemented for the SDL2 and macOS backends.
2018-04-22JANITORIAL: Fix formattingAdrian Frühwirth
2018-04-19JANITORIAL: Fix whitespaceAdrian Frühwirth
2018-04-15JANITORIAL: Fix whitespaceAdrian Frühwirth
2018-04-07ALL: Load savegame thumbnail only when necessaryAdrian Frühwirth
This commit introduces the following changes: 1. Graphics::loadThumbnail() Now returns a boolean and takes a new argument skipThumbnail which defaults to false. In case of true, loadThumbnail() reads past the thumbnail data in the input stream instead of actually loading the thumbnail. This simplifies savegame handling where, up until now, many engines always read the whole savegame metadata (including the thumbnail) and then threw away the thumbnail when not needed (which is in almost all cases, the most common exception being MetaEngine::querySaveMetaInfos() which is responsible for loading savegame metadata for displaying it in the GUI launcher. 2. readSavegameHeader() Engines which already implement such a method (name varies) now take a new argument skipThumbnail (default: true) which is passed through to loadThumbnail(). This means that the default case for readSavegameHeader() is now _not_ loading the thumbnail from a savegame and just reading past it. In those cases, e.g. querySaveMetaInfos(), where we actually are interested in loading the thumbnail readSavegameHeader() needs to explicitely be called with skipThumbnail == false. Engines whose readSavegameHeader() (name varies) already takes an argument loadThumbnail have been adapted to have a similar prototype and semantics. I.e. readSaveHeader(in, loadThumbnail, header) now is readSaveHeader(in, header, skipThumbnail). 3. Error handling Engines which previously did not check the return value of readSavegameHeader() (name varies) now do so ensuring that possibly broken savegames (be it a broken thumbnail or something else) don't make it into the GUI launcher list in the first place.
2018-04-04COMMON: Add WARN_UNUSED_RESULT to scummsys.hAdrian Frühwirth
2018-04-04COMMON: Verify nb_NO localeAdrian Frühwirth
Despite looking weird, this is the correct locale for Norwegian (Bokmål).
2018-03-29COMMON: Fix Doxygen commentAdrian Frühwirth
2018-03-22COMMON: Fix UB, left shift of negative valueAdrian Frühwirth
2018-03-16SCI: Add game option for enabling/disabling LarryScale in LSL7Daniel Wolf
All other SCI games continue using the default scaler.
2018-01-31COMMON: Move VER macro for serializer into common codeColin Snover
2018-01-31COMMON: Add support for array serialization to SerializerColin Snover
SCUMM engine does quite a bit of direct array serialization.
2017-12-28COMMON: Add a reset method to DisposablePtrBastien Bouclet
2017-12-03ALL: Remove obsolete register keywordColin Snover
The register keyword was deprecated from the C++11 standard, <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4193.html#809>, and removed from the C++17 standard, <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4340>, so cannot exist in a well-formed C++17 program. It has never done anything in GCC <https://gcc.gnu.org/ml/gcc/2010-05/msg00113.html> and because of the way it is specified in the standard, it is “as meaningful as whitespace” <http://www.drdobbs.com/keywords-that-arent-or-comments-by-anoth/184403859>. The one remaining use of the register keyword is in the DS backend, where it is used to create a local register variable using the non-standard GCC Extended Asm feature. Closes gh-1079.