Commit Graph

45 Commits

Author SHA1 Message Date
Paul Gilbert
110893c05a GLK: Add detection for IF Comp 2020 games 2020-10-13 20:40:20 -07: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
Thierry Crozat
4cb45cf1aa GLK: HUGO: Fix compilation 2020-08-30 03:00:14 +01:00
Paul Gilbert
44dd967a7e GLK: HUGO: Fix Tales of the Travelling Swordsman crash
Vanilla hugo limits spaces printed in the GO_TO code block
to the fixed width of a line. But since Glk doesn't have a
predetermined width, when the game specified a width of 7fffh,
it crashed trying to buffer out a string that actual length.
This new fix simply limits spaces to at most 20.
2020-08-29 18:02:15 -07:00
Paul Gilbert
96c860c5bd GLK: HUGO: Fix hang closing ScummVM window 2020-08-29 14:23:57 -07:00
Paul Gilbert
ac7b1e326d GLK: HUGO: Properly fix display images
The resource file format Hugo uses has named entries.
Because of this, the original Glk code added to Hugo
does a whole mess of reading in a picture, then copying
it to a dummy pic file with a dummy number, just so a
call to glk_image_draw could detect it.

Since this isn't the first time I've had to deal with
named resources, it ended up being cleaner to add a new
variation of glk_image_draw and glk_image_draw_scaled
that can take in a string image parameter. That way, I
was able to set up an archive class to represent the
resource file, and pass the resource name directly
without worrying about dummy picture numbers & files
2020-08-29 13:59:52 -07:00
Paul Gilbert
693f4f7554 GLK: HUGO: Fix overflow crashes 2020-08-25 22:14:26 -07:00
Paul Gilbert
de4ea5354a GLK: HUGO: Added detection entries 2020-08-25 22:14:19 -07:00
Eugene Sandulenko
cd9512d4b2 GLK: HUGO: Use memmove for overlapping buffers 2020-04-30 14:42:43 +02:00
Bastien Bouclet
1e30923737 GLK: Add override keywords 2020-02-09 12:43:15 +01:00
Eugene Sandulenko
cad4b06dd9 GLK: More override keywords 2020-01-31 13:41:31 +01:00
Paul Gilbert
397c9a0755 GLK: HUGO: Cleanup 2019-11-17 14:46:53 -08:00
Paul Gilbert
58498cf5f2 GLK: Fixing some gcc 8 warnings 2019-07-24 20:32:14 -07:00
Paul Gilbert
b3ab0cf3ce JANITORIAL: Glk engine block formatting 2019-07-21 11:31:33 -07:00
Paul Gilbert
3b9547edde GLK: Fix various gcc warnings 2019-07-06 17:02:26 -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
553bb74f8c GLK: Further changeover of sub-engines to use new savegame code 2019-06-16 14:59:26 -07:00
Paul Gilbert
0325c9315c GLK: HUGO: Support loading savegames from launcher 2019-05-15 17:12:27 -10:00
Paul Gilbert
68ef5ebfd6 GLK: HUGO: Fix reading savegame serial 2019-05-15 16:33:58 -10:00
Paul Gilbert
84bd8c6b46 GLK: HUGO: Move savegame code 2019-05-15 15:47:15 -10:00
Paul Gilbert
120ea78e13 GLK: HUGO: Fix handling of parse errors
Care will really need to be taken in the future if there's
any cleanup of fields to the proper 'bool' type. Hugo
inconsistency mixes use of true/false in fields that can
take non-bool values, such as for full_buffer
2019-05-15 14:22:23 -10:00
Paul Gilbert
6cecf9c0c6 GLK: HUGO: Fix initializing object size 2019-05-15 13:56:34 -10:00
Paul Gilbert
546160c1c1 GLK: HUGO: Comment out the DEBUGGER define
It's beter, since I don't know how to properly implement
all the debugger methods that get called when it's turned on
2019-05-15 10:43:32 -10:00
Paul Gilbert
67acfcccd6 GLK: HUGO: Fixes for startup and shutdown 2019-05-12 12:35:29 +10:00
Paul Gilbert
e6da910c14 GLK: HUGO: Add detection entries 2019-05-12 11:38:39 +10:00
Paul Gilbert
9f6e1a8f29 GLK: HUGO: Compilation fixes 2019-05-12 10:38:03 +10:00
Paul Gilbert
6b6670caf9 GLK: HUGO: Added hemedia & heres 2019-05-12 10:19:48 +10:00
Paul Gilbert
98f6315366 GLK: HUGO: Removed unneeded method stubs 2019-05-12 10:19:47 +10:00
Paul Gilbert
4113183f5b GLK: HUGO: Added heset 2019-05-12 10:19:47 +10:00
Paul Gilbert
88b2b3a166 GLK: HUGO: Compilation fixes 2019-05-11 16:38:31 +10:00
Paul Gilbert
96ebd81e5f GLK: HUGO: NULL to nullptr, Amiga compilation fix 2019-05-11 16:15:07 +10:00
Paul Gilbert
34122d2f47 GLK: HUGO: Added herun 2019-05-11 16:03:14 +10:00
Paul Gilbert
1bbfcca229 GLK: HUGO: Add heparse 2019-05-11 13:59:44 +10:00
Paul Gilbert
abb7b22b2e GLK: HUGO: Add heexpr 2019-05-11 13:19:52 +10:00
Paul Gilbert
84c47349a9 GLK: HUGO: Compilation fixes 2019-05-11 13:04:00 +10:00
Paul Gilbert
c1f8bd8823 GLK: HUGO: Replace contents of hemisc
Unlike initally where I was ripping out parts of the file and making
code changes, this version is intended to be more identical to the
original, except for the functions being made class methods. This
should make it easier to apply any further upstream code changes to
the codebase in the future
2019-05-11 11:11:23 +10:00
Paul Gilbert
0b2346c1f1 GLK: HUGO: Added heobject 2019-05-11 10:18:13 +10:00
Paul Gilbert
8830063635 GLK: HUGO: Added hemisc, htokens, and stringfn files 2019-05-10 12:11:06 +10:00
Paul Gilbert
2765ba9afa GLK: HUGO: Added Glk interface methods 2019-05-10 12:11:05 +10:00
Paul Gilbert
19a9b9aa31 GLK: HUGO: heglk fields & initialization 2019-05-10 12:11:05 +10:00
Paul Gilbert
e3e631e297 GLK: HUGO: Added engine feilds 2019-05-10 12:11:05 +10:00
Paul Gilbert
cfd19b1a84 GLK: HUGO: First detection entry 2019-05-10 12:11:04 +10:00
Paul Gilbert
6b75eff73c GLK: HUGO: Initial sub-engine skeleton 2019-05-10 12:11:04 +10:00