Commit Graph
52 Commits
Author SHA1 Message Date
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh 0111a08560 GLK: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Vladimir Serbinenko 29cfa7bb0f COMMON: Merge code for str.cpp and ustr.cpp
Most of the code in str.cpp and ustr.cpp is actually the same. Do some
template magic to merge them.
2020-10-31 14:05:30 +01:00
aryanrawlani28 d2da98d3b0 GLK: More usage of translations
- Add helpers in Advsys, Comprehend & ZCode to match functionality provided for strings.
2020-08-30 14:43:41 +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 185fb72783 GUI: U32: Improve U32 code
- Revert accidentally put translations in mt32.cpp
- Use U32::format in some places earlier missed
- Add %u and %i for u32::format
- Add support for GUIErrorMsgFormat to use u32::format internally
- Use the above whereever needed
- Improve linux tts by removing redundant code
- Some places I had changed nullptr -> "". Revert this
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
Bastien Bouclet 1e30923737 GLK: Add override keywords 2020-02-09 12:43:15 +01:00
Paul Gilbert 9ab74a0456 GLK: ADVSYS: Cleanup 2019-11-17 14:06:14 -08:00
Paul Gilbert bb9b52f9c6 GLK: ADVSYS: Change detections list to use common GlkDetectionEntry 2019-07-14 10:47:52 -07:00
Paul Gilbert 5dda48c1c7 GLK: Change other sub-engines to use GlkDetectedGame 2019-07-06 15:27:10 -07:00
Paul Gilbert a53e00597b GLK: Show unknown variant dialog for unknown detection entries 2019-06-23 14:41:49 -07:00
Paul Gilbert 448bf3f4fb GLK: ADVSYS: Fix Coverity warnings 2019-06-16 19:44:55 -07:00
Paul Gilbert 66babe212e GLK: ADVSYS: Fix restoring games in-game 2019-06-16 18:56:39 -07:00
Paul Gilbert fee7221810 GLK: ADVSYS: Fix inputs with indirect objects 2019-06-16 17:43:07 -07:00
Paul Gilbert 0bf2dc6d7b GLK: ADVSYS: Fix actions using OP_SEND 2019-06-16 17:04:53 -07:00
Paul Gilbert c7a9306415 GLK: ADVSYS: Fixes for get action 2019-06-16 16:03:58 -07:00
Paul Gilbert a9261a6d31 GLK: ADVSYS: Do a look action after loading a savegame from launcher 2019-06-16 14:59:26 -07:00
Paul Gilbert 611bea7d73 GLK: ADVSYS: Fix savegame area setup 2019-06-16 14:59:26 -07:00
Paul Gilbert 919670a565 GLK: ADVSYS: Save/load fixes 2019-06-16 14:59:26 -07:00
Paul Gilbert 553bb74f8c GLK: Further changeover of sub-engines to use new savegame code 2019-06-16 14:59:26 -07:00
Paul Gilbert 1b6ac1a67c GLK: ADVSYS: Fix variable range checks 2019-06-15 22:31:50 -07:00
Paul Gilbert acc90002f6 GLK: ADVSYS: Added code for loading savegames from launcher 2019-06-15 22:31:50 -07:00
Paul Gilbert f9f1293de6 GLK: ADVSYS: Input line processing fixes 2019-06-15 13:35:58 -07:00
Paul Gilbert f7e389db3b GLK: ADVSYS: Fix parsing input words 2019-06-14 21:40:07 -07:00
Paul Gilbert 5f7955daa5 GLK: ADVSYS: Tweak debug line, added input line prompt character 2019-06-14 20:22:34 -07:00
Paul Gilbert 75fe5b5024 GLK: ADVSYS: Script interpreter fixes 2019-06-14 20:11:47 -07:00
Paul Gilbert c151020675 GLK: ADVSYS: Fix data reads from gamefile 2019-06-13 20:45:53 -07:00
Paul Gilbert 4f7c9899f2 GLK: ADVSYS: Initialization fixes 2019-06-13 20:45:53 -07:00
Paul Gilbert 8759a9e851 GLK: ADVSYS: Added readLine method 2019-06-13 20:45:53 -07:00
Paul Gilbert 06ffbab3c5 GLK: ADVSYS: Added singleAction method 2019-06-12 22:26:06 -07:00
Paul Gilbert 8612697409 GLK: ADVSYS: Remainder of parseInput method 2019-06-12 22:15:58 -07:00
Paul Gilbert 0e543b0682 GLK: ADVSYS: Noun/adjectives setup and getNoun method 2019-06-12 21:45:54 -07:00
Paul Gilbert 9efb6d71e2 GLK: ADVSYS: In progress implementing input line parser 2019-06-12 21:30:41 -07:00
Paul Gilbert 4e74751e7e GLK: ADVSYS: Added input line split up and tokenizing 2019-06-12 21:30:41 -07:00
Paul Gilbert 9c0771552d GLK: ADVSYS: Remaining opcode implementations 2019-06-12 21:30:41 -07:00
Paul Gilbert ebdc4ec3fa GLK: ADVSYS: Created dedicated function pointer class, cleanup method opcodes 2019-06-10 19:08:58 -07:00
Paul Gilbert 1de8c3d730 GLK: ADVSYS: More opcodes 2019-06-10 19:08:58 -07:00
Paul Gilbert 75da8ddd06 GLK: ADVSYS: Subroutine call & return opcodes 2019-06-10 19:08:58 -07:00
Paul Gilbert 8bb7c893f1 GLK: ADVSYS: String printing 2019-06-10 19:08:58 -07:00
Paul Gilbert d5d801d1cb GLK: ADVSYS: Adding opcodes and message decoding 2019-06-10 19:08:58 -07:00
dreammaster 0074810cb4 GLK: ADVSYS: Formatting fixes 2019-06-09 15:00:46 -07:00
Paul Gilbert b01e711d65 GLK: ADVSYS: Implementing VM opcodes 2019-06-09 15:00:46 -07:00
Paul Gilbert 39764f46d2 GLK: ADVSYS: Add overall script execution method 2019-06-09 15:00:46 -07:00
Paul Gilbert a9324c3c9e GLK: ADVSYS: Main game loop 2019-06-09 15:00:46 -07:00
Paul Gilbert da434f2952 GLK: ADVSYS: Adding game data access methods 2019-06-09 15:00:46 -07:00
Paul Gilbert b84e9a3dff GLK: ADVSYS: Save area and variable code 2019-06-09 15:00:46 -07:00
Paul Gilbert 47b5980323 GLK: ADVSYS: Setting up resident data and pointers 2019-06-09 15:00:46 -07:00
Paul Gilbert 9c05f1771e GLK: ADVSYS: Loading of game data 2019-06-09 15:00:46 -07:00
Paul Gilbert f35176d726 GLK: ADVSYS: Basic initialization and header loading in-game 2019-06-09 15:00:46 -07:00