Commit Graph

3725 Commits

Author SHA1 Message Date
ysj1173886760
361c723e8a ENGINE: introduce kDebugGlobalDetection which is used for print debug messages of advancedDetector 2021-05-22 01:34:57 +02:00
ysj1173886760
6d1aece1a8 COMMON: remove kDebugGlobalTest flag 2021-05-22 01:34:57 +02:00
ysj1173886760
7a0d9546ce GUI: move kDebugLevelEventRec flag to global flag 2021-05-22 01:34:57 +02:00
ysj1173886760
44e2285003 BASE: add duplicate debug channel check for addDebugChannel 2021-05-22 01:34:57 +02:00
ysj1173886760
d2ea7cea88 COMMON: fix the bug when using default implementation of getDebugChannel 2021-05-22 01:34:57 +02:00
ysj1173886760
96aa98ed14 ENGINE: change the name of the delimiter of DebugChannelDef 2021-05-22 01:34:57 +02:00
ysj1173886760
9ca5ce1390 COMMON: fix the include file of debug.h and debug-channels.h 2021-05-22 01:34:57 +02:00
ysj1173886760
a64a097ca3 COMMON: change passing pointer instead of passing the array when passing the debug channels 2021-05-22 01:34:57 +02:00
ysj1173886760
9609406205 COMMON: introduce debugFlagsClear and debugFlagsRegister to debug manager 2021-05-22 01:34:57 +02:00
ysj1173886760
f07ceca9cb BASE: add global debug flag 2021-05-22 01:34:57 +02:00
Kaloyan Chehlarski
cba24194e2 COMMON: Fix InstallShield cabinet version detection
The file version of InstallShield cabinets is now detected correctly.
2021-05-15 23:03:19 +03:00
Kaloyan Chehlarski
3f5ea7bbb7 COMMON: Add another file version to InstallShield cabinet code
Added a previously unknown version id to the InstallShield code.
2021-05-15 23:03:19 +03:00
Kaloyan Chehlarski
a8103e2eb5 COMMON: Add support for multi-file InstallShield cabinets
Added support for InstallShield v6 cabinets, which can be made up of
multiple files. The interface for creating an Archive instance now takes
the base filename (e.g. the "data" in "data1.cab") for all cabinets,
including single-file ones.

Co-Authored-By: clone2727 <236052+clone2727@users.noreply.github.com>
Co-Authored-By: Walter van Niftrik <615114+waltervn@users.noreply.github.com>
2021-05-15 23:03:19 +03:00
Orgad Shaneh
a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Martin Gerhardy
9d82fa51df COMMON: removed USE_TTS check from engines
OSystem now just returns a nullptr if there is no text to speech manager instance
(because none is compiled into the binary, or the system doesn't provide support
for it). This removed the need for the engine authors to add scummvm osystem compile
time options checks into their engine code
2021-05-03 14:13:41 +03:00
Cameron Cawley
d67b16a55d COMMON: Improve debugging of forbidden symbol issues 2021-04-27 04:05:11 +01:00
Eugene Sandulenko
c1e18cbb90
COMMON: Added more debug output to installshield 2021-04-26 14:50:20 +02:00
trembyle
2dbe4e9067 COMMON: Fall back to engine icon in taskbar
When an icon for game ID is not found, use the engine icon instead.
This provides a fallback so that every game doesn't need an icon.
2021-04-24 23:54:17 +01:00
Thierry Crozat
982ccb12eb COMMON: Add GUIO_NOLANG GUI option to hide the lang selector 2021-04-19 23:10:12 +01:00
Eugene Sandulenko
0cb63ae556
COMMON: Fix ConfMan.getBool() to correctly process missing values 2021-04-19 23:09:00 +02:00
Orgad Shaneh
b49e6eb96f JANITORIAL: Fix some excess tabs 2021-04-15 23:18:08 +03:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Eugene Sandulenko
c06d47e397 COMMON: Added kFeatureHiDPI and return it from the backend 2021-04-11 21:21:44 +02:00
Le Philousophe
5cdb300534 COMMON: Fix CJK encode/decode and make valgrind quiet
CJK offsets were wrong compared to encodings.dat file and buffers were
read past their end.
Rewrote indexing to make it match the Python script and optimize
slightly
2021-04-10 23:36:55 +02:00
Thierry Crozat
b5804e1257 COMMON: Do not return an error for unknown hashmap key in release builds
We have a lot of legacy code that was written with the old behaviour
where it returned the default value in such a case. Until we are
confident all this code has been updated, we continue to use the
old behaviour in release builds to avoid creating instabilities.

This still error our in non-release builds, which will help detect
the code that still needs to be updated.
2021-04-03 02:09:53 +01:00
Thierry Crozat
5757a406d9 GUI: Display correct ini path when using custom config file
This should avoid confusion for users when a custom config
file is used (for example for GOG games bundled with ScummVM).
2021-04-01 20:17:43 +01:00
Thierry Crozat
7988c1a23c COMMON: Fix compilation of devtools 2021-03-31 23:28:11 +01:00
Thierry Crozat
93e8e2a8c5 COMMON: Fix regression on String thread safety
The string memory pool mutex lock/unlock were lost during the
merge of String and U32String. This caused the cloud feature
to randomly crash for example when synchronizing savegames or
downloading game data.
2021-03-31 22:50:11 +01:00
Orgad Shaneh
1f6f82361f COMMON: Use __gnu_printf__ instead of __printf__ for gcc on MinGW
With __printf__, MinGW prefers the portable old ms-style printf, and
warns if formats like %lld and %hhd are used.

In practice, if __USE_MINGW_ANSI_STDIO is not defined, it defaults to 1
on C++11, and these formats are supported. Using __gnu_printf__
suppresses bad format warnings.
2021-03-31 02:09:45 +03:00
Orgad Shaneh
3dac89a267 BACKENDS: Sprinkle some overrides 2021-03-31 02:04:47 +03:00
Eugene Sandulenko
5dfb0c592c COMMON: Remove duplicate include 2021-03-22 00:07:45 +01:00
Eugene Sandulenko
7725f0ceed COMMON: Make WinResource::getVersionInfo more universal 2021-03-22 00:07:44 +01:00
Matthew Hoops
6b87aee941 COMMON: Ensure stddef.h is included in scummsys.h 2021-03-22 00:07:39 +01:00
Matthew Hoops
76f5c3d2f5 COMMON: Add a wrapper to read PE strings 2021-03-22 00:07:38 +01:00
Matthew Hoops
4d104c12e2 COMMON: Fix some memory leaks 2021-03-22 00:07:38 +01:00
Matthew Hoops
639a1e0120 COMMON: Add a function to read NE strings 2021-03-22 00:07:36 +01:00
Matthew Hoops
c3c188f4b6 COMMON: Add an NE version resource parser 2021-03-22 00:07:36 +01:00
Matthew Hoops
4cbcd29a94 COMMON: Fix out-of-bounds write in SZDD EXE decompression 2021-03-22 00:07:36 +01:00
Le Philousophe
db8559ff3e COMMON: Initialize _pbase_dir in all constructors
Fixes bug #12337
2021-03-20 21:04:06 +01:00
D G Turner
b8c4cd8129 COMMON: Use Correct Symbol in New String Function 2021-03-15 23:01:24 +00:00
Le Philousophe
75833aba29 COMMON: Don't use unavailable macros in unicode-bidi.h
Use Fribidi ones directly in implementation and tag the constructor as
"private"
Fix a warning on Common::CodePage
2021-03-15 16:29:28 +02:00
Orgad Shaneh
2aba99819a COMMON: Remove explicit ctors and copy assignment operator
They're equivalent to the implicit ones anyway.
2021-03-15 13:24:33 +00:00
Orgad Shaneh
2de08c0717 COMMON: Fix FriBidiParType failure on 3ds
/data/src/master/common/unicode-bidi.cpp: In member function 'void
Common::UnicodeBiDiText::initWithU32String(const Common::U32String&)':
/data/src/master/common/unicode-bidi.cpp:78:3: error: invalid conversion
from 'uint32*' {aka 'unsigned int*'} to 'FriBidiParType*' {aka 'long
unsigned int*'} [-fpermissive]
   78 |   &_pbase_dir,
      |   ^~~~~~~~~~~
      |   |
      |   uint32* {aka unsigned int*}
2021-03-14 22:18:15 +01:00
Zvika Haramaty
dc5783c910 COMMON: Add String::forEachLine and convertBiDiStringByLines
`convertBiDiStringByLines` calls the BiDi algo for each line in isolation,
and returns a joined result.
That's needed to support BiDi in AGI, and might be needed for other engines
in the future.

In order to do that, a new utility function was added:
`String::forEachLine` which gets a function as input, and its arg(s) (if it has any),
and calls the function on each line, and returns a new string which is all
concatenation of all the lines results (with '\n' added between them).
2021-03-14 18:52:36 +01:00
Martin Gerhardy
8b2e957914 COMMON: fixed clang-sanitizer warnings 2021-03-14 11:26:19 +01:00
Martin Gerhardy
5b9fa67445 COMMON: const for AchievementsManager::isAchieved 2021-03-14 11:26:19 +01:00
Martin Gerhardy
6121292934 COMMON: fixed formatting 2021-03-14 11:26:19 +01:00
D G Turner
11654c8fbf COMMON: Fix Compilation with pre-C++-11 Compilers 2021-03-13 19:44:17 +00:00
D G Turner
d91b87acbf COMMON: Fix GCC Warning for Implicit Copy Operator in Queue Class
This is emitted when -Wdeprecated-copy is enabled. The fix implemented
is to explicitly declare this to be the default copy operator.

Since this may be a latent bug, this is marked with a FIXME.
2021-03-13 12:34:19 +00:00
D G Turner
0d6e4d647a COMMON: Minor Formatting Fix in String Header 2021-03-12 19:50:49 +00:00