Commit Graph
23 Commits
Author SHA1 Message Date
Paul Gilbert 6b1c43f90b AGS: Do explicit type cast in FileReadRawChar and FileWriteRawChar
From upstream e3eb59bd4d72148a762ac93d0df36a56e101f257
2022-04-24 16:00:02 -07:00
Paul Gilbert 9a5b149176 AGS: Moved script paths slashes fixup to ResolveScriptPath()
From upstream 6249e0fd9529b54b435b299c78394c1fa1efcbe2
2022-04-05 20:42:57 -07:00
Paul Gilbert eafed5070a AGS: Log script's FileOpen command results
From upstream ad39a4336829927ae47516d85dffd5dcde61584d
2022-04-05 20:42:56 -07:00
Paul Gilbert f1972a352a AGS: Fixup slashes for filepaths from the script ('\\' -> '/')
From upstream 53a705c6f0f64b9092f8992c7c56fa06e587774f
2022-04-05 20:42:56 -07:00
Paul Gilbert b61a661907 AGS: Removed redundant asset_size param from AssetManager::OpenAsset
From upstream 9d8456d4202be698b0a3117679745a8200c1ab9b
2022-03-20 22:11:54 -07:00
Paul Gilbert c09781e98e AGS: Removed redundant file mode params from AssetManager's methods
From upstream d07278a40d4374767fe10cd736475f41c843f10e
2022-03-20 22:11:54 -07:00
Paul Gilbert a69197bbe0 AGS: Implemented support for opening assets for reading in script
From upstream e19d343b2d2cda2757d821532de195bd234f49f0
2022-03-20 22:11:53 -07:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
antoniou79 d474ee3003 AGS: Change a few char variables to int8
In order to specify that they should be treated as signed

Some ports may treat an (unspecified) "char" as unsigned by default. Android does this for its ARM architectures and while we did fix this by enforcing -fsigned-char to its compiler, the issue may come up for other ports. Also it should be better to clarify in the engine when a variable is not actually storing string characters.

I've spotted and changed the most "safe" cases I could find for this. As far as I can tell, out of these, only the Outline field and fontoutline array could potentially be assigned valid negative values which would cause bugs for ports treating chars as unsigned.
2021-09-09 19:27:49 -07:00
Paul Gilbert 00ade063b9 AGS: In File api functions replaced quit with a warning on error
From upstream b703e7d25041e1b6bf99b76a89ca422351e04ace
2021-07-27 22:03:35 -07:00
Paul Gilbert 701396361c AGS: Import of fresh codebase 2021-06-13 21:08:44 -07:00
Paul Gilbert 34c86ce1a1 AGS: Removal of commented out includes 2021-03-06 19:43:13 -08:00
Paul Gilbert cd017a73c7 AGS: Revert Standardization of number types
This reverts commit a96422af52.
2021-02-16 19:45:02 -08:00
Paul Gilbert a96422af52 AGS: Standardization of number types
This not only simplifies all the use of _t types to the
ScummVM equivalents, it gets rid of the int32 usage in
favor of just int, solving common type clashes with the
Amiga, for which int doesn't match int32
2021-02-13 11:38:55 -08:00
Paul Gilbert 7717131014 AGS: Fix games that write to files in the game folder
This fixes a crash at the very startup of The Blackwell Legacy,
which reads from a file prog.bwl in the game folder, and then
writes out a new version. In the new scheme, all data files
will try to be accessed from the save folder first, and then
fall back on the game folder. So this allows Blackwell to first
read from the game folder prog.bwl, then create it's own
2021-02-06 16:37:31 -08:00
Paul Gilbert 2447e8b06f AGS: Corrections to saving games 2021-02-06 16:37:31 -08:00
Paul Gilbert fe46be9223 AGS: Added engine/ac/ folder 2021-02-06 16:37:31 -08:00
Paul Gilbert 9a78e04039 AGS: Beginnings of engine/ inclusion 2021-02-06 16:37:31 -08:00
Paul Gilbert a7a9ca0543 AGS: Adding AGS3 namespace to cpp files 2021-02-06 16:37:31 -08:00
Paul Gilbert d8e471b03c AGS: Changing Common namespace to Shared 2021-02-06 16:37:31 -08:00
dreammaster 8026e4bb30 AGS: Run astyle formatting 2021-02-06 16:37:31 -08:00
Paul Gilbert bd6a58d1a1 AGS: Adding ScummVM comment headers 2021-02-06 16:37:31 -08:00
Paul Gilbert a60d290a08 AGS: Initial addition of engine/ and shared/ folders 2021-02-06 16:37:31 -08:00