4300 Commits

Author SHA1 Message Date
elasota
2f19102f44 COMMON: Avoid calling punycode_decodefilename on strings that aren't punycode. 2023-09-20 02:16:25 +02:00
elasota
e5e9d5c96d COMMON: Performance improvement for toUppercase and toLowercase: Avoid calling makeUnique on strings that aren't modified. 2023-09-20 02:16:25 +02:00
Eugene Sandulenko
7f4c0c9391
JANITORIAL: Remove trailing whitepaces 2023-09-19 15:16:20 +02:00
Eugene Sandulenko
6632467df7
COMMON: Add missing override keywords 2023-09-17 21:12:34 +02:00
elasota
63b01f5e85 COMMON: Strip trailing slashes from ZipArchive directories and improve directory detection. Add support for listChildren and isDirectory. 2023-09-17 19:17:33 +02:00
elasota
b93d803f3e COMMON: Add isDirectory and listChildren to FSNode and FSDirectoryFile 2023-09-17 19:17:33 +02:00
elasota
1155eb7894 COMMON: Add isPathDirectory to Archive, and isDirectory and listChildren to ArchiveMember 2023-09-17 19:17:33 +02:00
elasota
79e06f899a COMMON: Fix String::matchString matching excluded characters with trailing asterisk wildcards 2023-09-17 19:17:33 +02:00
Eugene Sandulenko
2bea791278 OSYSTEM: Improed const'ness of the buildHelpDialogData() call 2023-09-17 00:56:28 +02:00
Eugene Sandulenko
1d636a1687 OSYSTEM: Described format for buildHelpDialogData() call 2023-09-17 00:56:28 +02:00
Eugene Sandulenko
7ab1c93712 OSYSTEM: Added buildHelpDialogData() call 2023-09-17 00:56:28 +02:00
Eugene Sandulenko
c20290afeb COMMON: Rename class variables in SDMarkdown 2023-09-17 00:56:28 +02:00
Eugene Sandulenko
e237634777 COMMON: Turn sd_markdown into a class 2023-09-17 00:56:28 +02:00
Eugene Sandulenko
ce8a0456db COMMON: Reduce Common:: namespace pollution by Markdown 2023-09-17 00:56:28 +02:00
Eugene Sandulenko
fe0fbe5cff COMMON: Make Markdown return Common::String 2023-09-17 00:56:28 +02:00
Eugene Sandulenko
3cbb035875 COMMON: Added String::chop() method 2023-09-17 00:56:28 +02:00
Eugene Sandulenko
eac4a62389 COMMON: Remove unused functions in Markdown 2023-09-17 00:56:28 +02:00
Eugene Sandulenko
f12386adea COMMON: FORMATS: Catch list start in Markdown 2023-09-17 00:56:28 +02:00
Eugene Sandulenko
85b2b3ce1d COMMON: Fix function prototype 2023-09-17 00:56:28 +02:00
Eugene Sandulenko
3c6284949c COMMON: Added initial code for Markdown parsing
Taken from https://github.com/vmg/sundown
2023-09-17 00:56:28 +02:00
Ankush Dutt
2a60a4d213 DLC: Set kFeatureDLC and _dlcStore for ScummVMCloud, Playstore in backend 2023-09-14 08:22:56 +02:00
Ankush Dutt
478d3f2ab9 COMMON: Fix incomplete type warning for dlc store 2023-09-14 08:22:56 +02:00
Ankush Dutt
045a99e50c BACKENDS: Remove platform-specific defines and enforce factory design pattern for creating DLC store 2023-09-14 08:22:56 +02:00
Ankush Dutt
6e8bdee909 BACKENDS: Add initial code for DLC Manager 2023-09-14 08:22:56 +02:00
elasota
9892bedc61 COMMON: Add createReadStreamForAltStream to open Mac resource fork and metadata streams 2023-08-30 00:31:00 +02:00
elasota
4f83f8f625 COMMON: Use standard library strlen for char string lengths. 2023-08-28 22:04:26 +02:00
elasota
20c91ae391 COMMON: Move string length calculation to a separate function so it's easier to get through string constructors with just Step Over while debugging (vs. Step Out which has a 2-key default keybind in VS and can behave badly with optimizations enabled). 2023-08-28 22:04:26 +02:00
Simon Delamarre
c097a43a1f COMMON: Allow to know the archive name of matching members in SearchSet 2023-08-28 21:52:38 +02:00
Le Philousophe
2f7c2149e5 COMMON: Remove useless inflateZlib function
To write on stream it's simpler to use wrapCompressedReadStream and
writeStream function.
2023-08-28 21:49:03 +02:00
Le Philousophe
5bdd9e6f50 ALL: Unify zlib and gzio API
zlib is used when available and falls back on gzio.
This allows performance improvements as our CRC32 and gzio
implementations are slower than base zlib.
As zlib is available when libpng is present, this is sensible to
benefit from it.
2023-08-28 21:49:03 +02:00
Le Philousophe
be3eb09753 COMMON: Allow GZipReadStream to work on data in the middle of stream 2023-08-28 21:49:03 +02:00
Le Philousophe
191bde03ad COMMON: Use memcpy instead of memmove
memove was used although the buffers were not overlapping.
Using memcpy allows for better optimizations by compiler.
2023-08-28 21:49:03 +02:00
Le Philousophe
5edf74d8a6 COMMON: Cleanup flags defines
In addition, use flags from RFC and not from (really) old gzip
implementations.
2023-08-28 21:49:03 +02:00
Le Philousophe
b5e3173b10 COMMON: Fix inflateZlibHeaderless name
The function takes a stream beginning with zlib header unlike the name
suggests.
inflateInit expects to parse a zlib header.
2023-08-28 21:49:03 +02:00
Le Philousophe
ead4171bbd COMMON: Rewrite writeStream to work with any ReadStream
This let it work with stream without a known size and avoids allocating
big buffers when file is big.
2023-08-28 21:49:03 +02:00
Thierry Crozat
ef7c881416 OSYSTEM: Add kFeatureTouchscreen to identify backends with a touchscreen 2023-08-22 23:37:11 +01:00
elasota
92320d616d COMMON: When flattening QuickTime edit lists, don't flatten non-silent audio chunks into silent chunks or vice versa.
Fixes missing vidbot VO in Obsidian Japanese.
2023-08-22 13:18:15 +03:00
Wyatt Radkiewicz
787837ca41 ALL: Add Cpu prefix to SIMD extension features 2023-08-13 00:22:10 +02:00
Wyatt Radkiewicz
6bdeeb506f OSYSTEM: Added SSE4.1 feature flag 2023-08-13 00:22:10 +02:00
Wyatt Radkiewicz
50a28d1554 OSYSTEM: Added SIMD feature flags 2023-08-13 00:22:10 +02:00
Ankush Dutt
8150c720d3 COMMON: DumpArchive(): add check to skip directory, return error if a file cannot be opened 2023-08-09 18:15:43 +02:00
Ankush Dutt
b90efbe47c COMMON: Handle writing failed in dumpArchive when not enough storage 2023-08-09 18:15:43 +02:00
Cameron Cawley
312f077198 COMMON: Fix comments about screen shaking 2023-08-08 17:34:47 +03:00
Eugene Sandulenko
bb9e86e9c6
COMMON: Fix warnings 2023-08-07 10:48:59 +02:00
elasota
58271a834c COMMON: Remove #pragma once 2023-08-07 10:22:09 +02:00
elasota
3c1efe4f89 COMMON: Add file format info API 2023-08-07 10:22:09 +02:00
Thierry Crozat
9de5b3345c OSYSTEM: Add functions to notify the backend when a task is started or finished
A task can for example be running the local server, downloading icons
or shaders pack, or downloading games from the cloud.
2023-08-06 23:07:35 +02:00
Cameron Cawley
d8cca29783 BACKENDS: Allow filling part of the screen with OSystem::fillScreen 2023-08-06 23:03:46 +02:00
Misty De Meo
b975da2335 COMMON: fix MacResManager native resource forks
These broke in the archive refactor,
b8acbe6bee730a9024e73acc769b54285be9afde/#5108, because it removed
the ability to directly convert an `ArchiveMember` to an `FSNode`.
As a result, it was no longer possible to directly open a resource
fork as a stream.
2023-07-27 11:02:29 +02:00
Scott Percival
7304796a01
VIDEO: Remove extra hexdump in QuickTime parser 2023-07-23 20:26:05 +08:00