Commit Graph

290 Commits

Author SHA1 Message Date
Cameron Cawley
28d7b361ea COMMON: Move more file format code into common/formats 2022-12-11 22:33:23 +01:00
Eugene Sandulenko
8f8d522913
COMMON: Move achievements.* to engines/ 2022-12-02 00:12:22 +01:00
Donovan Watteau
5a62dc4c37 TESTBED: Use MSVC_PRINTF when GCC_PRINTF is used 2022-11-29 01:37:16 +01:00
Roland van Laar
12fea682de TESTBED: fix leak: clear up surface inside conv
frame->convertTo creates a new surface. Free it after use and delete the
pointer to it.t
2022-09-28 23:27:02 +02:00
Roland van Laar
2194986f1b TESTBED: fix decoding second frame
A segfault happened on decoding the second frame because
frame was deleted when it is expected to exist.
2022-09-28 23:17:54 +02:00
Eugene Sandulenko
8f3834e3a4
TESTBED: Dither videos 2022-09-28 22:38:08 +02:00
Roland van Laar
a149939144 TESTBED: Prepare video for QTVR tests 2022-09-28 16:14:36 +02:00
Cameron Cawley
f3b094e53f ENGINES: Change the MetaEngineDetection interface to match MetaEngine 2022-07-23 23:31:58 +02:00
Christian Kündig
e070781618 TESTBED: Don't write to disk if WriteStream can't be created (e.g. read-only filesystem or permission issue) 2022-06-12 14:34:13 +02:00
Orgad Shaneh
b2322a8c4f JANITORIAL: Add some long casts to match %ld format
Needed on Win64 compilation.
2022-06-12 10:24:34 +02:00
Eugene Sandulenko
829c600a02
GUI: Remove remains of the old color lists in *ListWidget 2022-05-29 00:39:35 +02:00
athrxx
ee336d348b TTS: (Testbed) - implement tts enable option 2022-04-26 21:08:41 +03:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Eugene Sandulenko
4e7723f77d
TESTBED: Added test for MOD playback. Added XM and IT files from SLUDGE's "Out Of Order" 2021-11-11 12:26:08 +01:00
Orgad Shaneh
3919f53326 ENGINES: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
Orgad Shaneh
1c5c366649 GUI: Swap OK/Alt values in MessageDialog
A follow-up commit adds support for multiple alternatives, so OK has to
come first.
2021-08-18 22:34:02 +02:00
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