Commit Graph
688 Commits
Author SHA1 Message Date
Eugene Sandulenko 7ff34bc9ec PLUGINS: MetaEngineStatic -> MetaEngineDetection 2020-10-11 23:14:39 +02:00
Eugene Sandulenko 7ea6781043 PLUGINS: PLUGIN_TYPE_METAENGINE -> PLUGIN_TYPE_ENGINE_DETECTION 2020-10-11 23:12:32 +02:00
Thierry Crozat 233adb3cbd SWORD25: Fix crash in non-extracted version
This was a regression from commit 6d00724. The game was crashing
right at the start.
2020-10-07 11:45:24 +01:00
Eugene Sandulenko 82aaf4262c SWORD25: Fixed language selection in the extracted version 2020-10-07 12:28:16 +02:00
Eugene Sandulenko 010404a7f3 SWORD25: Process Windows paths in extracted version 2020-10-07 11:51:05 +02:00
Eugene Sandulenko fd556c9b80 SWORD25: Added debug output 2020-10-07 11:29:33 +02:00
Eugene Sandulenko 6d0072475f SWORD25: Make the extracted version working
Our FSDirectory Archive behaviour differs from other Archive-based
classes such as Zip. It returns only files, while the archivers
return whole paths. Thus, we have to use custom code for pattern-based
queries which Lua code uses extensively
2020-10-07 01:40:03 +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 a56dc094b9 ENGINES: ALL: Move detection_enums -> detection.h
- Cleans up headers quite a bit.
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 f3b9477893 ENGINES: ALL: Add header guards for the new detection-header files. 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 0880ab9357 SWORD25: Split detection code & adapt to new plugins. 2020-10-03 14:56:36 +02:00
antoniou 1e661b806c SWORD25: CONFIGURE: add theoradec dependency
Without it the game's videos and music/sound won't play and dialogue will skip fast

Theoradec dependency includes the dependency on vorbis (vorbisdec or tremor) due to our checks in the main configure file
2020-07-27 10:12:07 +03:00
Eugene Sandulenko b53a7db0da ALL: Switch to Common::hypotenuse() 2020-06-06 15:08:52 +02:00
mataniko 581a6ec7d6 JANITORIAL: Rename kSupportsRTL to kSupportsReturnToLauncher 2020-05-12 10:36:38 +02:00
Thanasis Antoniou f68d0d7d36 SWORD25: Convert ANSI source files to UTF-8
Gets rid of VS Studio's warnings about illegal characters
2020-04-18 10:24:22 +03:00
Paul Gilbert a00e44ba6c ENGINES: Merge saveGameState virtual methods into a single one 2020-02-16 15:44:28 -08:00
Paul Gilbert 0d0191fb44 SWORD25: Refactor to use Engine debugger 2020-02-16 13:07:19 +02:00
Bastien Bouclet c115c33b1f SWORD25: Add override keywords 2020-02-09 12:43:16 +01:00
Eugene Sandulenko c79fb58186 SWORD25: Added override keywords 2020-02-06 23:46:47 +01:00
Paul Gilbert 5b80320525 ENGINES: Adding override keyword to hasFeature methods 2020-02-04 20:04:11 -08:00
Eugene Sandulenko 5dd49de0b3 SWORD25: Add override keywords 2020-01-31 14:47:01 +01:00
D G Turner 058fa35d6f SWORD25: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-11-30 23:57:47 +00:00
Bastien Bouclet 4b42112721 ENGINES: Add an engine ID to all the engines 2019-11-03 11:43:00 +01:00
Nipun Garg c1f029c6dc COMMON: Move Lua into Common and make it into...
an engine feature
2019-08-13 10:18:02 +02:00
Cameron Cawley 090588fb41 SWORD25: LUA: Remove direct use of ctype.h functions 2019-07-24 22:47:40 +03:00
Fedor Antokhin acb3edb601 Sword25: image trace on quick cursor changes fix 2019-04-09 21:14:23 +03:00
Bastien Bouclet 9a4c0ae281 ENGINES: Normalize the getName() result of metaengines
Also-By: Matthew Hoops <clone2727@gmail.com>
2018-12-10 06:47:27 +01:00
D G Turner 3d7bb383db SWORD25: Fix Debug Console Activation via CTRL-d. 2018-10-17 15:01:12 +01:00
Colin Snover 81f78d4ddf BLADERUNNER: Remove use of C99 math
C++ math functions are overloaded so operate using single-precision
when receiving a float input. The C standard library on FreeMiNT
does not fully support C99 math so use of sqrtf, sinf, etc.
instead of the C++ API does not work.
2018-08-26 15:33:44 +03:00
Colin Snover 6af0c77b5a SWORD25: Remove use of C99 sqrtf
C++ sqrt is overloaded so operates using single-precision when
receiving a float input. The C standard library on FreeMiNT does
not fully support C99 math so use of sqrtf instead of sqrt(float)
does not work.
2018-08-26 15:33:44 +03:00
Adrian Frühwirth e45a0ce3da SWORD25: Fix otherwise unused variable not guarded by USE_VORBIS
This silences a gcc warning when compiling with -Wunused-variable.
2018-05-07 09:30:00 +02:00
Adrian Frühwirth fd4f9c1f2c JANITORIAL: Fix whitespace 2018-04-18 20:18:05 +02:00
Adrian Frühwirth b17cac8029 JANITORIAL: Fix typos 2018-04-18 20:18:05 +02:00
Adrian Frühwirth 0524ff6e8d JANITORIAL: Silence GCC 7 fallthrough warnings 2018-03-23 18:34:17 +01:00
Colin Snover 87285ef609 SWORD25: Fix possible redefinition of FLT_EPSILON 2017-11-17 22:47:59 -06:00
D G Turner 5199f9d080 SWORD25: Suppress GCC Cast Qualification Warnings.
Since lua_pushlightuserdata and lua_touserdata operate on (void *)
values, it is tricky to fix these warnings "correctly" without looking
at invasive changes to a significant amount of Lua internal code.

Since these pointers to consts are already being recast to drop the
const qualifications, then removing the const on the underlying value
declaration does not further expose this to change and stops the
compiler warnings associated with this.

Anyone with a better fix for this can restore the const
qualifications later.
2017-11-12 20:55:59 +00:00
Bastien Bouclet 443211d9ff SWORD25: Add a constructor to initialize SoundHandle members
Fixes #7018
2017-11-11 13:26:22 +01:00
Bastien Bouclet 08f9e05b15 SWORD25: Fix leaking the save thumbnail surface 2017-11-11 13:26:22 +01:00
Colin Snover 432fd522d2 ENGINES: Remove default1x scaler flag
This flag is removed for a few reasons:

* Engines universally set this flag to true for widths > 320,
  which made it redundant everywhere;
* This flag functioned primarily as a "force 1x scaler" flag,
  since its behaviour was almost completely undocumented and users
  would need to figure out that they'd need an explicit non-default
  scaler set to get a scaler to operate at widths > 320;
* (Most importantly) engines should not be in the business of
  deciding how the backend may choose to render its virtual screen.
  The choice of rendering behaviour belongs to the user, and the
  backend, in that order.

A nearby future commit restores the default1x scaler behaviour in
the SDL backend code for the moment, but in the future it is my
hope that there will be a better configuration UI to allow users
to specify how they want scaling to work for high resolutions.
2017-10-07 12:30:29 -05:00
Bastien Bouclet ddac55699d SWORD25: Fix leaking the lua state MemoryWriteStreamDynamic buffer 2017-09-22 07:06:20 +02:00
Bastien Bouclet 9c2cfee4e5 SWORD25: Fix leaking the save thumbnail MemoryWriteStreamDynamic 2017-09-22 07:06:20 +02:00
Torbjörn Andersson 665f5c99b2 JANITORIAL: Silence some more GCC 7 fall through warnings
I think these are the last one that were already flagged as being
deliberate.
2017-08-06 16:54:38 +02:00
Torbjörn Andersson a57c5b385d SWORD25: Increase buffer length to silence GCC 7 warning 2017-08-06 16:42:40 +02:00
Torbjörn Andersson 3d8d5541dc JANITORIAL: Silence GCC 7 fall through warning 2017-08-06 16:40:42 +02:00
Eugene Sandulenko 940b2a20f1 Revert "COMMON: Change way the Singleton instances are instantiated"
This reverts commit eefa72afa1.

With this patch ConfigManager is broken.
2017-07-10 21:17:41 +02:00
Thierry Crozat eefa72afa1 COMMON: Change way the Singleton instances are instantiated
This fixes tons of warnings with clang from a recent xcode version on
macOS (and possibly other systems) complaining that an instantiation
of _singleton is required but no definition is available.
2017-07-10 21:11:20 +02:00
Willem Jan Palenstijn c3d533a72b SWORD25: Use direct integer index into indexTbl
This matches the behaviour of the Pluto rewrite Eris, and avoids
casting the integer indices to void *.

I verified this code by running this method in parallel with the current
lightuserdata/void* approach and asserting the retrieved objects were
identical when loading a savegame.
2017-01-28 18:47:11 +01:00
D G Turner 5fbb4fc6a0 SWORD25: Fix Warnings about Copy Constructor Failing to Call Base Class. 2017-01-16 09:57:50 +00:00