Paul Gilbert
7dfeb809f2
AGS: Refactored call_function to also use PluginMethod
2021-07-19 19:17:12 -07:00
Paul Gilbert
e543a32ec0
AGS: In progress converting plugin classes to be instance based
...
Previously the plugin system was obviously built around function
pointers, since a loaded plugin DLL would expose them statically.
This meant that the plugin classes I implemented also had to use
static methods, and all the variables had to be static as well.
This has been getting more and more annoying. So this commit is
an in-progress refactoring of AGS to allow for plugins to be
properly instance-based, and pointers to script methods will be
both a pointer to the plugin as well as the method name.
2021-07-18 17:07:01 -07:00
Paul Gilbert
d9bbf9775c
AGS: Rewrote ci_find_file() into File::FindFileCI()
...
From upstream 4e2df949ff36bbb6d08e402586dc8c2bb02ecad9
2021-07-10 18:56:59 -07:00
Paul Gilbert
ddb5daca4c
AGS: improve debug level and cc_error output for missing imports
...
From upstream ca66d3cb69930c9f755da5fc26e173098169ae7d
2021-07-10 18:56:57 -07:00
Paul Gilbert
8f3b1e4b0e
AGS: print all missing script imports for current script module
...
From upstream 9a1c401ba97267947db5357b34db55e62b213f99
2021-07-10 18:56:57 -07:00
Paul Gilbert
ba10eb247e
AGS: print original filename for import errors if possible
...
From upstream 94fc737b34e84a5753479910f8da97a28744f918
2021-07-10 14:33:38 -07:00
D G Turner
efc9e04ce0
AGS: Fix Various GCC Compiler Warnings
2021-06-15 11:07:23 +01:00
Paul Gilbert
edb1ac0f6c
AGS: fixed formatting type for several size_t and soff_t values
...
From upstream 548573740a5c8acc48600f9b069b7d1dc94d0dc3
2021-06-13 21:09:01 -07:00
Paul Gilbert
87dba2e276
AGS: Re-added checks for SHOULD_QUIT and abort_engine
2021-06-13 21:08:52 -07:00
Paul Gilbert
701396361c
AGS: Import of fresh codebase
2021-06-13 21:08:44 -07:00
Paul Gilbert
bc8c92c2f9
AGS: Replace QFG2 workarounds with generic upstream fix
...
This applies commit b07ddea6d2a16cd4e77e687675853dbc914b15ca
2021-04-17 16:37:13 -07:00
Paul Gilbert
407d38e7e9
AGS: Add a lot of abort_engine checks to break out of scripts
...
Previously, quitting could generate spurious error messages
between the point abort_engine was set, and the outer game
loop where game execution was aborted. It just wasn't visible,
because abort_engine was set. Now that we're immediately
generating a ScummVM error for any error generated, I needed
to add extra abort_engine break checks to avoid any errors
2021-04-16 20:44:41 -07:00
Thierry Crozat
44c0f0d115
AGS: Improve print of arguments when dumping script instruction
2021-04-16 01:14:45 +01:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs
2021-04-15 21:20:36 +02:00
Thierry Crozat
d77aa09eb0
AGS: Fix compilation on 64 bit Windows
2021-04-15 12:11:20 +01:00
Thierry Crozat
b1683699bd
AGS: Fix script dump
...
The code for dumping script was not working. One issue is that it
was opening and closing the file for each line, which was very
slow. Another issue is that we do not support opening in rw mode,
so it was open in write mode only and only the last line was
available in the file. The code switches to writing the file using
Common::DumpFile and keeps the file open until we close the engine.
2021-04-14 23:54:48 +01:00
Paul Gilbert
879a06fabf
AGS: Extend workaround to fix QFG2 F4 cheat key
2021-04-08 19:08:02 -07:00
Paul Gilbert
5650217194
AGS: Workaround for QFG2 F10 cheat key
2021-04-07 21:21:00 -07:00
Paul Gilbert
a18be9c938
AGS: Move miscellaneous engine/ac/ globals to Globals
2021-03-12 21:30:58 -08:00
Paul Gilbert
24d800ae1b
AGS: Move agsstaticobject.cpp globals to Globals
2021-03-12 21:14:38 -08:00
Paul Gilbert
2f094655f1
AGS: Move script_runtime.cpp globals to Globals
2021-03-12 20:59:14 -08:00
Paul Gilbert
94212de9c8
AGS: Move game.cpp globals to Globals
2021-03-12 19:51:21 -08:00
Paul Gilbert
f3cf990c7c
AGS: Move cc_instance.cpp globals to Globals
2021-03-12 19:51:14 -08:00
Paul Gilbert
9c6dd73349
AGS: Move cc_dynamicobject.cpp globals to Globals
2021-03-10 20:43:37 -08:00
Paul Gilbert
1e327a63f8
AGS: Move cc_script.cpp globals to Globals
2021-03-06 20:07:09 -08:00
Paul Gilbert
21e9dde4ca
AGS: Move cc_error.cpp globals to Globals
2021-03-06 15:11:39 -08:00
Paul Gilbert
003d890955
AGS: Move systemimports.cpp globals to Globals
2021-03-05 20:14:51 -08:00
Paul Gilbert
de2881e2d1
AGS: Move managedobjectpool.cpp globals to Globals
2021-03-03 20:25:07 -08:00
Paul Gilbert
b6dd902163
AGS: Move script.cpp globals into Globals
2021-02-28 16:41:48 -08:00
Paul Gilbert
887472c8c1
AGS: Moved a lot of game.cpp globals to Globals
2021-02-28 13:27:21 -08:00
Paul Gilbert
1a8ae27b58
AGS: Move game & spriteset into Globals
2021-02-26 21:28:53 -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
Ori Avtalion
bfe16d0ed4
AGS: Silence clang warnings
2021-02-11 20:31:17 +02:00
Paul Gilbert
f6077152d1
AGS: More standardization of int vs int32_t
2021-02-06 22:22:04 -08:00
Paul Gilbert
d31a614b08
AGS: Compilation fixes
2021-02-06 17:11:07 -08:00
Paul Gilbert
cf9bbb2bb2
AGS: Beginnings of new Globals class
2021-02-06 16:37:31 -08:00
Paul Gilbert
7097d33268
AGS: Fix some overflow warnings
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
f8b95a5d34
AGS: Fix closing ScummVM window on title screen
2021-02-06 16:37:31 -08:00
Paul Gilbert
3a8ce07088
AGS: gcc compilation fixes
2021-02-06 16:37:31 -08:00
Paul Gilbert
c16efc3a1d
AGS: Adding engine/script/ 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