Commit Graph

105 Commits

Author SHA1 Message Date
Eugene Sandulenko
25d8019a90
GOB: Fix warning 2022-12-02 11:49:49 +01:00
Simon Delamarre
1e5cb46b6e
GOB: fix a missing indentation (Adibou2) 2022-12-02 11:44:35 +01:00
Simon Delamarre
a71b1c9e94
GOB: allow more path separators in "file path -> save handler" mapping
'/' and ':' are now supported in addition to Window-style '\'
2022-12-02 11:44:35 +01:00
Simon Delamarre
6a1e2d5d21
GOB: misc format/style/typo fixes in Adibou2 changes 2022-12-02 11:44:35 +01:00
Simon Delamarre
31b759a281
GOB: GPLv2 -> GPLv3 in file headers added for Adibou 2022-12-02 11:44:34 +01:00
Simon Delamarre
0e5953ad67
GOB: fix a crash when returning to launcher from Adibou2 2022-12-02 11:44:34 +01:00
Simon Delamarre
dd0748fa66
GOB: a few format fixes 2022-12-02 11:44:33 +01:00
Simon Delamarre
012b520872
GOB: a few missing "0 -> nullptr" replacements 2022-12-02 11:44:33 +01:00
Simon Delamarre
bc18fc6361
GOB: workaround to handle application CD changes in some Adibou2 versions
Some versions of Adibou2 are only able to handle one CD at a time. This workaround enable to add Adibou2 applications by copying them as a subdirectory of the game directory, just like in multi-cd-aware versions.
2022-12-02 11:44:32 +01:00
Simon Delamarre
4a6520c670
GOB: fix exercises completion details in Adibou2 tree 2022-12-02 11:44:32 +01:00
Simon Delamarre
8a08d6470b
GOB: o7_deleteFile, allow to delete all files matching a pattern
Fixes the "delete character" button in Adibou2

We cannot strip paths for this opcode, as scripts sometimes delete all files in a directory (e.g. "TEMP\*.*", that would have been simplified as "*.*" with path stripping).

Use also full path match for read/write/copy/move operations, to allow distinguishing savegames with same filename under different directories, with a fallback to simple filename matching.
2022-12-02 11:44:31 +01:00
Simon Delamarre
0ac43888f2
GOB: handle saving Adibou2 drawings on "floppy disk"
They will just land on the save directory, as other saves, with fix filename "adibou2_drawing_on_floppy_disk".

The use case is to facilitate sharing drawings between different Adibou characters, for example to continue a friend's drawing. In this view, we wrap the full picture and its thumbnail in a same file with a fix filename, so that one need only to move the "adibou2_drawing_on_floppy_disk" file between Adibou2 installations to share "floppy disk" drawings.
2022-12-02 11:44:30 +01:00
Simon Delamarre
87536a16e4
GOB: fix errors in Adibou2 savegame files list 2022-12-02 11:44:30 +01:00
Simon Delamarre
680077d92b
GOB: add save handler stubs for Adibou1
Remove a blocking "floppy disk error" screen on some versions.
2022-12-02 11:44:30 +01:00
Simon Delamarre
e3e6c76923
GOB: handle saves for Adibou2 construction minigame
A few int16->utin16 were needed again.
2022-12-02 11:44:28 +01:00
Simon Delamarre
962e9f9386
GOB: save breakout game progress in Adibou2 2022-12-02 11:44:28 +01:00
Simon Delamarre
81d4a437e9
GOB: implement deleteFile() for Adibou2 save handlers 2022-12-02 11:44:27 +01:00
Simon Delamarre
b7349f8195
GOB: more save handlers for Adibou2
"TEMP01.CSA" is actually "weather" file for player1.
The first time, it needs to be copied from "TEMP.CSA" (copy file is now implemented, remove previous workaround)
2022-12-02 11:44:27 +01:00
Simon Delamarre
40f834fd7c
GOB: implement copyFile and moveFile 2022-12-02 11:44:26 +01:00
Simon Delamarre
3546f15ab4
GOB: save flowers and cakes photos in Adibou2 2022-12-02 11:44:26 +01:00
Simon Delamarre
851b015beb
GOB: save mailbox drawing in Adibou2 2022-12-02 11:44:26 +01:00
Simon Delamarre
09dc57a4e3
GOB: save drawings in Adibou2 2022-12-02 11:44:26 +01:00
Simon Delamarre
532076a73d
GOB: add saved handler for lance.inf and retour.inf in Adibou2 2022-12-02 11:44:25 +01:00
Simon Delamarre
d0961114f0
GOB: add more Adibou2 save files, simplify save handler 2022-12-02 11:44:25 +01:00
Simon Delamarre
1453d97507
GOB: add handlers for temporary .inf files used by Adibou2 applications
This fixes incorrect activities titles in applications.
2022-12-02 11:44:24 +01:00
Simon Delamarre
9c3ed44a8a
GOB: save Adibou2 environment state
environment: flowers, vegetable garden...
2022-12-02 11:44:24 +01:00
Simon Delamarre
0f95ad760f
GOB: save children personal data and completed exercises in Adibou2
child personal data: name, birth date, face sprite
2022-12-02 11:44:23 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh
8d91d66a15 GOB: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Orgad Shaneh
9c3d7c9621 GOB: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
Paul Gilbert
005561d305 COMMON: Increase Stream pos, seek, size from int32 to int64 2021-07-08 18:24:28 -07:00
Bastien Bouclet
0ee30278fc GOB: Add override keywords 2020-02-09 12:43:15 +01:00
Johannes Schickel
ea21bc939a GOB: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Sven Hesse
eb55db436d GOB: Fix a leak 2013-04-15 18:25:01 +02:00
Sven Hesse
c053f715d6 GOB: Remove unused member variable in SaveLoad_v6 2013-04-15 18:22:49 +02:00
Sven Hesse
172aed0441 GOB: Remove unused member variables in SaveLoad_Fascination 2013-04-15 18:22:18 +02:00
Sven Hesse
026ef70b87 GOB: Add a SaveLoad class for AJ's World
Only contains a temp sprite handler ("menu.inf") for now.
This fixes the graphical glitch after clicking on the cloud.
2012-06-16 15:23:31 +02:00
Sven Hesse
dfe9fc05aa GOB: Implement saving/loading for Geisha 2011-08-29 01:37:57 +02:00
D G Turner
8356656575 GOB: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
2011-06-02 02:20:51 +01:00
Matthew Hoops
eea482fa43 ALL: behaviour -> behavior 2011-05-25 10:50:46 -04:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Sven Hesse
8e03a200ef GOB: Fix a stupid typo in SlotFileIndexed::buildIndex()
This should fix bug #3295893.

The intention of this piece of code was to pad the first save slot
name with spaces until it's as long as the longest save slot name,
because the scripts use it to gauge the width of the save list.
Unfortunately, I messed up there, overwriting variable space directly
after the save names. In Urban Runner's case, this would be the list
of inventory items.
2011-05-05 20:50:53 +02:00
Sven Hesse
30f7cdb49a GOB: Plug a leak
Thanks to digitall for finding that one
2011-05-04 01:26:10 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Sven Hesse
804f0f3e47 GOB: Shut up VS2010 code analysis warning 2011-04-20 23:10:00 +02:00
Max Horn
0ce2ca4e00 COMMON: Replace MKID_BE by MKTAG
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
Ori Avtalion
765540a5fd GOB: Avoid hiding overloaded virtual methods 2011-02-26 20:25:44 +02:00
Sven Hesse
812680d187 GOB: Rename Draw::kSpritesCount to Draw::kSpriteCount
svn-id: r55729
2011-02-02 16:49:20 +00:00
Sven Hesse
c498d70dd2 GOB: Change SPRITES_COUNT into a const
svn-id: r55645
2011-01-30 00:02:42 +00:00
Sven Hesse
437a3eb63b GOB: Add 2 Addy 4 base fake save handlers
svn-id: r55553
2011-01-26 19:05:36 +00:00