Commit Graph
1190 Commits
Author SHA1 Message Date
lolbot-iichan e97b1e560d WINTERMUTE: Check keyboard state array index
vKeyToKeyCode() method was unsafe if vkey >= KEYSTATES_ARRAY_SIZE was
provided, fixed
2018-08-23 11:33:13 +02:00
lolbot-iichan 52b4206771 WINTERMUTE: Support more key codes for mapping
some keypresses were producing warnings because key codes were not
listed in
mappings, added more key codes
2018-08-23 11:33:13 +02:00
lolbot-iichan 20816b9f90 WINTERMUTE: Fix printable flag for keyboard state
_currentPrintable was set depending on _currentCharCode, which is 112
for both F1 and 'p' keys, fixed after detailed research on which keys
should be considered printable
2018-08-23 11:33:13 +02:00
Paul Gilbert 11e33ba3fc JANITORIAL: Removing trailing spaces after int casts 2018-08-17 20:30:20 -07:00
Cameron Cawley 7730fbb36e WINTERMUTE: Return Common::kUnsupportedColorMode if the required screen format is unavailable 2018-07-29 09:38:12 +02:00
David Fioramonti 8e1f712327 WINTERMUTE: Use degree conversion common math funcs 2018-07-03 23:08:48 +01:00
Bastien Bouclet 61f9398b04 Merge pull request #1187 from bgK/detection-refactor-unknown
ENGINES: Return unknown game variants with the list of detected games
2018-05-28 18:43:15 +02:00
David Fioramonti 1606d6688d WINTERMUTE: Update deg2rad usage 2018-05-20 11:21:06 +01:00
Adrian Frühwirth 98067b0fe6 WINTERMUTE: Properly fix handling of Ogg Vorbis resources 2018-05-19 21:03:15 +02:00
Cameron Cawley d022572f16 WINTERMUTE: Fix loading Vorbis files
Fixes Trac#10533
2018-05-19 16:31:57 +00:00
JenniBee 5090b6cbbb WINTERMUTE: Add flag for games using low-spec resources. 2018-05-17 18:08:18 +00:00
Bastien Bouclet cf1ebf2951 ENGINES: Add unknown game variants to the game detector results 2018-05-10 09:04:23 +02:00
Adrian Frühwirth 9702288338 JANITORIAL: Fix indentation 2018-05-07 23:09:02 +02:00
Bastien Bouclet ae6b0cfdef WINTERMUTE: Push down the AD includes 2018-05-01 12:48:05 +02:00
Adrian Frühwirth 9bee9e1ba6 JANITORIAL: Fix whitespace 2018-04-19 12:08:31 +02:00
Adrian Frühwirth cf96f3f709 JANITORIAL: Indent GFXTransaction code blocks 2018-04-15 16:45:25 +02: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
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
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
D G Turner 4f1cbddbc3 WINTERMUTE: Fix Unused Variable Compiler Warning. 2017-01-14 03:49:02 +00:00
Hubert Maier 0003048fdd WME: Add three fangames from jennibee
- DFAF Adventure
- Dreamcat
- Open Quest

Freely available from https://jennibee.itch.io/ these are three (very short) fangames.
All of those games come in three packages (Linux, OSX, Windows32) but all the packages differ only in the platform .exe, the data.dcp stays the same, so the entry is limited to one.

The packages even come with ScummVM 1.8.1

All three games tested and working (didn't solve the Open Quest final riddle though)
One script runtime error encountered in DFAF Adventure on examining the "speaker", other than that fine.

Feel free to give hints on what i should change.
2016-12-31 18:07:56 +02:00
Eugene Sandulenko f1dd84fdf8 WINTERMUTE: Fix references to TransparentSurface templates 2016-12-26 18:54:44 +01:00
Eugene Sandulenko 8477c4beb2 Merge pull request #874 from tobiatesan/fix_getfilename_cr5
WINTERMUTE: Fix PathUtils and add workaround for mixed separators
2016-12-26 16:15:38 +01:00
Tobia Tesan a14d3865ad WINTERMUTE: Use PathUtil::normalizeFileName in correctSlashes 2016-12-26 15:09:34 +01:00
Ryper_Zsolt 257d7e8fe0 WINTERMUTE: Don't mix different path separators.
Fixes #7068
2016-12-26 15:09:16 +01:00
Tobia Tesan b7bd199193 WINTERMUTE: Call BILINEAR/NEAREST rotoscale and scale according to game option 2016-12-26 12:29:06 +01:00
Tobia Tesan 42531fb71a WINTERMUTE: Add _bilinearFiltering attribute to BaseGame 2016-12-26 12:20:56 +01:00
Tobia Tesan a496467fbe WINTERMUTE: Add "Sprite bilinear filtering" menu option 2016-12-26 12:20:56 +01:00
Tobia Tesan 72376681af WINTERMUTE: Try to "correctly" handle dir paths
I put scare quotes around "correctly" because I can't swear this is the
intended behaviour of the original interpreter.

I don't think accessing filenames that end with / in the .DCPs is even
defined behaviour, so this is a best guess.
2016-12-26 12:05:41 +01:00
Tobia Tesan 9339490236 WINTERMUTE: only access -1th char of string if length > 0 in getFileName
Fixes #6594
2016-12-26 12:02:56 +01:00
Eugene Sandulenko 915c6bff2e Merge pull request #732 from tobiatesan/fix_6594
WINTERMUTE: Log warning if addSound is called with empty filename
2016-11-12 12:13:47 +01:00
Eugene Sandulenko dead4aa014 JANITORIAL: Remove trailing spaces 2016-10-09 14:59:58 +02:00
Eugene Sandulenko 3537e46d4a WINTERMUTE: Enable supported games for the release 2016-10-07 11:57:55 +02:00
Einar Johan Trøan Sømåen d077fc0fc7 WINTERMUTE: Change in-engine thumbnail-defaults.
Instead of the engine-based 0, we now default to
kThumbnailWidth/kThumbnailHeight2, as values of 0
here disable thumbnails in the engine.

TODO: Perhaps consider looking into always running the
thumbnail-generation even if the sizes are 0?
2016-10-07 01:35:17 +02:00
Einar Johan Trøan Sømåen 1eca88cb39 WINTERMUTE: Don't crop UIEdit strings to negative sizes
If _maxLength was -1, we would end up with a 0-size allocation,
and a write that starts right before it, which gives odd results.
2016-10-07 00:19:58 +02:00
Einar Johan Trøan Sømåen 5348327da6 WINTERMUTE: Add detection for german version of 5MA, Fixes #6850 2016-10-06 00:12:53 +02:00
Eugene Sandulenko fab199d37e JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
Filippos Karapetis f629a32819 WINTERMUTE: Fix compilation with MSVC
Change the way that EXTENDED_DEBUGGER_ENABLED is checked. The way it
was used, it triggered a fatal error C1017
2016-08-22 13:06:20 +03:00
Eugene Sandulenko 6f8075833f WINTERMUTE: Another fix for c++11 compilation 2016-07-24 23:15:44 +03:00
Eugene Sandulenko 04c0b7360c WINTERMUTE: Fix compilation 2016-07-24 23:09:43 +03:00
Eugene Sandulenko 5f6c79db03 Merge pull request #687 from tobiatesan/wme_debugger_rewrite
WME: Debugger for WME, 2016 rewrite
2016-07-24 23:03:19 +03:00
Hubert Maier 751bdc10b0 Fix Wintermute copyright sign 2016-05-29 15:16:05 +03: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 8156201f28 WINTERMUTE: Remove redundant check.
If new() was unsuccessful, then we should bail out immediately,
but we always assume we have enough memory for ScummVM.
2016-05-14 11:48:33 +02:00
Eugene Sandulenko 1b24079f71 WINTERMUTE: Add missing parameter 2016-05-08 23:25:16 +02:00
Einar Johan Trøan Sømåen 7af4a1a05f Merge pull request #728 from tobiatesan/fix_ogg
WINTERMUTE: Correctly find .ogg version of .wav files
2016-04-23 11:42:33 +02:00
Tobia Tesan cbd5946ad8 WINTERMUTE: Log warning if addSound is called with empty filename 2016-04-01 15:25:27 +02:00
Tobia Tesan b981edd1f7 WINTERMUTE: Turn AnsiString into Common::String in PathUtil
AnsiString is already typedefd to Common::String
2016-03-31 17:06:13 +02:00
Tobia Tesan 9c074fd163 WINTERMUTE: Remove commented lines from dctypes 2016-03-31 17:06:08 +02:00