ScummVM-Translations
f00f76fe3c
I18N: Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: ScummVM/scummvm
Translate-URL: https://translations.scummvm.org/projects/scummvm/scummvm/
2021-03-25 01:15:46 +00:00
Thierry Crozat
0a4460ba34
AGS: Optimize non-stretched draw
2021-03-25 01:10:45 +00:00
Thierry Crozat
8f8eebc427
AGS: Optimize blitting
...
The check on the mask color is now done before decomposing
the color to its RGB values. This avoids doing the decomposition
for the transparent pixels.
Blitting on a surface with the same pixel format now also
skips the color decomposition and directly copies the color
values.
2021-03-25 01:10:45 +00:00
ScummVM-Translations
f2838bda0d
I18N: Update translations templates
2021-03-24 23:24:30 +00:00
D G Turner
a404c80d41
SCUMM: Fix Memset on Non-Trivial Structure GCC Compiler Warnings
2021-03-24 23:23:46 +00:00
Filippos Karapetis
880eb17b11
NANCY: Remove duplicate chunk
2021-03-25 00:05:22 +02:00
Filippos Karapetis
ef594c7e10
NANCY: Refactor persistent sound loading, and add some nancy2 chunks
...
Now, persistent sounds which do not exist will not be loaded. This allows
nancy2 to progress a bit further now - it now crashes when attempting to
initialize the inventory
2021-03-24 23:26:57 +02:00
Orgad Shaneh
e97fe996f2
DRAGONS: Fix format warning on MinGW64
...
pointer and long are not equivalent. Cast to int.
2021-03-24 22:56:01 +02:00
Martin Gerhardy
d6a747dfa2
TWINE: fixed parts of the holomap rotation
2021-03-24 20:49:01 +01:00
fracturehill
a00cea8e2c
NANCY: Replace default destructor in State
...
Replaced the defaulted destructor in State::State with empty braces since the default was getting marked as noexcept and was causing build errors.
2021-03-24 21:25:04 +02:00
ScummVM-Translations
9a55b55e0d
I18N: Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: ScummVM/scummvm
Translate-URL: https://translations.scummvm.org/projects/scummvm/scummvm/
2021-03-24 18:16:16 +00:00
fracturehill
4773d6c4ea
NANCY: Remove explicit enum names from detection.cpp
...
Removed the explicit Nancy::GameType enum names from detection.cpp, hopefully fixing the build errors.
2021-03-24 20:14:55 +02:00
ScummVM-Translations
60870f8444
I18N: Update translations templates
2021-03-24 16:21:00 +00:00
fracturehill
1907b5f741
NANCY: Remove static members of GraphicsManager
...
Made GraphicsManager's static members non-static.
2021-03-24 17:20:46 +01:00
fracturehill
16c083d015
NANCY: Add warnings for unknown dependency types
...
Added the two unknown dependency types to the ActionRecord::DependencyType enum and added warnings for when they get used.
2021-03-24 17:20:46 +01:00
fracturehill
eb2fe847d7
NANCY: Improve code readability in actionmanager.cpp
...
Added a local variable to the debug output section of ActionManager::addNewActionRecord() to improve code readability.
2021-03-24 17:20:46 +01:00
fracturehill
c846247909
NANCY: Fix viewport glitch
...
Fixed a rare glitch where the viewport would get cleared with a solid color when changing the frame.
2021-03-24 17:20:46 +01:00
fracturehill
10a1d6e3a7
NANCY: Add vorbis dependency
...
Added a missing vorbis dependency to configure.engine
2021-03-24 17:20:46 +01:00
fracturehill
cb63f50f71
NANCY: Remove underscore from struct member names
...
Removed the underscores from the names of a couple of struct members that were erroneously added a few commits back.
2021-03-24 17:20:46 +01:00
fracturehill
0d4516c897
NANCY: Initialize sound channel types from a table
...
Added a static table of all nancy1 sound channel types, and changed initSoundChannels() so that it reads from the table instead of manually initializing channels one by one.
2021-03-24 17:20:46 +01:00
fracturehill
0d8d31ffd0
NANCY: Formatting fixes
...
Added spaces after the = operator in every declaration of a pure virtual or defaulted function.
2021-03-24 17:20:46 +01:00
fracturehill
56c005ef2c
NANCY: Mark functions and iterators as const
...
Added the const keyword to several auto & iterators inside for loops, as well as to a number of class member functions.
2021-03-24 17:20:46 +01:00
fracturehill
bfc6586f78
NANCY: Add reserve() calls before initializing arrays
...
Added calls to reserve() before initializing most arrays in the engine to reduce unnecessary allocations when pushing back elements one by one.
2021-03-24 17:20:46 +01:00
fracturehill
99da486454
NANCY: Add dependencies to configure.engine
...
Added the 16bit and highres dependencies which were previously missing in configure.engine.
2021-03-24 17:20:46 +01:00
fracturehill
0c5b6a0244
NANCY: Formatting fixes
...
Fixed a couple of else statements that were not following the formatting conventions and a double semicolon in recordtypes.cpp.
2021-03-24 17:20:46 +01:00
fracturehill
86e656f709
NANCY: Remove static members of SliderPuzzle
...
Moved the static members of SliderPuzzle that were used to save the puzzle's state to a struct inside Scene. Removed the SliderPuzzle::synchronize() function and incorporated its logic into Scene::synchronize(). Also fixed a possible use of uninitialized variables inside the synchronization code.
2021-03-24 17:20:46 +01:00
fracturehill
a2efd6e867
NANCY: Formatting fixes
...
Added a missing newline at the end of telephone.cpp, removed an unnecessary newline in nancy.cpp, and corrected a couple of end of namespace comments.
2021-03-24 17:20:46 +01:00
fracturehill
bcd011eb79
NANCY: Reduce calls to getBasePtr() when resizing surface
...
Replaced most calls to getBasePtr() inside GraphicsManager::copyToManaged() with simpler pointer arithmetic to make it less costly when copying double size images.
2021-03-24 17:20:46 +01:00
fracturehill
646dfeb035
NANCY: Use macros in detection table
...
The detection table now uses the AD_ENTRY1s macro where it is applicable.
2021-03-24 17:20:46 +01:00
fracturehill
af28b38f4b
NANCY: Properly read early video format frame IDs
...
Chunk format 1 video (found in The Vampire Diaries) contains frame IDs as well as frame names. Those were previously skipped over, but are now getting read correctly.
2021-03-24 17:20:46 +01:00
fracturehill
8d774ba1e3
NANCY: Add POTFILES and mark translatable strings
...
Added a POTFILES that was previously missing. Marked the ringing string in telephone.cpp and the keymapper descriptions in input.cpp as translatable.
2021-03-24 17:20:46 +01:00
fracturehill
36883885f0
NANCY: Move ActionRecord::finishExecution() outside header file
...
Added an actionrecord.cpp file and moved the definition of ActionRecord::finishExecution() inside it.
2021-03-24 17:20:46 +01:00
fracturehill
e9adea4c4e
NANCY: Formatting fixes
...
Almost every file in the engine code was using spaces instead of tabs, which is now fixed. Also added some missing spaces in a couple of files.
2021-03-24 17:20:46 +01:00
fracturehill
54bdb420b0
NANCY: String reading fixes
...
Added a \0 to every instance of a char buffer being loaded into a Common::String. Fixed an instance of a large buffer getting repeatedly allocated and deleted inside a for loop. Fixed an instance of a small char buffer being unnecessarily allocated on the heap. Also added a readFilename() convenience function to util.h for reading 8-character filenames found in the data.
2021-03-24 17:20:46 +01:00
fracturehill
6728c96e68
NANCY: Add underscore to class member names
...
Fixed many instances of class member names not beginning with an underscore.
2021-03-24 17:20:46 +01:00
fracturehill
3e3a8cd5c7
NANCY: Properly mark overriden virtual functions
...
Added the override keyword to a couple of virtual functions that were missing it.
2021-03-24 17:20:46 +01:00
fracturehill
abe1d47137
NANCY: Replace itoa with U32String::itoa
...
Replaced all instances of itoa with the implementation inside U32String, hopefully fixing a bunch of compiler errors.
2021-03-24 17:20:46 +01:00
fracturehill
8cfd4dba23
NANCY: Replace malloc with new
...
Replace an malloc used in iff.cpp with a new operator, fixing a warning about a potential nullptr return.
2021-03-24 17:20:46 +01:00
fracturehill
6be4617e26
NANCY: Make Textbox::getInnerHeight() const
...
Textbox::getInnerHeight() makes no changes to its class so it has now been properly marked as const.
2021-03-24 17:20:46 +01:00
fracturehill
b6df945ae1
NANCY: Formatting fixes
...
Fixed a couple of poorly indented lines and a missing newline at the end of a file.
2021-03-24 17:20:46 +01:00
fracturehill
a7373264f2
NANCY: Pass string arguments by reference
...
Fixed a couple instances of string function arguments not being passed by reference.
2021-03-24 17:20:46 +01:00
fracturehill
a286a287f2
NANCY: Replace NanEngine macro
...
Replaced the nonstandard NanEngine macro with a proper pointer to the current NancyEngine instance.
2021-03-24 17:20:46 +01:00
fracturehill
e324adf05f
NANCY: Code cleanup
...
Did some cleanup of the engine, mostly focusing on the NancyEngine class. Reordered several classes' members, removed unused functions, edited comments, and renamed arfactory_v1.cpp to arfactory.cpp.
2021-03-24 17:20:46 +01:00
fracturehill
15153a5533
NANCY: Filter input between states
...
Added code to filter out inputs that began in a different state; e.g. if the mouse was pushed and held down in a previous state, the button up event won't fire. This fixes the issue where dismissing the intro logo would accidentally trigger a click inside the scene viewport.
2021-03-24 17:20:46 +01:00
fracturehill
a42de3037f
NANCY: Wait for video end during dialogue
...
Primary video now waits for the NPC video to end before changing scenes/playing a response sound. This usually adds a small delay at the end of a dialogue line, making the conversation sound more natural.
2021-03-24 17:20:46 +01:00
fracturehill
a16c9b90ae
NANCY: Clean up graphics loop
...
Removed some leftovers from an older version of the graphics manager and made the drawing code only loop once through all render objects instead of twice.
2021-03-24 17:20:46 +01:00
fracturehill
b3d06c327e
NANCY: Add savefile version checks
...
Savefiles are now versioned (breaking previously made saves). Right now the savefile version is global across all supported games, but this will probably change as more games are added.
2021-03-24 17:20:46 +01:00
fracturehill
b7cdb2ee91
NANCY: Implement loading saves from launcher
...
Reordered some of the engine and scene boot code and implemented loading directly from the launcher.
2021-03-24 17:20:46 +01:00
fracturehill
6f10d41559
NANCY: Fix Secrets Can Kill textbox colors
...
Fixed the textbox colors in Secrets Can Kill, which got broken when adding support for multiple pixel formats.
2021-03-24 17:20:46 +01:00
fracturehill
653239aa26
NANCY: Clip viewport-relative objects
...
RenderObjects marked as viewport-relative are now constrained within the bounds of the viewport
2021-03-24 17:20:46 +01:00