aryanrawlani28
e3e8e81815
ENGINES: METAENGINE: Improve comments
2020-10-03 14:56:36 +02:00
aryanrawlani28
992abce74a
ENGINES: Rename getMetaEngine helpers
...
- getME -> getMetaEngineStatic (static parts)
- getMEC -> getMetaEngine (dynamic parts)
2020-10-03 14:56:36 +02:00
aryanrawlani28
d26bbe521c
ENGINES: ALL: Finish renaming ME & AME classes
...
- ME -> MetaEngineStatic (static parts)
- MEC -> MetaEngine (dynamic parts)
2020-10-03 14:56:36 +02:00
aryanrawlani28
71a820caff
ENGINES: Begin class renaming of ME & AME
...
- ME -> MetaEngineStatic (static parts)
- MEC -> MetaEngine (dynamic parts)
2020-10-03 14:56:36 +02:00
aryanrawlani28
c48719404a
BASE: PLUGINS: Rename plugin matching helpers
...
- give*From* -> get*From*
2020-10-03 14:56:36 +02:00
aryanrawlani28
02730ee176
BUILD: MAKEFILES: Improve syntax of if checks
2020-10-03 14:56:36 +02:00
aryanrawlani28
2f05960913
BUILD: MAKEFILES: Rename USE_RULES -> LOAD_RULES_MK
2020-10-03 14:56:36 +02:00
aryanrawlani28
73af65eedb
GRIFFON: Add missing header for translations
2020-10-03 14:56:36 +02:00
aryanrawlani28
a9fd54cffd
GLK: Fix missing header files to create engines
2020-10-03 14:56:36 +02:00
aryanrawlani28
58a9de8092
DEVTOOLS: CREATE_PROJECT: Use map instead of unordered_map
...
- No C11 support yet, revert to use map to fix build
2020-10-03 14:56:36 +02:00
aryanrawlani28
f4d4283f79
QUEEN: Add missing newline at EOF in modules.mk
...
- This should fix the build errors.
2020-10-03 14:56:36 +02:00
aryanrawlani28
0b2428e7c5
NEVERHOOD: Temporarily rename module -> module_scene.cpp
...
- The name was clashing with one of the audio files.
- New changes were spread to the detection files, so no idea how this file is involved.
- In the meanwhile, this commit should fix a build error, if any.
2020-10-03 14:56:36 +02:00
aryanrawlani28
abedaaa5aa
ENGINES: Don't allow dynamic detection to be exposed when using static-detection.
2020-10-03 14:56:36 +02:00
aryanrawlani28
de56694f53
DEVTOOLS: CREATE_PROJECT: Support static detection features
...
- This allows apps that use create_project to build with statically linked detection features.
- Also add support to write an addtional file - detection_tables.h inside engines/.
2020-10-03 14:56:36 +02:00
aryanrawlani28
1b3eec4252
SCI: Assign proper naming for building options widget
...
- The base class is temporarily named buildOptionsWidgetStatic.
2020-10-03 14:56:36 +02:00
aryanrawlani28
9624bfeb15
SCUMM: Move common detection/engine enums into detection.h
2020-10-03 14:56:36 +02:00
aryanrawlani28
13f2a0afb0
SCUMM: DETECTION: Remove sneaky main engine headers.
2020-10-03 14:56:36 +02:00
aryanrawlani28
e08748866e
SCI & WINTERMUTE: Fix unsafe code for fallbackDetect
...
- Using static for plugins will result in crash if the plugins are unloaded after being called for the first time.
- Good example is when UncachedPluginMan uses these.
2020-10-03 14:56:36 +02:00
aryanrawlani28
a9841622e0
ENGINES: DETECTION: Use inheritance hierarchy and mimic existing plugins.
2020-10-03 14:56:36 +02:00
aryanrawlani28
6679c7e72e
GLK: Fix modules to build
...
- Creating an instance of GLK requires searching through all sub-engine detection lists.
- So, these must be there at the time of creating an instance of GLK.
- Hence, all these objects will ONLY be skipped from static-detection, if GLK itself is static.
- The above point is because it will need to avoid duplicate symbols.
2020-10-03 14:56:36 +02:00
aryanrawlani28
102b22f4a8
SCI: Fix naming for SciMetaEngineConnect
2020-10-03 14:56:36 +02:00
aryanrawlani28
9eb564b89f
SCI: Move common enum -> detection.h
2020-10-03 14:56:36 +02:00
aryanrawlani28
32799c1ee8
SCUMM: Fix naming for ScummMetaEngineConnect
2020-10-03 14:56:36 +02:00
Eugene Sandulenko
ceabaf3b0d
BASE: Added override keywords
2020-10-03 14:56:36 +02:00
aryanrawlani28
2c2f21b0cd
NEVERHOOD: Fix compilation
2020-10-03 14:56:36 +02:00
aryanrawlani28
973526a4d3
BBVS: Fix compilation
2020-10-03 14:56:36 +02:00
aryanrawlani28
a56dc094b9
ENGINES: ALL: Move detection_enums -> detection.h
...
- Cleans up headers quite a bit.
2020-10-03 14:56:36 +02:00
aryanrawlani28
ba5368542f
BASE: PLUGINS: Update header file & use DETECTION_STATIC def check to build static detection features.
2020-10-03 14:56:36 +02:00
aryanrawlani28
11615faca8
MAKEFILES: Include dynamic building detection module if requested
2020-10-03 14:56:36 +02:00
aryanrawlani28
81d2bb8f11
ENGINES: DETECTION: Shift detection files to live inside engines subdirectory
2020-10-03 14:56:36 +02:00
aryanrawlani28
867e6c4e21
CONFIGURE: Improve enabling of detection as static/dynamic
...
- Add config statements to help in makefiles & base/plugins.cpp
- Print to console if detection is building as static or not
2020-10-03 14:56:36 +02:00
aryanrawlani28
0cbff637d4
MAKEFILES: Include all detection objects while keeping the rest as-is.
...
- This enables detection objects to be always available and build into the executable.
2020-10-03 14:56:36 +02:00
aryanrawlani28
1d3e4d2800
MOHAWK: Do not create additional folders for riven & myst metaengines.
2020-10-03 14:56:36 +02:00
aryanrawlani28
4f55c1b689
DIRECTOR & KYRA: MODULES: Use workarounds to skip warnings.
...
- When these files are included for the second time, a warning is shown that the previous recipes will be overriden.
- Use_Rules helps with a workaround to disable these warnings.
2020-10-03 14:56:36 +02:00
aryanrawlani28
ac900a06b8
BASE: PLUGINS: Use engines/detection_table header for static plugins
2020-10-03 14:56:36 +02:00
aryanrawlani28
6735c46c41
MAKEFILES: Add a variable which helps in deciding if rules.mk should be used or not
...
- It is always enabled by default
- Only disabled when we would include all engine module files, so we don't include unnecessary stuff
2020-10-03 14:56:36 +02:00
aryanrawlani28
911e0e4f3c
GIT: Rename detection_tables inside gitignore which is now present inside engines subdirectory
2020-10-03 14:56:36 +02:00
aryanrawlani28
e64446e4ce
CONFIGURE: Remove detection submodules written to engines.mk
...
- Write detection_table inside engines subdirectory
2020-10-03 14:56:36 +02:00
aryanrawlani28
29ceb07959
ENGINES: ALL: Revert detection submodule to be directly present in the engine directory
...
- DETECT_OBJS are present and added inside an engine's modules.mk file.
2020-10-03 14:56:36 +02:00
aryanrawlani28
274b8a51a1
TONY: Match consistency with other engines & move enums to new header.
2020-10-03 14:56:36 +02:00
aryanrawlani28
f3b9477893
ENGINES: ALL: Add header guards for the new detection-header files.
2020-10-03 14:56:36 +02:00
aryanrawlani28
fea29b04ac
BASE: PLUGINS: Add a plugin suffix only if it is available
2020-10-03 14:56:36 +02:00
aryanrawlani28
7615f37698
BASE: PLUGINS: Add detection tables header file when getting static plugins.
2020-10-03 14:56:36 +02:00
aryanrawlani28
11f46399b6
GIT: Add detection_tables header to .gitignore
...
- It is generated by configure and works similiarly to plugins_table.
2020-10-03 14:56:36 +02:00
aryanrawlani28
2ee4cd2878
CONFIGURE: Add functionality for detection modules for each engine
...
- In engines.mk, add another module "enginename/detection"
- This module is always added, regardless if the engine is enabled or not.
- Remove the array which helped out when each individual engine port was being added over.
2020-10-03 14:56:36 +02:00
aryanrawlani28
78dd712a1c
PARALLACTION: Adapt to new detection modules and misc changes.
...
- Move common enums into detection_enums.h
- Make a new module for detection. See previous commit notes for more info.
2020-10-03 14:56:36 +02:00
aryanrawlani28
8189a05316
ENGINES: ALL: Adapt to changes for new plugins by defining a new detection module
...
For each engine:
- Make a new folder detection
- Move detection-related files inside the folder
- Add a new module "enginename/detection"
- Add DETECT_OBJS here
- Adjust the normal engine module to remove detect_objs
- Adjust every file for the new changes.
2020-10-03 14:56:36 +02:00
aryanrawlani28
e16ec08d8b
BASE: DETECTION: Use correct header file
2020-10-03 14:56:36 +02:00
aryanrawlani28
5f5363f03b
BASE: MAIN: Load/Unload detection plugin for UncachedPluginMan as/when needed.
...
- Used only in context of UncachedPluginMan
- Always load on startup
- When starting a game, unload all other MetaEngines except the one needed.
2020-10-03 14:56:36 +02:00
aryanrawlani28
8dfaf6cc0e
BASE: PLUGINS: Add support for detection plugins to be loaded on demand.
...
- Mainly used for UncachedPluginManagers.
- CachedPluginManagers will not handle these, as metaengines will always be available in memory.
2020-10-03 14:56:36 +02:00