Commit Graph
3641 Commits
Author SHA1 Message Date
Pawel Kolodziejski 0e42d4f504 ALL: Cleanup guards names. Fixed compilation. 2020-10-05 21:20:43 +02:00
Pawel Kolodziejski c4b9f966b6 GRIM: Drop side textures feature from backend. 2020-10-05 19:09:58 +02:00
Eugene Sandulenko 706d25d47e COMMON: Revert unintended change 2020-10-05 16:30:13 +02:00
Pawel Kolodziejski 4f8f566299 ALL: Sync with ScummVM rev: c52f7e0e04 2020-10-05 14:54:26 +02:00
Bartosz Gentkowski c52f7e0e04 DOXYGEN: doxygen changes in header files 2
Edited files in the common folder:

- bufferedstream.h
- callback.h
- config-manager.h
- coroutines.h
- cosinetables.h
- dcl.h
- debug.h
- debug-channels.h
2020-10-05 13:45:08 +02:00
Bartosz Gentkowski b6c5d415ee small edits, to be squashed 2020-10-05 13:43:50 +02:00
Bartosz Gentkowski 59fce86705 DOXYGEN: updates in first header files
Add and improve doxygen blocks in header files:

- achievements.h
- algorithm.h
- archive.h
- array.h
- bitstream.h
2020-10-05 13:43:50 +02:00
Pawel Kolodziejski d15f78d502 ALL: Missed few files to add after sync with ScummVM 2020-10-05 00:05:35 +02:00
Pawel Kolodziejski 4631c0e2ed ALL: Sync with ScummVM rev: a4002bdeee 2020-10-04 23:59:26 +02:00
Bartosz Gentkowski ec24687ce4 DOXYGEN: Add doxygen groups to header files in the common folder
Adding @defgroup and @ingroup doxygen tags into all headers
in the common folder that contain doxygen blocks.

This improves the structure, readability, and findability
of information in the resulting output.

This commit targets purely structure and does not deal with
the content of the currently existing doxygen documentation.
2020-10-04 18:25:50 +02:00
Thierry Crozat 64f727ca3d COMMON: Fix performance issues in Encoding when checking endianness 2020-10-03 23:04:25 +01:00
Thierry Crozat 8555463758 COMMON: Fix Encoding switchEndian function
The result string was missing the null terminator.
2020-10-03 23:04:25 +01:00
Pawel Kolodziejski 2ef7bfc3ef COMMON: Remove not used anymore joystick events entries 2020-10-03 17:34:00 +02:00
Thierry Crozat 786aac568b COMMON: Add c++11 initializer list replacement when not available in std lib
The c++11 standard includes some features that do not only depend on the
compiler supporting it, but also the c++ standard library having support
for it. This is the case for the initializer list feature. So when we
compile with a modern compiler but using an old std lib we need a
replacement for it.
2020-10-03 15:51:14 +02:00
Thierry Crozat a275522f89 COMMON: Add list initialization and move semantics to Array 2020-10-03 15:51:14 +02:00
aryanrawlani28 9c67225293 COMMON: ERROR: Add kMetaEnginePluginNotFound 2020-10-03 14:56:36 +02:00
Pawel Kolodziejski d8f2040dba ALL: Drop setupScreen API, use new initGraphics3d from engine API.
Enabled system API for begin/end gfx transactions, initSize, setGraphicsMode.
Function setGraphicsMode will use optional params to trigger 3d rendering
and switch to proper SDL Gfx manager.
2020-10-02 19:14:19 +02:00
Pawel Kolodziejski 6f69981904 BACKENDS: Drop launcherInitSize() and use 2d backend gfx manager for launcher. 2020-09-30 16:52:44 +02:00
Pawel Kolodziejski 89a0638f4b COMMON: Cleanup code comments 2020-09-27 19:35:07 +02:00
Pawel Kolodziejski 5c311ac905 ALL: Cleanup after sync 2020-09-25 14:48:20 +02:00
Pawel Kolodziejski e9b528549e COMMON: Make system methods optionally 2020-09-25 11:16:31 +02:00
Pawel Kolodziejski c50f944f9f COMMON: Cleanup left over 2020-09-24 16:40:16 +02:00
Pawel Kolodziejski 27e12d8a96 ALL: Eliminate LOCAL_PI macro 2020-09-23 23:20:23 +02:00
Paweł Kołodziejski db4295c1a8 COMMON: Added PS2 and XBOX platform definitions. 2020-09-23 22:59:20 +02:00
Pawel Kolodziejski bfe58d3c77 ALL: Synced with ScummVM - rev: d4db631f9b 2020-09-23 21:52:10 +02:00
Eric Fry 8e55335eb0 COMMON: Add Sega Megadrive/Genesis platform 2020-09-21 23:11:10 +02:00
Bastien Bouclet 0f2c6cd9ea ENGINES: Change mac resource fork file detection to use the file cache
Common::MacResMan is now able to open files from a specified
Common::Archive. This is a bit hacky as dynamic_cast is used to break
the Archive encapsulation to retreive the underlying FSNode. It should
however be more correct than the previous code that assumed files were
at the root of the currently running game's path.

AdvancedDetector constructs a Common::Archive from its FileMap based
filesystem cache and uses it to detect the mac resource fork files.

This cuts the time it takes to run the detection code with all the
engines enabled as dynamic plugins on the 3DS to 30 s from 280 s.
2020-09-20 16:33:45 +02:00
Bastien Bouclet 9a1e2368b2 COMMON: Avoid an unnecessary copy in the XML parser 2020-09-20 16:33:45 +02:00
Cameron Cawley 31be074893 BACKENDS: Add a function to return if the overlay is visible 2020-09-15 00:09:11 +02:00
Pawel Kolodziejski 15a759370a ALL: Synced with ScummVM - rev: bdbbcd81ae 2020-09-12 19:38:50 +02:00
Vladimir Menshakov 0a4154318c COMMON: implement %c formatter (used in hardware-input.cpp)
Fix invalid descriptor name for half-axis.
Add some tests for U32String::Format.
2020-09-12 11:56:17 +01:00
Cameron Cawley 6e0c93dc46 COMMON: Add helper functions for converting strings 2020-09-12 11:59:23 +02:00
SupSuper b123a21eed BACKENDS: Add support for qualified game IDs in taskbar icons 2020-09-09 01:58:20 +01:00
Thierry Crozat c5ede297ea JANITORIAL: Simplify some code that use U32String::format 2020-09-08 21:24:27 +01:00
Thierry Crozat 54f825359f COMMON: Allow using U32String::format with a C string format string 2020-09-08 21:22:04 +01:00
Cameron Cawley 5a6e411bfd COMMON: Fix U32String::itoa when num is 0 2020-09-06 13:20:05 +01:00
Pawel Kolodziejski d5304e2568 ALL: Synced with ScummVM - rev: 33a47d23b8 2020-09-03 02:21:14 +02:00
Thierry Crozat 9ab48df4b6 COMMON: Fix comparaison operators for U32String
They were supposed to compare two U32String, but due to a copy/paste
error they were comparing a U32String with a String. It compiled
because there is a String constructor that takes a U32String (and
converts it to UTF-8), but it was probably not quite working as
expected for non-ASCII characters.
2020-09-02 21:01:15 +01:00
Vladimir Menshakov 8ddcbf8120 COMMON: Fix warnings about different signedness (uint32/char comparison), remove unused var
Add tests for both str/ustr comparison operators.
2020-09-02 20:35:43 +01:00
Thierry Crozat 927127abd5 I18N: Support having unicode characters in language names 2020-09-02 12:08:49 +02:00
Thierry Crozat 9fcc83c09d COMMON: Add comparison operators to U32String
Those operators just compare the numerical value of each character
one by one. This is not idea, but this is better than nothing.
2020-09-02 12:08:49 +02:00
Vladimir Menshakov 04943476b1 COMMON: Add Rect::getBlitRect() that ensures you did not blit out of src or dst surface boundaries 2020-09-01 21:52:42 +01:00
Eugene Sandulenko 1425c39d71 Revert "COMMON: Rename ZH_ANY language code nz -> zh"
This reverts commit 6c97dcbb4a.
2020-09-01 16:54:33 +02:00
Eugene Sandulenko 6c97dcbb4a COMMON: Rename ZH_ANY language code nz -> zh
Since it concerns only one game in Wintermute ATM, I don't
bother implementing autoupgrade
2020-09-01 16:37:36 +02:00
Thierry Crozat 1b67a0f069 COMMON: Fix assingning a String to a U32String
When assigning a String or char * to an existing U32String, the code
assumed that the current _str pointed to the internal storage. But
that is not the case if the U32String contains a string longer
than the internal storage capacity prior to the assignment, and
this led to various memory issues (and usually a crash down the
line).
2020-09-01 00:12:03 +01:00
Vladimir Menshakov 035ddef16c COMMON: Add ARRAYCLEAR to clear given array using default or provided value. 2020-08-31 21:57:07 +01:00
Vladimir Menshakov f63f424309 COMMON: Preserve the order of insertion for equal range of the keys. 2020-08-31 18:17:29 +01:00
Vladimir Menshakov e7d7c67c69 COMMON: Allow something else than raw pointer to be used in SortedArray 2020-08-31 18:17:29 +01:00
Vladimir Menshakov fb05242d36 COMMON: Add a way to specify default section name for simple sectionless .ini files 2020-08-31 18:17:28 +01:00
aryanrawlani28 fe561ecdee COMMON: U32: Fix incorrect usage of %i
- %i & %d work in the same manner.
2020-08-30 20:03:26 +01:00