Commit Graph
166 Commits
Author SHA1 Message Date
Eugene Sandulenko 5eac0c0324 PEGASUS: Get rid of g_engine type cast 2022-09-28 11:30:00 +02:00
Thunderforge fd129ebc0c JANITORIAL: "Mac OS X" and "OS X" to "macOS" in comments
Apple's desktop operating system was formerly called "Mac OS X" and "OS X", but since 2016 it has been called "macOS" (starting with version 10.12).

Changing across all comments and documentation to use this current terminology, except in cases where the historical versions are explicitly referenced. No code changes are made; we should consider changing those in future PRs.
2022-01-29 14:15:05 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh 3bc29bd60f PEGASUS: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Orgad Shaneh 78ef6203de ENGINES: Fix getSavegameFile for almost all engines
Use kSimpleSavesNames correctly, add where needed, remove where needed.

Trac #12977
2021-11-10 21:49:48 +00:00
Cameron Cawley 9fea5ff073 PEGASUS: Handle custom engine actions in showTempScreen() 2021-04-19 03:13:11 +03:00
Cameron Cawley 4e33d6ad2b PEGASUS: Handle mouse wheel events using the keymapper 2021-04-19 03:13:11 +03:00
Cameron Cawley da960cd939 GUI: Add EE to the GUI keymap 2021-04-18 15:28:51 +02:00
adaf5bb3b9 PEGASUS: Import the DVD version patch from GOG.com
Co-Authored-By: Keith Kaisershot <keithkaisershot@gmail.com>
Co-Authored-By: Matthew Hoops <clone2727@gmail.com>
Co-Authored-By: Bastien Bouclet <bastien.bouclet@gmail.com>
2021-03-17 17:32:53 +01: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 e22b32abfe GUI: U32: Use Common::U32String::format where necessary and GUIError to u32
- Where necessary as in, where translated messages are used.
- GUIErrorMessage now takes in U32String
- error messages across some engines use U32Strings. they are changed because they show a message dialog.
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
Henrik "Henke37" Andersson c970106234 PEGASUS: Use PauseToken 2020-05-10 23:39:31 +02:00
Henrik "Henke37" Andersson 59702fae9b PEGASUS: Use PauseToken 2020-05-10 23:39:31 +02:00
Paul Gilbert a00e44ba6c ENGINES: Merge saveGameState virtual methods into a single one 2020-02-16 15:44:28 -08:00
Bastien Bouclet 06e6176285 PEGASUS: Remove the debugger keymapper action
Opening the debugger is now in the global keymap.
2020-02-16 15:35:31 +01:00
Paul Gilbert 118e024bdd PEGASUS: Refactor to use Engine debugger 2020-02-16 13:07:19 +02:00
Bastien Bouclet 7ecccd3b30 MOHAWK: RIVEN: Add default joystick action mappings 2020-01-29 08:51:29 +01:00
Bastien Bouclet 519b4a57e2 KEYMAPPER: Allow engines to return multiple keymaps
The idea is that keymaps may be situational. A keymap may be always
enabled, while another one may be enabled only during combat..
2020-01-29 08:51:29 +01:00
Bastien Bouclet 426867f4bc KEYMAPPER: Give human readable descriptions to the keymaps 2020-01-29 08:51:29 +01:00
Bastien Bouclet 376a77e735 PEGASUS: Add default joystick action bindings 2020-01-29 08:51:29 +01:00
Bastien Bouclet 85f476070b PEGASUS: Use custom engine actions for key input 2020-01-29 08:51:29 +01:00
Bastien Bouclet 14663c4790 KEYMAPPER: Make the keymapper mandatory 2020-01-29 08:51:29 +01:00
Bastien Bouclet ee8229dc00 ENGINES: Move keymap initialization to MetaEngine
To be able to access the keymap while the engine is not running.
2020-01-26 23:09:08 +02:00
Bastien Bouclet 19de568e24 KEYMAPPER: Untangle the dependencies between Action and Keymap 2020-01-26 23:09:08 +02:00
Bastien Bouclet d60190b12e ENGINES: Define default bindings for the existing engine keymaps 2020-01-26 19:07:53 +01:00
Bastien Bouclet 9c0bc2b633 KEYMAPPER: Simplify the way keymaps are enabled and disabled 2020-01-26 19:07:53 +01:00
Bastien Bouclet ac44469558 KEYMAPPER: Remove the domain class 2020-01-26 19:07:53 +01:00
Bastien Bouclet e197a75829 KEYMAPPER: Action can generate only a single event 2020-01-26 19:07:53 +01:00
D G Turner b7c397412d PEGASUS: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-01 21:41:21 +00:00
Bastien Bouclet bb813719b5 ENGINES: Change targets to have an 'engine ID'
The engine ID identifies which engine should be used to launch the target.
Also remove the 'single ID' system. Different games from engines that used
that system now have different game IDs.

Also-By: Matthew Hoops <clone2727@gmail.com>
2019-11-03 11:43:00 +01:00
Cameron Cawley cf107e7f90 PEGASUS: Implement joystick support 2019-07-08 01:24:55 +03:00
Colin Snover d087c9605f BASE: Remove bad casts between incompatible Plugin types
Previously, a C-style cast was used to convert a
Common::Array<Plugin *>, populated with pointers to StaticPlugin
and DynamicPlugin instances, to a
Common::Array<PluginSubclass<T> *>, but PluginSubclass<T> is a
*sibling* class to StaticPlugin/DynamicPlugin, so this cast was
invalid and the results undefined. The methods for retrieving
subclasses of plugins can't be easily changed to just generate an
array of temporary wrapper objects that expose an identical API
which dereferences to the preferred PluginObject subclass because
pointers to these objects are retained by other parts of ScummVM,
so the wrappers would needed to be persisted or they would need to
just re-expose the underlying Plugin object again. This indicated
that a way to solve this problem is to have the callers receive
Plugin objects and get the PluginObject from the Plugin by
explicitly stating their desired type, in a similar manner to
std::get(std::variant), so that the pattern used by this patch to
solve the problem.

Closes gh-1051.
2017-12-03 20:26:38 -06:00
Bastien Bouclet 1519b2befc PEGASUS: Free the interface data when destroying the engine
Fixes loading a game from the launcher after returning to the launcher.
2017-09-12 20:25:24 +02:00
Bastien Bouclet 6506b95fce PEGASUS: Call OSystem::updateScreen on each frame
Fixes the display of OSD information when toggling fullscreen.
2017-09-12 20:25:24 +02:00
Ben Castricum e95c2cc3ff ALL: save file => saved game 2016-11-29 21:10:59 +01:00
Ben Castricum 6f38c1e55d ALL: game state => saved game 2016-11-29 20:15:20 +01:00
Eugene Sandulenko fab199d37e JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
Filippos Karapetis 26588f81b4 PEGASUS: Remove trailing whitespace 2014-10-28 16:17:44 +02:00
Ben Castricum 4cd06dcab7 PEGASUS: Don't try to translate "???" 2014-08-16 12:45:02 +01:00
Keith Kaisershot cfcd3fd780 PEGASUS: Set volume in more places 2014-04-27 21:12:34 -04:00
Matthew Hoops 7011e8122e PEGASUS: Poll for events in more places
Based on a patch by Keith Kaisershot (blitter)
2014-04-23 20:33:08 -04:00
Matthew Hoops 444c6bd24a PEGASUS: Reset item state upon starting a new game 2014-04-17 19:29:06 -04:00
Matthew Hoops fb658c3969 PEGASUS: Fix showing save failed dialog when not using the GMM 2014-04-13 09:27:13 -04:00
Matthew Hoops d04667e58a PEGASUS: Fix being able to use the inventory from the pause screen
Somehow, I completely missed implementing this function!
2014-02-26 21:57:38 -05:00
Matthew Hoops 0593f434af PEGASUS: Force the inventory drawers closed when loading a game 2014-02-23 14:50:02 -05:00
Matthew Hoops 6477525db0 PEGASUS: Fix regression with Prehistoric AI rules ordering 2013-12-14 11:18:32 -05:00
Johannes Schickel aca802bd70 PEGASUS: Take advantage of Surface::getPixels. 2013-08-03 04:02:52 +02:00
Johannes Schickel e59995b0b2 PEGASUS: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:33 +02:00
Matthew Hoops 8fb73dd2c3 PEGASUS: Clean up DVD demo Theora playback 2013-04-16 21:53:34 -04:00