Commit Graph
129 Commits
Author SHA1 Message Date
Le Philousophe 6cfc214d5b BBVS: 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
sluicebox 1c89c286fe BBVS: Fix memory leak. PVS-Studio V773 2023-12-05 09:24:31 -08:00
Eugene Sandulenko 8c9bf72f50 BBVS: Do not switch to 16-bit screen before video is opened. Bug #14615
On some, apparently "ripped off" versions of the game, where they
removed all videos, we are switching to 16-bit video too early.

This leads to a state when we switched to true color and attempt to set
up a palette which triggers an assert.

Noticed on Android devices. So, switching the screen initalization
around, so we do not request 16-bits mode too early.
2023-11-27 14:51:02 -08:00
sluicebox cb2d47e3df BBVS: Disable ScummVM autosave
This engine automatically saves to slot zero on every room change.

Enabling ScummVM autosave caused the game to be frequently interrupted
with message boxes prompting how to handle the conflict.
2023-11-27 14:31:51 -08:00
sluicebox d6acb1a143 BBVS: Remove redundant assignment. PVS-Studio V517 2023-10-31 14:20:29 -07:00
Torbjörn Andersson 43c887f9ae BBVS: Make main menu background transparent
The buttons still look nothing like their Windows counterparts, but at
least they blend in a bit better this way. I've tried it with several
different themes, and I thought it looked ok.
2023-07-23 17:51:53 +02:00
Eugene Sandulenko c32d884b74 BBVS: Added POTFILES. The file is not translatable but makes automated checks simpler 2023-03-17 15:33:39 +01:00
Cameron Cawley ebd0d0956b BBVS: Fix memory leak in audio code 2022-11-17 01:00:56 +02:00
Thunderforge 604c6f522d ENGINES: Correcting capitalization of bbvs full name
"Beavis and Butt-head in Virtual Stupidity" -> "Beavis and Butt-Head in Virtual Stupidity"

This matches how it [appears on Wikipedia](https://en.wikipedia.org/wiki/Beavis_and_Butt-Head_in_Virtual_Stupidity) as well as how it's capitalized in [the show itself](https://en.wikipedia.org/wiki/Beavis_and_Butt-Head).
2022-10-16 09:47:39 +03:00
Cameron Cawley f3b094e53f ENGINES: Change the MetaEngineDetection interface to match MetaEngine 2022-07-23 23:31:58 +02:00
Torbjörn Andersson 2fd9c511d9 BBVS: Don't draw "blank" objects (bug #13235)
This fixes a crash when the Hock-A-Loogie minigame ends, when
buildDrawList3() would previously try to draw every object, even ones
where 'anim' was null which caused it to crash.

I don't know if this fix is exactly what the original did, but it seems
to match the original behavior when I've tried it in Wine. I've tried
both the standalone minigame, and the minigame as it appears in the full
game.
2022-02-01 07:33:06 +01:00
Torbjörn Andersson 0d3206f2d9 BBVS: Fix main menu button sizes
Don't scale the button sizes by the GUI scale factor, because they're
specifically designed to fit the game window. The GUI scale factor still
affects the text size within the buttons, which may or may not be a
feature. I don't know how to change that, and they look nothing like the
original buttons anyway.
2022-01-31 11:30:32 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Filippos Karapetis 29bccc4ab4 BBVS: Fix sprites for the alt demo - bug #13070. Some cleanup 2021-11-28 04:40:16 +02:00
Orgad Shaneh bb4f811b12 BBVS: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Hubert Maier ac49954b07 BBVS: Add another Loogie demo variant 2021-11-12 00:17:35 +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
Orgad Shaneh 7adad5aaf5 ENGINES: Streamline auto-save write/delete protection
Some engines call setAutosave and some don't. isAutosave is used to
determine if a saved game is an autosave, but in fact, on most cases it
just falls back to comparing the name to "Autosave".

This is wrong for several reasons:
* Older versions of ScummVM used Autosave 0.
* The name "Autosave" is translated, so if you change the language, it
  won't be detected.

Instead of relying on the name, use the well-known getAutosaveSlot() from
Engine/MetaEngine.

Fixes #12735.
2021-08-23 13:34:35 +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
Cameron Cawley 1e54610169 BBVS: Fix hang when starting the Loogie minigame on the DS 2021-06-19 14:32:10 +02:00
Eugene Sandulenko 5e7fe2dc57 JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
D G Turner 312770c972 BBVS: Fix Memset on Non-Trivial Structure GCC Compiler Warnings 2021-03-21 22:35:12 +00: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 bc52f01a9a BBVS: Fix Russian buttons (#2626)
Russian text is in ISO8859-5. When GUI was converted to UTF-32 thos spot
was missed and ended up being interpreted as Latin1. Then iconv rewrite
changed to UTF-8. Change them to UTF-8 and mark as UTF-8 explicitly.
Fix spelling mistake while on it
2020-11-16 14:01:10 +01:00
Vladimir Serbinenko b0e5ca855d BBVS: Fix misdetection of Russian version as demo (#2625)
GF_GUILANGSWITCH and GF_LOOGIE_DEMO have the same value and hence the code
treats Russian version as loogie demo and crashes as bbloogie.000 is in
an unexpected directory for the demo
2020-11-16 14:00:46 +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
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 973526a4d3 BBVS: Fix compilation 2020-10-03 14:56:36 +02:00
aryanrawlani28 a56dc094b9 ENGINES: ALL: Move detection_enums -> detection.h
- Cleans up headers quite a bit.
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 f3b9477893 ENGINES: ALL: Add header guards for the new detection-header files. 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 c4ba47a65d BBVS: Split detection features & adapt to new plugins. 2020-10-03 14:56:36 +02:00
aryanrawlani28 840f08d537 GUI: U32: Code cleanup & misc fixes
- Fix a translation for scumm subtitle settings dialogs.
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 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 886e3544e3 BBVS: Support for the Loogie demo 2020-08-24 23:52:38 +02:00
Eugene Sandulenko bb816a6d3c BBVS: Properly marked demo as demo, drop platform in the detection entries 2020-08-24 22:57:07 +02:00
Cameron Cawley fd55d27f6d BBVS: Add support for the demo version 2020-08-23 22:18:30 +02:00
mataniko 581a6ec7d6 JANITORIAL: Rename kSupportsRTL to kSupportsReturnToLauncher 2020-05-12 10:36:38 +02:00
Paul Gilbert 9f175c4053 ENGINES: Cleanup of savegame filenames generation
This removes filename methods when it matched the Engine method.
Secondly, ensuring there was an overriden getSaveStateName method
for engines that didn't do the standard target.00x save filenames
2020-02-16 15:44:28 -08:00
Paul Gilbert a00e44ba6c ENGINES: Merge saveGameState virtual methods into a single one 2020-02-16 15:44:28 -08:00
Bastien Bouclet 8df458f869 BBVS: Add override keywords 2020-02-09 12:43:14 +01:00
Eugene Sandulenko 79e13ed85f BBVS: Added override keywords 2020-02-05 14:48:10 +01:00
Paul Gilbert 5b80320525 ENGINES: Adding override keyword to hasFeature methods 2020-02-04 20:04:11 -08:00
Cameron Cawley 46056aba3c ENGINES: Reduce winexe_*.h header includes 2020-01-11 17:34:12 +02:00
Bastien Bouclet 9c8bd056d6 ENGINES: Stop using 'single id' 2019-11-03 11:43:00 +01:00