Commit graph

375 commits

Author SHA1 Message Date
Paul Gilbert
3ac6998a98 AGS: Support Overlays not copying the image, but storing a sprite id
From upstream fd14bd4075bd9e6a577235f2434275b260250c46
2022-05-08 11:37:49 -07:00
Paul Gilbert
cf091f2d3e AGS: Replaced couple of variables in ScreenOverlay with flags
From upstream 38a4e8c262f0ec796225494fc939b283680caf57
2022-05-06 20:16:41 -07:00
Paul Gilbert
d2547418c0 AGS: Added show_fps to config
From upstream 2d6e0fca6bd310822e4f82ed95eb2bb5c116ac65
2022-05-05 22:59:51 -07:00
Paul Gilbert
02bc813aa2 AGS: Simplified config setting in process_cmdline a little
From upstream 54f2b45744e13f95e45afcd5b9c0e6336747ec0c
2022-05-05 22:53:13 -07:00
Paul Gilbert
d385968209 AGS: Tidy up mobile config once more and get rid of psp_* variables
From upstream 4ba8fbed2f16786e86f201f57fdaaa91cc887700
2022-05-05 22:41:10 -07:00
Paul Gilbert
b1649597d7 AGS: Replaced Math/std Min/Max with ScummVM macros
Inspired by 6dee5ee6f271c600e30879d892295ea6069e8cc9
2022-05-05 22:41:10 -07:00
Paul Gilbert
97c12e8435 AGS: Merged Character and ObjectCache structs, and hid in draw.cpp
From upstream 753d47d975b10666702c47a22cbc4e68847787f1
2022-05-05 22:41:09 -07:00
Paul Gilbert
6482e38803 AGS: CharacterExtras and MoveLists are stored in std::vector
From upstream 0c81cfefb788c0dcfdb2cad914f939f28110edca
2022-05-05 22:41:08 -07:00
Paul Gilbert
8e132f7b3f AGS: cc_error returns stack from all script threads
From upstream 9e76800d668d8d0af7d47d815e6d1b781c7601f6
2022-05-05 22:41:07 -07:00
Paul Gilbert
16d0d89787 AGS: Grouped ccError variables in a struct
From upstream 48ef387226e4d420dc62d0a0b204cf4cd89a1139
2022-05-05 22:41:07 -07:00
Paul Gilbert
a2a5f2575d AGS: Reorganized few cc_ headers
From upstream ea1f8b9ece69fc7c49c4d3aa7b9af51c4ca736e5
2022-05-05 22:41:07 -07:00
Paul Gilbert
cfefb80461 AGS: Moved font renderer shutdown after the game data disposal
From upstream 0914030ff28647262e53d611f8de8e9b5f3aca16
2022-05-05 22:41:06 -07:00
Paul Gilbert
8e4254b839 AGS: Refactored walk-behinds calculation and texture generation
From upstream ac0c4cea6a6e41238fe74f0753fa6a458f05d954
2022-05-05 22:41:05 -07:00
Paul Gilbert
ebe2096af7 AGS: Call unload_game_file() in quit()
From upstream 1118be9d3f09037b995554d7aad47a400a76fafc
2022-05-01 17:23:26 -07:00
Paul Gilbert
b2d5b6e586 AGS: Implemented Overlay.Width & Height working as scaling
From upstream 3a27e81a710a1c3de4b745d84dca39554dc64385
2022-05-01 17:23:24 -07:00
Paul Gilbert
8d588c3a30 AGS: Fixed on_key_press not called all times
From upstream ffb73a0a7488e16b26c969b7efb3ca035f7dcea4
2022-04-29 22:20:39 -07:00
Paul Gilbert
21ab95f5ab AGS: Remove RegisterGameWithGameExplorer()
From upstream 1554207f04dc6999994d02956587b302bb56f858
2022-04-29 22:20:39 -07:00
Paul Gilbert
0490236774 AGS: Use old-style keycodes for internal engine commands
From upstream e2f8b0f2357d2587016425ff6629ef37601d8e0f
2022-04-29 22:20:38 -07:00
Paul Gilbert
68e5184afa AGS: Replaced some (v)sprintfs with sNprintf counterparts
From upstream a34bd392249f87a152dc470d90c67a7d193a28d8
2022-04-27 20:51:30 -07:00
Paul Gilbert
23a2e8c709 AGS: More config parse helpers: reading boolean ints, min-max range
From upstream 9737cabb8e7562122f8c471793bd994685d72bfe
2022-04-27 20:38:38 -07:00
Paul Gilbert
7b0bfee7cc AGS: Renamed and moved INIread/write functions for proper org&style
From upstream 18398a7d695e81575218380e1bba28010c239fdc
2022-04-27 20:25:31 -07:00
Paul Gilbert
1ab42991d1 AGS: Added more event constants, clarified couple event calls
From upstream ae6862f7917832ebc5f2314561938c01725ac8a2
2022-04-25 22:11:42 -07:00
Paul Gilbert
357679d2a8 AGS: Fixing unimplemented cases in switches
From upstream f2bb0d055344197b6e4ed537c3107fe0c9784e50
2022-04-25 21:50:33 -07:00
Paul Gilbert
a6f42ad1ab AGS: Fixing various "unused va/arg" warnings + removed empty funcs
From upstream 61771ecd638338806c40d0da2bf1addea06cac90
2022-04-25 21:44:40 -07:00
Paul Gilbert
a633e9d72f AGS: Fixing various type-cast warnings
From upstream 6c42c7331e96386721f28c92ec3cb4cd039e10cd
2022-04-25 20:06:19 -07:00
Paul Gilbert
14cffd13e7 AGS: Use String::NoIndex instead of -1 where necessary
From upstream 56275cb1f58f630082f3f51ab8e2c0ab5b021b16
2022-04-24 16:00:04 -07:00
Paul Gilbert
4cab476394 AGS: in String use constant NoIndex instead of nps
From upstream aca0285937f96002b76d61f4c1cc6f3a11242c2c
2022-04-24 16:00:04 -07:00
Paul Gilbert
1f666cf0dc AGS: Fixed loading a different game when restoring a save
From upstream 56fb3029f61706b655f778349e2c4f50c8e03427
2022-04-23 19:26:25 -07:00
Paul Gilbert
35e6c82ac8 AGS: Don't use global loadSaveGameOnStartup beyond starting function
From upstream 4bf3b328b2dd6f0a46a85bf501aded17a93f4a51
2022-04-23 18:56:44 -07:00
Paul Gilbert
09d4069428 AGS: Share animation cycling algo between Buttons and RoomObjects
From upstream fd28a2548e39c85478d98e26b51713cd687acada
2022-04-22 20:05:04 -07:00
D G Turner
b59e24e117 AGS: Fix Cast Qualifier GCC Compiler Warnings
These are emitted if -Wcast-qual is passed to GCC.
2022-04-22 14:14:55 +01:00
Paul Gilbert
415235b74e AGS: expanded Button.Animate to feature all common params
From upstream 0853d4146276f86c7418dc02360deb49a0ef324a
2022-04-21 22:07:41 -07:00
Paul Gilbert
06880291b2 AGS: Refactor restrict_until and ShouldStayInWaitMode()
From upstream 434dd136b4e6628545677a17fc17c847efff1c71
2022-04-21 21:49:13 -07:00
Paul Gilbert
7fb5f6d21a AGS: Support option for software renderer's output driver
From upstream d45f77548675f06056143d6989929870338b34a1
2022-04-21 21:31:00 -07:00
Paul Gilbert
5060848b48 AGS: Support requesting particular audio driver
From upstream 076e675a3d031cd0a9d162f914e6d94c93a10d71
2022-04-21 21:20:58 -07:00
Paul Gilbert
e0282d5064 AGS: Implemented key handling switch (old/new mode)
From upstream b9e23731d0d792d095c1d4e83fa1797a1afeee46
2022-04-21 20:55:38 -07:00
Paul Gilbert
e736059bbe AGS: pass key modifiers as an extra arg to on_key_press
From upstream b00b82220cbabf44185e042ef33b543fe2ad3543
2022-04-21 20:23:53 -07:00
Paul Gilbert
c0010986ac AGS: Implemented on_text_input(int chr) callback
From upstream ba866abab0ba5a48b8577c4a01f0533a2d7e68de
2022-04-18 19:10:39 -07:00
Paul Gilbert
b2d8bcad75 AGS: Refactor RunTextScript* functions for the purpose of clarity
From upstream 17af6ca2cb1fba310900f5189da788fa52ef7dab
2022-04-18 19:10:39 -07:00
Paul Gilbert
af079a9c45 AGS: Handle all the buffered key events in one game frame
From upstream e489e187e88071c15fa64351852b8ede45f9f7ac
2022-04-18 19:10:38 -07:00
Paul Gilbert
8be58d3de2 AGS: Store game events in std::vector, remove event cap
From upstream a2f9a5ba94377686762b2828df4fccbe661d2b03
2022-04-18 19:10:29 -07:00
Paul Gilbert
14209fafed AGS: Removed arbitrary character followers limit
From upstream c64850badd610b3ce90821a080e7e6b04d65193e
2022-04-13 21:55:19 -07:00
Paul Gilbert
aeddd232e0 AGS: Removed animating buttons limit
From upstream 484f6d3f44c7dbb361ddeebd8bb46862760501bc
2022-04-13 21:55:18 -07:00
Paul Gilbert
1b502b3d0f AGS: Switch text format mode depending on OPT_GAMETEXTENCODING
From upstream 1295b8b70eced8ea7c6e277d0595c24e58b6c657
2022-04-12 22:27:58 -07:00
Paul Gilbert
29ea22c308 AGS: Add rotation support in config
From upstream d68e28eb1927c6c4391cddfe1e6294142181c365
2022-04-12 22:27:58 -07:00
Paul Gilbert
fa997d3c4b AGS: Fixed bg frame and bg locked flag is reset on save restore
From upstream 2c1604074da6fc2ccea17a63596b370df0d12147
2022-04-12 22:27:57 -07:00
Paul Gilbert
8e3207b38b AGS: Moved frame wait and user input check outside of VideoPlayer
From upstream c5f815729792837b6b4a02c013c7c554942792d9
Only partially implemented, since ScummVM has it's own video player code
2022-04-12 22:27:57 -07:00
Paul Gilbert
9c01b99b32 AGS: Add clear cache on room change from Android port to config
From upstream 7abbd673e910289511bcca3101abd03101599eb0
2022-04-12 22:27:56 -07:00
Paul Gilbert
87d4970205 AGS: Added --translation and --no-translation cmd args
From upstream 2605765f2433ed06ae07b1ac95d6e1e0d8c27072
2022-04-12 22:27:56 -07:00
Paul Gilbert
d147a541ec AGS: Cleanup some unused code/comments
From upstream f0dc4b364888f019c037afee6ee66aa0726fb560
2022-04-10 19:39:08 -07:00