768 Commits

Author SHA1 Message Date
Thierry Crozat
2b00829f09
Merge pull request #1041 from criezy/variadic-undefined
Fix undefined behaviour in variadic functions
2017-11-10 22:20:54 +00:00
Colin Snover
b0eb5caa51 LURE: Stop taking address of unaligned pointer
While usage of these pointers was technically safe because they
were read through an alignment-aware API, taking the address of an
unaligned pointer was generating warnings in Clang, and is not
strictly necessary here. This change solves the warning and also
protects this code from any future change that might cause it to
start reading unsafely.
2017-11-07 22:57:33 -06: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
Thierry Crozat
448779ad8e LURE: Fix undefined behaviour in variadic functions
Passing a type that undergoes default argument promotion as last
argument of a variadic function results in undefined behaviour.
2017-10-06 01:01:16 +01:00
Paul Gilbert
898b79f8dc LURE: Adjust switch fall through comments 2017-08-06 22:20:16 -04:00
Torbjörn Andersson
70a2ca8b7d JANITORIAL: Silence more GCC 7 warnings
All these fall through were marked as deliberate, so again I've only
changed the comment to silence GCC.
2017-08-06 13:30:51 +02:00
D G Turner
d2a7c296a2 COMMON: Migrate Various Endian Functions to Common from Engine Code.
Thanks to N.E.C <beholdnec@gmail.com> for this.
2017-07-30 22:03:29 +02:00
Eugene Sandulenko
940b2a20f1 Revert "COMMON: Change way the Singleton instances are instantiated"
This reverts commit eefa72afa1978a9dea10f5b1833fcc8f58a3468e.

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
Eugene Sandulenko
6febe656f8 LURE: Added detection for updated Russian version 2017-06-25 23:42:46 +02:00
Ben Castricum
ebaab44cd1 ALL: Leave out instructions for engine data issues 2016-12-08 13:38:56 +01:00
Ben Castricum
55512414dd ALL: Change instructions for engine data file issues
The engine data files should be included in the package, so downloading
may not be the best suggestion. Instead refer to the README.
2016-12-06 14:16:37 +01:00
Ben Castricum
1cf3f50b74 ALL: Unify 'wrong version of engine data' message 2016-12-06 09:38:25 +01:00
Ben Castricum
eb7ffb1e2c ALL: Unify 'corrupted engine data' message 2016-12-06 09:38:19 +01:00
Ben Castricum
e1ec91b69a ALL: Unify 'missing engine data' message 2016-12-05 21:04:50 +01:00
Eugene Sandulenko
33abb6118f ALL: Change main engine header guard defines to <directory>_<engine>_H
Recently we started to use this as new semantics, although in the past
we used simly <engine>_H. Now these guard defines are consistent with
rest of the files which are used in the engines.
2016-05-17 18:21:30 +02:00
Eugene Sandulenko
dd1838a3cb LURE: Fix potential buffer overrun introduced in 8577606 2016-05-16 16:56:57 +02:00
Eugene Sandulenko
dd69e8409e LURE: Safer string manupulation 2016-05-13 23:50:31 +02:00
Eugene Sandulenko
8577606b04 LURE: Safer string manipulation 2016-05-13 09:23:20 +02:00
Ori Avtalion
3564032330 JANITORIAL: Reduce audio header dependencies 2016-04-14 16:10:21 +03:00
Johannes Schickel
0b6befdcc5 ENGINES: Make variable names of AdvancedMetaEngine conform to our guidelines.
_singleid   -> _singleId
_gameids    -> _gameIds
_guioptions -> _guiOptions
2016-03-08 19:01:13 +01:00
Johannes Schickel
4892a83cf6 LURE: Let listSaves return list sorted on slot numbers. 2016-02-25 21:39:45 +01:00
Johannes Schickel
351d8d5d38 LURE: Only request actual save slots in listSaves. 2016-01-26 16:35:30 +01:00
Eugene Sandulenko
0c091f4faa LURE: Add support for Russian version 2016-01-12 23:53:14 +01:00
Paul Gilbert
1ae67bf2a9 LURE: Fix compiler warning 2015-11-16 22:46:36 -05:00
Paul Gilbert
594be43d79 LURE: Fix spelling of Observar in Spanish version 2015-11-16 20:54:17 -05:00
Paul Gilbert
f8b36bf855 LURE: Simplify StringList class 2015-11-16 20:48:01 -05:00
Paul Gilbert
1b81ea16f0 LURE: Remove unused function prototype 2015-06-06 06:59:52 -04:00
Strangerke
ab2d33f0dc LURE: Remove useless parameters in function call 2014-05-29 16:55:06 +02:00
Johannes Schickel
30d64edac4 ALL: Make Debugger command function names conform to our guidelines. 2014-05-27 02:04:08 +02:00
Johannes Schickel
ae4ffe01f0 ALL: Rename Debugger::DCmd_Register to Debugger::registerCmd. 2014-05-27 02:04:08 +02:00
Johannes Schickel
daa8d57a86 ALL: Rename Debugger::DebugPrintf to Debugger::debugPrintf. 2014-05-27 02:04:07 +02:00
Damien
09153039de LURE: Use the mouse pointer for menus on the Wii
Without this, this game is almost unplayable, since the
scrolling menus respond to the slightest tilt of the
Wiimote, typically scrolling from the top straight to the
bottom.  Using a mouse pointer in the menus is much easier.
2014-03-10 19:40:48 +10:30
Johannes Schickel
b03ca0e80a LURE: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
D G Turner
ef85456859 BUILD: Remove need for engine.mk in each engine directory.
Each engine now only has to provide a single configure.engine file
adding the engine into the configure script, which then produces the
required other files automatically.
2013-11-24 00:48:01 +00:00
D G Turner
1ac01d2333 BUILD: Remove need for engine-plugin.h in engines.
This is now generated automatically by the configure script from the
engine directory names.
2013-11-24 00:48:01 +00:00
D G Turner
00c27a28f9 BUILD: Split engines/plugins_table header down to a file per engine.
This is the third and final commit enabling fully pluggable engines.

Now providing an engine folder contains a configure.engine, engine.mk
and engine-plugin.h file, it will be picked up automatically by the
configure script.
2013-11-24 00:48:01 +00:00
D G Turner
d77cf95a18 BUILD: Split engines.mk down to a single file per engine.
This is the second part of allowing engines to be added dynamically.
Each folder in engines/ which must contain a file named "engine.mk"
containing the make definitions for that engine.
2013-11-24 00:48:01 +00:00
D G Turner
aa947c9474 BUILD: Split configure.engines down to a single file per engine.
This is the first part of allowing engines to be added dynamically.
They are placed into a folder in engines/ which must contain a file
named "configure.engine" to add the engine, which is pulled into the
top level configure script automatically.
2013-11-24 00:45:38 +00:00
Torbjörn Andersson
0d14f9d009 LURE: Fix some formatting. 2013-08-08 17:57:58 +02:00
Paul Gilbert
a979ec6c97 LURE: Added explicit comment to switch block fall-through 2013-07-19 23:10:25 -04:00
Torbjörn Andersson
2f0e43bb2e LURE: Fix bad operator in "hotspot" debug command, CID 1004147 2013-06-08 23:27:25 +02:00
Torbjörn Andersson
9f83f9b6f7 LURE: Use correct deallocator, CID 1004041
The memory was allocated with Memory::alloc(), so it should be
freed with Memory::dealloc(), not delete.
2013-06-05 19:38:37 +02:00
Torbjörn Andersson
86721390d2 LURE: Add missing va_end()
CID 1002106
2013-06-01 22:39:31 +02:00
Willem Jan Palenstijn
38ac5854f4 LURE: Fix getNumGroats
This fixes bug #3612682
2013-05-05 13:31:27 +02:00
Matthew Hoops
0031c41db8 COMMON: Change kPlatformPC to kPlatformDOS
"PC" was very ambiguous and now it matches what we show in the GUI.

This also corrects sword2's platform to Windows.
2013-05-02 18:43:10 -04:00
Torbjörn Andersson
621364edae LURE: Fix bounds checking
CID 1003986 and CID 1003990.
2013-04-24 20:50:06 +02:00
Willem Jan Palenstijn
2d1fd3b554 ALL: Fix typo (existant->existent) 2013-02-23 22:07:32 +01:00
vyadh
348378f4a6 LURE: Fix bug #3604370 - ANDROID menus clickable
LURE: Fix bug #3604370 - "LURE: ANDROID, Action item scrolling too sensitive"
2013-02-17 22:11:11 +00:00
Johannes Schickel
89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00