274 Commits

Author SHA1 Message Date
Le Philousophe
f94c56f100 TESTBED: Don't fail when pixel format couldn't be set
When pixel format isn't supported an assertion can be raised during
blitting. Don't draw anything instead.
2021-07-05 23:19:51 +03:00
sluicebox
8e1d90f8e4 ALL: Remove clearAllDebugChannels() from Engine dtors 2021-06-14 12:42:38 -05:00
lb_ii
53721953a2 TESTBED: Remove data string from AchivementsInfo 2021-06-10 01:56:23 +03:00
lb_ii
7926fba77a TESTBED: Add sample test run statistics 2021-06-01 02:20:53 +03:00
lb_ii
dda0cbec5f TESTBED: Use simple achievements API 2021-05-28 21:07:08 +03:00
ysj1173886760
32f66c21dd TESTBED: move debug channels to metaEngineDetection 2021-05-22 01:34:57 +02:00
lolbot-iichan
728e41e347
TESTBED: Fix STATIC_ASSERT expression compilation on gp2x-1 (#3021) 2021-05-21 03:29:41 +03:00
lolbot-iichan
fb7ef86cf3
TESTBED: Modify Pixel Format tests to display brightness and alpha gradients (#3019)
* TESTBED: Sort Pixel Formats before displaying them

* TESTBED: Display color gradients while testing Pixel Formats

* TESTBED: Display example patterns with CLUT8 pixel formats
2021-05-20 23:25:09 +03:00
Eugene Sandulenko
faefa38c66
TESTBED: Fix GUI for HiDPI 2021-05-14 20:01:09 +02:00
lolbot-iichan
2367dd8f98
TESTBED: Add another PixelFormat test (#3009)
* TESTBED: Add another PixelFormat test

I have noticed that Wintermute and FullPipe games are not working on PSP
port (and it looks like they never worked). This was caused by missing
ABGR8888@4 support on the backend, while some engines explicitly
requested this Pixel Format.

I have decided to add a test so that all the backends could be easily
checked for similar issues.

Surprisingly, "backends/graphics/null/null-graphics.h" holds up-to-date,
full and correct list of pixel formats requested by different engines.
There are lots of different Pixel Formats mentioned in different engines
code, but NullGraphicsManager lists all that are explicitly needed for
intGraphics(), not data reading, etc...

* TESTBED: Avoid using NullGraphicsManager at PixelFormat test

Avoid using NullGraphicsManager at PixelFormat test + other minor tweaks
2021-05-14 12:31:57 +03:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Cameron Cawley
78015cbd04 TESTBED: Centre the rectangle on screen in the overlay test
This fixes an assert in the DS port due to the rectangle being drawn out of bounds.
2021-02-04 01:59:14 +01:00
Cameron Cawley
4ced49acd4 ENGINES: Changed AdvancedMetaEngine::createInstance to return a Common::Error 2020-12-04 20:57:14 +00:00
Cameron Cawley
c877097b49 ALL: Remove use of "" in Common::U32String constructors 2020-11-16 16:56:58 +00:00
Vladimir Serbinenko
68a9136e4d
COMMON: Rewrite Encoder and drop dependency on iconv (#2586)
Different platforms have different levels of support of encodings and
often have slight variations. We already have tables for most encoding
with only CJK missing. Full transcoding inclusion allows us to get reliable
encoding results independently of platform. The biggest con is the need for
external tables encoding.dat.

It removes a duplicate table for korean in graphics/korfont.cpp
2020-11-15 16:20:35 +01:00
Eugene Sandulenko
7ff34bc9ec PLUGINS: MetaEngineStatic -> MetaEngineDetection 2020-10-11 23:14:39 +02:00
Eugene Sandulenko
7ea6781043 PLUGINS: PLUGIN_TYPE_METAENGINE -> PLUGIN_TYPE_ENGINE_DETECTION 2020-10-11 23:12:32 +02:00
Thierry Crozat
5c76050760 TESTBED: Add some more test for encoding conversion
The additional test cover the case were we convert UTF-16 or UTF-32
strings between different endianness.
2020-10-03 23:04:25 +01:00
aryanrawlani28
d26bbe521c ENGINES: ALL: Finish renaming ME & AME classes
- ME -> MetaEngineStatic (static parts)
- MEC -> MetaEngine (dynamic parts)
2020-10-03 14:56:36 +02:00
aryanrawlani28
29ceb07959 ENGINES: ALL: Revert detection submodule to be directly present in the engine directory
- DETECT_OBJS are present and added inside an engine's modules.mk file.
2020-10-03 14:56:36 +02:00
aryanrawlani28
8189a05316 ENGINES: ALL: Adapt to changes for new plugins by defining a new detection module
For each engine:
- Make a new folder detection
- Move detection-related files inside the folder
- Add a new module "enginename/detection"
- Add DETECT_OBJS here
- Adjust the normal engine module to remove detect_objs
- Adjust every file for the new changes.
2020-10-03 14:56:36 +02:00
aryanrawlani28
31b35628f2 TESTBED: Split detection features & adapt to new plugins. 2020-10-03 14:56:36 +02:00
Eugene Sandulenko
106b5af150 TESTBED: Remove obsolete comment 2020-09-12 12:03:20 +02:00
Henrik "Henke37" Andersson
ec1ebfa248 TESTBED: Test isConnectionLimited 2020-09-12 12:02:13 +02:00
aryanrawlani28
12e4f871a3 GUI: U32: Improve u32 in all engine subsystems
- Common: add wordWrap function to ustr.cpp
- Bladerunner: Explicitly state we have a U32String in subs (same as Subtitles::loadOuttakeSubsText)
- Don't use translations for engine specific "put strings", because they might not support.
- SCI: Use const references for showScummVMDialog
- SCUMM:
-- Don't use translation in md5 warning. left comments with the translated version.
-- Remove some redundant headers in help.cpp
-- Don't use translation in handleSaveload when printing to console
-- Also, display success transaction correctly via u32::format
- TESTBED: Use fake constructor when setting label of button
- SKY: Correctly use translation when using SaveStateDescription
- ULTIMA: Don't use translations when display_string
- ENGINES:
-- GenerateUnknownGameReport correctly, with proper translations.
-- There was an error, where a function had been declared twice, in a header file. Correct this.
2020-08-30 14:43:41 +02:00
aryanrawlani28
4b6976c558 GUI: U32: Reduce number of files changed and fixes
Up until last commit, everything was working fine but the amount of files changed was too large. This commit tries to reduce the changes.

- Add a fake constructor to Keymap, text-to-speech, setDescription (save-state)
- Redirecting functions for PopUpWidget::appendEntry, ButtonWidget::setLabel, GUIErrorMessage
- Use the above functions and constructors to reduce changes in Engines
- Fix warnings being in unicode. Only output english text in - Warnings, Errors, etc.
- Mark some strings as "translation" strings. (Not yet added to POTFILES)
- Remove some CP related things from po/modules.mk
- Previously used some Common::convertToU32 where it was not necessary, replace this with u32constructor
2020-08-30 14:43:41 +02:00
aryanrawlani28
a9bfe35216 GUI: U32: More issue fixes and general improvements
- Use the fake constructor for message dialog less often
- solve errors regarding comparision between string and u32string in midi
- solve errors in testbed/speech related to ttsMan->say
- fix unsigned comparision warning in tab.cpp
- fix issue with static strings and translations in sdl-graphics
2020-08-30 14:43:41 +02:00
aryanrawlani28
ef7ec444d3 GUI: U32: Enable u32 for tts (Windows)
They always take in U32 strings now.

- Revert tts descriptions to string, they don't use translations, so better to keep it as strings.
- Make read() take in const U32 references.
2020-08-30 14:43:41 +02:00
aryanrawlani28
d4d5b8906e GUI: U32: Begin making TTS take in U32Strings for saying
Only for strings without an explicit action. The first level takes in a u32 string, encodes it, and passes it along further with the default action

- For gui widgets, the strings are passed in as native u32 strings.
- For everything else, they are being converted to u32 by Common::convertToU32... and then being passed along
2020-08-30 14:43:41 +02:00
aryanrawlani28
bed05ea134 GUI: U32: Fix compilation errors across entire project
After the initial changes just to scummvm/gui for u32, this commit includes the whole project

- Widget creations now always have u32 descriptions, labels, or tooltips
- Message dialogs make use of default arguments instead of providing the same argument explicitly
- encode String::format properly before passing on as argument where necessary
- Modify hugo utils (yesNoBox and notify box) to use u32
- Also provide fake constructors for the above which redirect to the u32 constructor
- Convert all keymap descriptions to u32 across all engines
- showConfirmationDialog in mohawk now uses u32
- showScummVMDialog also uses u32
- Scumm engine has dialogs now which use u32
- General fixes and wrapping convertToU32String for setLabels and related functions
- Add a fake constructor to MesssageDialog which redirects to the u32 constructor
2020-08-30 14:43:41 +02:00
Eugene Sandulenko
cf4043e5c8 TESTBED: Plug memory leak 2020-08-24 10:29:20 +02:00
Eugene Sandulenko
d35a2aa96e TESTBED: Added simple movie player. Plays QT movies only so far
Invoke with --start-movie flag
2020-08-23 19:46:58 +02:00
Cameron Cawley
cf068bcc08 ALL: Remove direct use of OSystem::createMutex() 2020-08-21 09:39:00 +02:00
Thierry Crozat
6c2aaba04f TESTBED: Add test for stopping speech and immediately starting another 2020-06-21 19:09:49 +01:00
Thierry Crozat
4b774d71ac TESTBED: Use the default voice for the TTS tests 2020-06-21 16:31:15 +01:00
D G Turner
e8f8e9bdf1 TESTBED: Remove use of final as a variable name 2020-06-18 21:04:45 +01:00
lolbot-iichan
24c34a1fe8 TESTBED: Give achievements for completed testsuites 2020-06-13 16:29:17 +02:00
lolbot-iichan
2df0675fbf TESTBED: Fix return-to-launcher SIGSEGV bug 2020-06-13 16:29:17 +02:00
lolbot-iichan
3f10dbeac6 TESTBED: Move code with side-effects away from testsuite constructor 2020-06-13 16:29:17 +02:00
lolbot-iichan
3bfd87d88a TESTBED: Create testsuite list at separate static method 2020-06-13 16:29:17 +02:00
mataniko
cc7b06d47a JANITORIAL: Update RTL references in themes and menus 2020-05-12 10:36:38 +02:00
mataniko
2f5eb14d4b JANITORIAL: Rename additional RTL references and comments 2020-05-12 10:36:38 +02:00
mataniko
581a6ec7d6 JANITORIAL: Rename kSupportsRTL to kSupportsReturnToLauncher 2020-05-12 10:36:38 +02:00
mataniko
06242a712b JANITORIAL: Rename EVENT_RTL
Now that ScummVM is adding RTL support, the EVENT_RTL should be disambigious that it is for returning to launcher
2020-05-12 10:36:38 +02:00
Cameron Cawley
1605b72ee8 BACKENDS: Add events for additional mouse buttons 2020-02-26 21:34:24 +01:00
Henrik "Henke37" Andersson
fcb2442875 TESTBED: Set the NOLAUNCHLOAD GUI option 2020-02-11 22:35:06 +01:00
Bastien Bouclet
1ef3e3fe3e TESTBED: Add override keywords 2020-02-09 12:43:16 +01:00
Henrik "Henke37" Andersson
ae38c5421a TESTBED: Provide correct engine feature implementation data 2020-02-07 01:01:51 +02:00
Eugene Sandulenko
cfde7683e7 TESTBED: Added override keywords 2020-02-06 23:46:47 +01:00
Paul Gilbert
5b80320525 ENGINES: Adding override keyword to hasFeature methods 2020-02-04 20:04:11 -08:00