Commit graph

544 commits

Author SHA1 Message Date
Filippos Karapetis
85f33669e4 PRINCE: Use C++ 11 range-based for loops 2025-03-27 13:47:57 +08:00
Le Philousophe
3761db3830 PRINCE: Don't use deprecated primitives 2025-01-24 12:11:17 +01:00
Eugene Sandulenko
879eba5c32
CONFIGURE: Replace mt32emu component with 'midi'
This component disables all MIDI-related things when unused,
including MT-32 emulator, Fluidsynth, TiMidity and Sonivox
2024-12-26 22:54:56 +01:00
D G Turner
1f01b10618 PRINCE: Fix Debug Channel Behaviour And Spurious Warning Messages
This was previously causing "No debug channels were added, list is empty!"
warning messages to be emitted as the enum values implicitly start at zero
unless defined and the debug channel code uses zero as the end of structure
termination marker.
2024-12-25 15:14:54 +00:00
Eugene Sandulenko
d780708c96 ENGINES: Add mt32emu as a feature and component
Add it to engines that have MIDI playback.

This essentially compiles the emulator only when an engine that
can potentially use it (e.g. MIDI) is enabled
2024-12-25 00:34:39 +01:00
Eugene Sandulenko
fdecb6afca ENGINES: Add components to configure.engine's explanatory comment 2024-12-25 00:34:39 +01:00
sluicebox
4200d6575c ALL: Return result from MetaEngine::removeSaveState 2024-10-18 09:41:03 +03:00
Donovan Watteau
eae4bfa4b3 PRINCE: Fix -Wunused-but-set-variable warning 2024-08-17 09:24:54 +03:00
Cameron Cawley
441b02d057 DETECTION: Use uint32 for ADGameFileDescription file size 2024-06-30 19:13:41 +02:00
Le Philousophe
7e0048b4a3 ENGINES: Add ADDynamicGameDescription class
This class manages a buffer where all data usually stored in detection
plugin will get copied before unloading the plugin and starting the
game.

This class expects that two functions are present in every
GameDescription: sizeBuffer which calculates how many bytes we will need
to store the entry in RAM and toBuffer which copies the data in the
buffer and fix the pointers in the class.
At the end, it is expected that an ADDynamicGameDescription doesn't
depend anymore on data stored in the detection plugin.

The AD_GAME_DESCRIPTION_HELPERS macro allow to implement these functions
in all GameDescription which don't have any pointer except those in
ADGameDescription.
2024-06-30 18:39:06 +02:00
Le Philousophe
b61bd3ff85 ENGINES: Create a type aware advanced meta engine 2024-06-30 18:39:06 +02:00
Le Philousophe
90b886097f ENGINES: Create a type aware advanced detector 2024-06-30 18:39:06 +02:00
sluicebox
a74857e957 PRINCE: Remove delete nullptr. PVS-Studio V575 2024-03-20 17:31:03 -07:00
Matthew Jimenez
5219c99400 GRAPHICS: Move PaletteManager definition to a separate header 2024-03-12 12:24:00 +02:00
Cameron Cawley
30b977c272 DETECTION: Mark more symbols as const 2023-12-26 20:23:59 +01:00
Le Philousophe
d7526ad280 PRINCE: Migrate engine to Path 2023-12-24 13:19:25 +01:00
Eugene Sandulenko
ec2dd2726b ENGINES: Added optional parameter to canSave/LoadGameStateCurrently() for indicating the reason 2023-12-08 12:21:16 +01:00
elasota
b8acbe6bee COMMON: Archive path refactoring, add getFileName and getPathInArchive that unambiguously return the filename or the full path 2023-07-19 18:51:37 +02:00
Donovan Watteau
18ab6803d6 JANITORIAL: Fix various "an" typos in comments 2023-03-16 14:47:28 +01:00
Hubert Maier
b0bbab3fa4
PRINCE: Correct spelling mistake
adress -> address
2022-10-27 15:56:14 +02:00
Cameron Cawley
f3b094e53f ENGINES: Change the MetaEngineDetection interface to match MetaEngine 2022-07-23 23:31:58 +02:00
Eugene Sandulenko
5e05f93f36
ALL: Remove Symbian port 2022-05-28 12:32:29 +02:00
Donovan Watteau
02da6e28b4 PRINCE: Fix reading translation texts on big-endian systems 2022-05-10 16:25:53 +03:00
Eugene Sandulenko
f5b9c2ef40
PRINCE: Remove leftover include 2022-04-06 01:02:11 +02:00
Eugene Sandulenko
4c1d2153a3
PRINCE: Add Spanish translation support. PR #3721
After clearing up the miscommunication, the Spanish support is there.
2022-03-24 14:45:42 +01:00
Eugene Sandulenko
0577986bb6
PRINCE: Blacklist Spanish translation by Pakolmo as he denied us from using his translation. PR#3721 2022-03-22 22:08:55 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Eugene Sandulenko
208b2024d8
PRINCE: FIx clang warning 2021-12-01 00:08:52 +01:00
Orgad Shaneh
5733e3de1c PRINCE: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Torbjörn Andersson
430a980820 PRINCE: Remove debug code I accidentally committed
See 0f152344e1 (NEWS: Mention Inherit the Earth looping music fix,
2021-11-10)
2021-11-11 09:42:22 +01:00
Torbjörn Andersson
0f152344e1 NEWS: Mention Inherit the Earth looping music fix 2021-11-10 20:51:43 +01:00
Orgad Shaneh
fe104cc337 ENGINES: Use MetaEngine consistently for getting autosave slot
The autosave refactoring that was done in
7adad5aaf5 used g_engine for identifying the
autosave slot. This worked for in-game save/load, but doesn't fit when
called from the launcher.

Fix by passing MetaEngine to SaveStateDescriptor ctor and using it for this
query.

Amends 7adad5aaf5.
2021-10-24 16:46:06 +02:00
Thierry Crozat
c168c85db5 PRINCE: Fix out of bound access when examining objects
The bug was introduced in commit 9a09449e8 and was causing random
crashes.
2021-08-21 23:36:50 +01:00
aviloria
9a09449e88
PRINCE: Fix display of multiple phrases (#3298)
When examining an object, if the description has multiple phrases, only the first one was displayed on the screen (but speech audio continues).
Thant's because multiple phrases are encoded in the same string using '\0' separator, so strcpy/strncpy should be avoided.
2021-08-21 22:29:11 +03:00
aviloria
4329f965cc
PRINCE: Add initial support for Spanish translation (#3248) 2021-08-08 22:18:49 +03:00
djsrv
7eb4841065 ALL: Use Path type in Archive functions 2021-08-07 10:44:37 +02:00
Max Horn
2f1f8f502e DEVTOOLS: move credits from devtools/credits.pl to engines
This employs a "lazy" approach: the "format" for the credits stays
exactly as it was, i.e., perl code. Of course one may want to change
this to another format (e.g. YAML, JSON, XML; or also shell script or
AWK, like `configure.engine` uses). But I deliberately kept it simple,
to get a minimal change that is easy to verify. Any further changes to
e.g. the format can be layered atop this.
2021-08-05 00:01:46 +02:00
Paul Gilbert
005561d305 COMMON: Increase Stream pos, seek, size from int32 to int64 2021-07-08 18:24:28 -07:00
Paul Gilbert
0136043f09 COMMON: Revert Change Rect and Point to have int32 fields
This reverts commit 1c3e7fb4e9.
2021-07-06 20:35:42 -07:00
Paul Gilbert
baccbedf50 GRAPHICS: Changed surface classes sizes from uint16 to int16 2021-07-04 18:24:27 -07:00
Paul Gilbert
1c3e7fb4e9 COMMON: Change Rect and Point to have int32 fields 2021-07-04 18:24:26 -07:00
sluicebox
8e1d90f8e4 ALL: Remove clearAllDebugChannels() from Engine dtors 2021-06-14 12:42:38 -05:00
SupSuper
024eb036fe PRINCE: Copy audio streams 2021-05-22 23:50:42 +01:00
ysj1173886760
9d0818015e PRINCE: move debug channels to metaEngineDetection 2021-05-22 01:34:57 +02:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
D G Turner
cf3d419119 PRINCE: Fix Memset on Non-Trivial Structure GCC Compiler Warnings 2021-03-22 03:25:22 +00:00
Cameron Cawley
4ced49acd4 ENGINES: Changed AdvancedMetaEngine::createInstance to return a Common::Error 2020-12-04 20:57:14 +00:00
Eugene Sandulenko
31066e7ecb PRINCE: Use AD_ENTRY2s in the detection table 2020-11-28 17:41:23 +01:00
Denis Telyukh
ae9a76d527 PRINCE: support amateur Russian localization from "Russian project" 2020-10-29 19:23:49 +01:00
Денис Телюх
b2f11dd8ba PRINCE: correct Russian translation for "walk to" action 2020-10-29 19:23:49 +01:00