aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2019-07-30COMMON: Update getHumanReadableBytes() in util.hAlexander Tkachev
Function now casts bytes (as <1024) to unsigned long int to correspond "%lu" format string. For consistency, KB are now printed as floating number. Finally, it looks like double is pretty precise to be used in comparisons, so I made the function a little bit shorter.
2019-07-30COMMON: Add getHumanReadableBytes() in util.hAlexander Tkachev
This function was used in cloud-related DownloadDialog before, and now it is also used in Options > Cloud tab.
2019-07-24COMMON: Add Default Values for Joystick State StructureD G Turner
This ensures that this has a defined value when used without the engine needing to set the field values directly i.e. as per CGE.
2019-07-24COMMON: Add wrappers for iscntrl() and isgraph()Cameron Cawley
2019-07-21COMMON: Add conversion table for CP1254lolbot-iichan
2019-07-18COMMON: Fix U32String initialization issuesPeter Kohaut
Bug 1: If the original C string contained chars > 127 they would be stored as huge u32 numbers due to the underflow as char is signed. It still might end-up with invalid UTF32 characters, but now the caller can control it. Bug 2: The inline storage was not properly initialized when U32String was initalized from shorter non-UTF32 strings.
2019-07-16COMMON: Add Turkish languagelolbot-iichan
2019-07-13SDL: Fix compiler warning and joystick event handlingjepael
2019-07-08COMMON: Open the main menu when the joystick START button is pressedCameron Cawley
2019-07-08SDL: Initial implementation of joystick eventsCameron Cawley
2019-06-30JANITORIAL: Avoid C4121 warnings in MSVC by reordering fieldsLe Philousophe
C4121 is about 'symbol': alignment of a member was sensitive to packing
2019-06-30COMMON & WINTERMUTE: Use non-1252 for 125X games (PR 1698)lolbot-iichan
* WINTERMUTE: Add detection for "The Driller Incident" "The Driller Incident" is a small freeware game for Wintermute, avaliable in English and Russian: http://questzone.ru/enzi/files/1645 * WINTERMUTE: Add detection table for "One Helluva Day" demo "One Helluva Day" is a point-and-click adventure demo in English / Czech / Russian. Free download: https://store.steampowered.com/app/603680/One_helluva_day/ * WINTERMUTE: Support CHARSET property for TT fonts "// we don't need this anymore" was a mistake =) Surely, most Wintermute games are either designed for 1252 language (DE_DEU, EN_ANY, ES_ESP, FR_FRA, IT_ITA, PT_BRA), or don't use TrueType fonts (5ma, deadcity, grotter1, grotter2, thekite, tib), or use CHARSET=1 with UTF strings (dirtysplit, reversion1, reversion2, twc), which meen this conversion is not needed for those games. However, there are some games that explicitly states CHARSET=10 (driller (RU_RUS), oknytt (RU_RUS), onehelluvaday (UNK_LANG when playing as Russian)) and there are some games with CHARSET=1 with non-1252 in mind (bookofgron (RU_RUS excepts 1251), carolreed4 (RU_RUS excepts 1251), kulivocko (CZ_CZE excepts 1250)). This fixes text in some games: bookofgron, carolreed4, driller, kulivocko, oknytt, onehelluvaday. * WINTERMUTE: Break savegame compatibility sizeof(BaseFontTT) was changed, so let's break savegame compatibility * COMMON: Add conversion tables for win1253 and win1257 * COMMON: Add string conversion from U32String back to Common::String convertUtf32ToUtf8 code is based on Wintermute::ConvertUTF32toUTF8 convertFromU32String use convertUtf32ToUtf8 for UTF8 or lookup through conversion table for single-byte encodings * WINTERMUTE: Use Common::convert functions for non-UTF charsets * WINTERMUTE: Fix whitespaces at detection tables * WINTERMUTE: Add TODO comments
2019-06-21ANDROID: Move isConnectionLimited into OSystemCameron Cawley
2019-06-01STREAM: add read/write functions for double LE/BELe Philousophe
2019-06-01COMMON: Fix a memory leak in Common::DumpFileBastien Bouclet
2019-05-24GLK: TADS2: Added code for output, run, various miscellaneousPaul Gilbert
2019-05-12COMMON: Fix seek return values, memory stream use in create_titanicPaul Gilbert
2019-05-12COMMON: Changed DumpFile & StdIOStream to derive from SeekableWriteStreamPaul Gilbert
2019-05-12COMMON: Created SeekableWriteStream classPaul Gilbert
2019-05-01COMMON: Replace NEResourceType and PEResourceType with a shared enumCameron Cawley
2019-04-30GUI: Support adding games via Drag and DropCameron Cawley
2019-04-21COMMON: Fix compiler warningjepael
Cast the string character type to native type for comparison.
2019-04-15WINCE: Fix compilationCameron Cawley
2019-04-13COMMON: Use a prefix table to speed up the Huffman decoderBastien Bouclet
Symbols for codes shorter than the prefix table index width are stored in the table. All the entries in the table with an index starting with the code are set to the symbol value. That way, when decoding it is possible to get the number of bits corresponding to the table width from the bitstream and directly find the symbol value. Longer code still need to be searched for in the codes list.
2019-04-13COMMON: Rework the BitStream class to improve its performanceBastien Bouclet
* Fixed peekBits not to seek the underlying stream. Seeking can be slow when the stream is a file. * Changed multi-bit operations to work on multiple bits at once rather than iterating over single-bit operations. This is an almost direct port of a patch for xoreos provided by DrMcCoy.
2019-04-09COMMON: fixed reading ini files with section containing more than one wordAndrei Prykhodko
2019-03-09JANITORIAL: Update all scummvm.org URLS to use httpsCameron Cawley
2019-03-03COMMON: Allow '\#' to match '#' in matchStringsluicebox
matchString patterns couldn't be used to find files with the # character as it was only treated as a digit wildcard. SCI expected that to work as it looks for files that start with the # character.
2019-03-02COMMON: Add WRITE_UINT24Cameron Cawley
2019-01-30COMMON: Include hidden files in directory listings by defaultBastien Bouclet
Hidden files are now only ignored in the GUI file browser when the user has not checked 'show hidden files'. Myst III has the hidden flag set for one of the directories containing datafiles on the CD-ROM. When users copy the files to their hard drives the hidden flag is kept. Detection worked previously because hidden files were explicitly requested in the AD code. The engine would fail to open the datafiles because SearchMan.addSubDirectoryMatching ignored hidden directories.
2019-01-05COMMON: Remove usage of ScopedPtr in OutSaveFileBastien Bouclet
It's not very useful. However this is mostly to test the theory that the build failure we've been experiencing in engines/scumm/he/logic/football.cpp with the osx builder on buildbot is related to the size of the intermediary assembly source file.
2019-01-01COMMON: Suport String in U32String assignment & equality operatorsPaul Gilbert
2018-12-26JANITORIAL: Fix comment style for kFeatureSystemBrowserDialogMatan Bareket
2018-12-17COMMON: Rename enum variable for native browser featureThierry Crozat
There was a typo in the name (missing 'r' in browser).
2018-12-17WIN32: Move all ARRAYSIZE undefs to util.hSupSuper
Instead of trying to undefine ARRAYSIZE everywhere we use a Windows header, let's just do it before we define our own
2018-12-16BACKENDS: Add kFeatureNativeFileBowserDialogThierry Crozat
2018-12-16JANITORIAL: Fix typo in commentThierry Crozat
2018-12-16BACKENDS: Hook GUI browser to DialogManagerSupSuper
2018-12-16BACKENDS: Add base support for system dialogsSupSuper
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