Le Philousophe
032904f626
COMMON: Use forward to avoid extraneous copies
...
This is more a test than really useful as printf doesn't take objects
with move semantics
2022-10-30 18:37:16 +01:00
Le Philousophe
f0cf08ec91
COMMON: Add move semantics helpers
2022-10-30 18:37:16 +01:00
Le Philousophe
7021b938e5
COMMON: Add remove type helpers for const and volatile
2022-10-30 18:37:16 +01:00
Le Philousophe
1800117031
COMMON: Remove useless str.h inclusion
...
The util.h header must not include str.h as it will get used in it
(inclusion loop).
2022-10-30 18:37:16 +01:00
Hubert Maier
a722cd9811
COMMON: Correct spelling mistake
...
begining -> beginning
2022-10-27 15:56:05 +02:00
Hubert Maier
54e833d16b
COMMON: Correct spelling mistake
...
refrence -> reference
2022-10-27 15:56:05 +02:00
Hubert Maier
6633c32acb
Update endian.h
...
alot - > a lot of
2022-10-27 15:56:04 +02:00
Hubert Maier
6bd7b6a59b
COMMON: Correct spelling mistake
...
alot - > a lot
2022-10-27 15:56:04 +02:00
Le Philousophe
6524f7beb5
COMMON: Forbid use of unsafe sprintf and vsprintf
2022-10-23 22:46:19 +02:00
Le Philousophe
cd785e2208
COMMON: Add sprintf_s and vsprintf_s
...
These functions will issue warnings and truncate strings.
It's like snprintf and vsnprintf but noisier.
There are also versions automatically determining size based on the destination
array size.
This raises a compilation error when the size cannot be determined by
the compiler.
2022-10-23 22:46:19 +02:00
Le Philousophe
9c04d72471
COMMON: Forbid use of unsafe strcat and strcpy
2022-10-23 22:46:19 +02:00
Le Philousophe
f8c25e2374
COMMON: Add strcpy_s and strcat_s
...
These functions will issue warnings and truncate strings.
It's like strlcpy and strlcat but noisier.
There are also versions automatically determining size based on the destination
array size.
This raises a compilation error when the size cannot be determined by
the compiler.
2022-10-23 22:46:19 +02:00
Shahar Ariel
20821f96ed
SWORD25: Add hebrew support
...
changes:
* use unicode-bidi for hebrew text
* add detection of hebrew patch to detection table
2022-10-18 17:37:55 +02:00
Eugene Sandulenko
475d2e119a
COMMON: Added OSystem::kTransactionShaderChangeFailed enum value
2022-10-08 23:39:18 +02:00
Cameron Cawley
79fff69231
COMMON: Use Common::String for OSystem::setShader
2022-10-08 23:39:18 +02:00
Cameron Cawley
64c359b5cb
GUI: Replace the options for selecting shaders
2022-10-08 23:39:18 +02:00
Cameron Cawley
9a71eb1a6d
VIDEO: Avoid 64-bit math in Smacker bitstreams
2022-10-01 10:58:47 +02:00
elasota
cdedda7fa8
COMMON: Add move semantic assign and construct to strings
2022-09-28 17:09:34 +02:00
Scott Percival
095ae06405
COMMON: Refactor MacResManager::load* methods to accept a pointer
...
Previously the methods would pass by reference, then convert to a
pointer on success and take ownership. This isn't ideal, as a
reference suggests no transferral of ownership, and doesn't suggest
it needs to be a heap resource allocated by new.
2022-09-25 10:35:03 +02:00
Paul Gilbert
5c49468ecd
COMMON: Added comments to indicate ScummVM forbidden equivalents
2022-09-24 10:22:55 -07:00
elasota
55d31b0260
COMMON: Pass U32String format params by reference and fix warnings about passing a non-trivial class to va_start.
2022-09-24 10:16:24 +02:00
Matthew Duggan
64681f5ded
COMMON: Add basic text node support to XMLParser
2022-09-22 09:40:21 +03:00
Le Philousophe
092cb26b50
Revert "COMMON: Avoid passing U32String full object as parameter"
...
This reverts commit 64675dbba6
.
It fails on MSVC with error:
C2338 static_assert failed: 'va_start argument must not have reference type and must not be parenthesized'
2022-09-18 22:46:54 +02:00
elasota
3f0c1f81d5
COMMON: Add function to flatten edit lists to work around Obsidian audio popping problem.
...
Obsidian's vidbot videos have audio tracks of consecutive audio chunks that are 22080 samples of 44100Hz audio, and a series of edit lists that are 0.5 seconds in duration (which would be 22050 samples), but have media times spaced 22080 samples apart, meaning every half-second, the audio skips 30 samples ahead. This seems in line with how the QTTF specification says it should work, so it's not clear why other players don't have this problem.
2022-09-18 23:07:39 +03:00
Le Philousophe
bd761c8705
COMMON: Fix memory leak when deserializing U32String
2022-09-18 20:55:16 +02:00
Le Philousophe
c83ff22c8a
COMMON: Fix uninitialized member
...
It was never used but static analysis complained
2022-09-18 20:43:33 +02:00
Le Philousophe
56f07b0e78
COMMON: Fix invalid shift
...
Sign bit is at bit 15 and must go to bit 63
2022-09-18 20:37:36 +02:00
Le Philousophe
64675dbba6
COMMON: Avoid passing U32String full object as parameter
...
Use a const reference instead
2022-09-18 16:15:56 +02:00
Thierry Crozat
e36abe967e
COMMON: Move std::initializer_list to scummsys.h
2022-09-04 23:20:17 +01:00
Cameron Cawley
47755b4b38
COMMON: Make better use of inlining in BitStream functions
2022-08-28 00:05:31 +03:00
Cameron Cawley
330346d3be
COMMON: Change Common::Language and Common::Platform to use a smaller type
2022-08-23 21:45:29 +03:00
Cameron Cawley
5a069277f9
COMMON: Add a range-based version of Common::Array::erase()
2022-08-22 20:28:53 +03:00
Le Philousophe
111d259015
ALL: Add limits.h for all codebase
2022-08-22 15:38:10 +02:00
Orgad Shaneh
2e441b12e6
COMMON: Fix compiler warning on Win64
...
Amends 7d4d135b99
.
2022-08-12 17:06:21 +03:00
Cameron Cawley
7bd5497dfe
COMMON: Add Common::Pair
2022-08-12 00:27:15 +03:00
Eugene Sandulenko
7d4d135b99
COMMON: Add sanity checks to MacResManager::readMap()
2022-08-08 02:06:08 +02:00
Eugene Sandulenko
74c253bef8
COMMON: Some programs store AppleDouble files in *.rsrc. Check for that
2022-08-08 02:05:06 +02:00
elasota
e5881d3621
COMMON: Uninit field cleanup
2022-08-06 11:30:43 +02:00
Donovan Watteau
27f9a460b5
JANITORIAL: Fix "the the" and similar typos
2022-07-29 19:36:40 +03:00
Eugene Sandulenko
30f3e0eceb
COMMON: Get accessor methods to the platform and language lists
2022-07-22 15:03:48 +02:00
athrxx
dd39b406c0
COMMON: add CGA b/w render mode
...
(for SCUMM v1)
2022-07-11 18:16:23 +02:00
athrxx
bd1f3ff984
COMMON: add CGA Composite render mode
...
(for SCUMM v1)
2022-07-10 01:04:38 +02:00
Cameron Cawley
c72b59c8a8
COMMON: Add GUIO10, GUIO11 and GUIO12
2022-07-07 23:46:04 +03:00
D G Turner
d136adedd9
COMMON: Fix Signed vs. Unsigned Comparison Warnings in Punycode
2022-07-05 21:52:28 +01:00
Eugene Sandulenko
b0d722473b
COMMON: Process common suffixes for punycoded strings
2022-07-05 15:13:08 +02:00
Eugene Sandulenko
b84b8ac53c
JANITORIAL: Use C++-style comments
2022-07-05 14:21:12 +02:00
Eugene Sandulenko
c9d88ac756
COMMON: Do not crash on malformed punycode strings
2022-07-05 14:16:55 +02:00
Avijeet
a662df81c7
COMMON: Rename TI99 platform
2022-07-02 15:17:53 +02:00
Avijeet
4d66e735ba
COMMON: Add new platform TI-99/4A
2022-07-02 15:17:53 +02:00
elasota
2cad62a6ec
COMMON: Add string encoding API with more detailed error behavior.
2022-07-02 12:53:50 +02:00