Commit Graph

628 Commits

Author SHA1 Message Date
Eugene Sandulenko
67c01ef9bd
NEVERHOOD: Fix POTFILES 2023-03-17 15:55:12 +01:00
Eugene Sandulenko
2316887609
HPL1: Remove unused translation.h includes 2023-03-17 15:51:01 +01:00
Eugene Sandulenko
f40455c74c
NEVERHOOD: Added missing override keyword 2023-03-05 23:46:10 +01:00
Vladimir Serbinenko
6b97f562d4 NEVERHOOD: Remove the check for subtitle presence
Originally intended for the case when subtitles could only be put
in $game/language. Other places like $extra_path are not taken into
account properly. Even worse it gets very hairy when extra_path is
changed. This is used only to disable subtitle setting, so just always
make subtitle buttons available.
2023-03-02 19:11:42 +01:00
Vladimir Serbinenko
d3f87c97ee NEVERHOOD: Skip creating hotbox for "making of" is it's unavailable.
Otherwise it  creates an invisible button that can still be clicked and
results in a button press animation followed by a brief read screen.

Reported by: -=CHE@TER=-
2023-02-02 19:34:45 +03:00
Vladimir Serbinenko
31618a13f5 NEVERHOOD: Add ResourceMan::exists helper function
This is essentially same ads attempting to open the file in question but
without incurring I/O cost.
2023-02-02 19:34:45 +03:00
Vladimir Serbinenko
0d3f068db3 NEVERHOOD: Remove outdated comment 2023-02-02 19:34:45 +03:00
Vladimir Serbinenko
46a18e0d43 NEVERHOOD: Fix crash on NHC-only resources
This happens when attempting to play making of on japanese version when
NHC is loaded.
2023-02-02 19:34:45 +03:00
Vladimir Serbinenko
750e2060bf NEVERHOOD: Fix crash on expiring animated sprite backref
Thanks a lot to -=CHE@TER=- for discovering this and excellent debugging
work.
2023-01-29 07:19:36 +01:00
Vladimir Serbinenko
e095d15a37 NEVERHOOD: Fix loading nhc from <extrapath>/language 2023-01-28 17:39:56 +01:00
Vladimir Serbinenko
bec73d7ec0 NEVERHOOD: Fix wrong hints in Japanese version
Reported by: Rigel
2023-01-28 17:39:51 +01:00
Vladimir Serbinenko
8f775a4cc2 NEVERHOOD: Reload BOBBY puzzle when changing languages with NHC.
This has slightly different logic that original NHC override library.
Original library attempts to rotate the solution and current state by the
same amount. We do the following:

1. If correct solution didn't change, load as usual
2. If correct solution changed and puzzle was already solved, set both current
   and correct solution to the new correct solution
3. If correct solution changed and puzzle was not already solved, reinit the
   puzzle
2023-01-20 12:07:23 +01:00
Vladimir Serbinenko
04bc7f983a NEVERHOOD: Allow loading NHC from extrapath
We can't use SearchMan directly in dialogs.cpp as the engine may not be
running when dialogs.cpp is called
2023-01-19 19:30:06 +03:00
Vladimir Serbinenko
1289b71437 NEVERHOOD: Fix crash on expiring surfaces.
We postpone actual drawing until the frame finishes. At this point some of
the surfaces might have been freed and the pointers are no longer valid.
Use reference counting to ensure that queue surfaces are still valid

Thanks to -=CHE@TER=- for reporting and providing the triggering save
and instructions.
2023-01-19 19:29:40 +03:00
Vladimir Serbinenko
3d3a02483b NEVERHOOD: Fix subtitle outline color 2023-01-18 01:17:07 +03:00
Vladimir Serbinenko
de56f3f6be NEVERHOOD: Implement cheat framework and "itsshowtime" cheat 2023-01-18 01:17:07 +03:00
Vladimir Serbinenko
0ca10425b6 NEVERHOOD: Offset fonts when using left-centered nhc translations 2023-01-18 01:17:07 +03:00
Vladimir Serbinenko
e70e91a8e2 NEVERHOOD: Add leftmost and rightmost pixel outline in subtitles 2023-01-18 01:17:07 +03:00
D G Turner
2e60cc1aac NEVERHOOD: Fix Mismatched Tags GCC Compiler Warnings 2023-01-02 18:35:04 +00:00
Eugene Sandulenko
3685eb6668
NEVERHOOD: Added I18N comment 2022-12-31 23:46:51 +01:00
Eugene Sandulenko
04c6921588
NEVERHOOD: Update POTFILES 2022-12-31 20:50:57 +01:00
Eugene Sandulenko
2d5c68c075
NEVERHOOD: Removed leftover include 2022-12-31 20:50:57 +01:00
Vladimir Serbinenko
41aa78b8a6 NEVERHOOD: Add ability to support for repeating useful Willie's hint 2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
7bb97c18d0 NEVERHOOD: Make subtitles being able to turn off/on 2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
64fb44790e NEVERHOOD: Enable subtitle on/off if .nhc is available 2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
5d6ba18008 NEVERHOOD: Support subtitles for sprites 2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
ffdf90df45 NEVERHOOD: Allocate more space for font surface
NHC-based Russian translation has extra unused space in the sprite.
This causes the code to skip drawing sprite on the surface altogether.
The simplest solution is to simply allocate a bit more with only
downside is a small increase in memory footprint
2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
f4da2d054a NEVERHOOD: Add drawDoubleSurface2Alpha 2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
03a59a2953 NEVERHOOD: Support blitting with alphaColor != 0 2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
feb1d77ec7 NEVERHOOD: Show subtitles in smackerplayer 2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
97b500643e NEVERHOOD: Add subtitle player 2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
031c929681 NEVERHOOD: Add loading of subtitle font 2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
103bb43ab2 NEVERHOOD: Load nhc file 2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
c0455314c9 NEVERHOOD: Add NHC selection item 2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
69aa08d531 NEVERHOOD: Move game options from advanced options to custom widget
This will allow to add NHC drop-down.
2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
552420ec31 NEVERHOOD: Add support for NHC patch archives 2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
0adf22278b COMMON: Uplift SafeMutexedSeekableSubReadStream to common 2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
fdccec381d NEVERHOOD: Make most of fields of ResourceFileEntry private 2022-12-31 20:47:10 +01:00
Vladimir Serbinenko
c5c44bb255 NEVERHOOD: Show Japanese overwrite prompt if running Japanese version 2022-12-31 18:43:16 +01:00
Walter Agazzi
d6100aa891 NEVERHOOD: Remove "Chronicles" from detection name
"Chronicles" is used on the title screen but never on other media
2022-12-29 18:04:37 +02:00
Vladimir Serbinenko
0effcbeb24 NEVERHOOD: Disable Hall of Records in Japanese version 2022-12-20 17:07:00 +02:00
Vladimir Serbinenko
1425b701d8 NEVERHOOD: Add extra Japanese credits 2022-12-20 17:07:00 +02:00
Vladimir Serbinenko
a96a72f04a NEVERHOOD: Fix notes used for Japanese version 2022-12-20 17:07:00 +02:00
Eugene Sandulenko
fb7095f5a4
COMMON: Move all compression-related files to a separate directory 2022-12-01 11:53:02 +01:00
Donovan Watteau
29004bee91 NEVERHOOD: Fix MSVC C4309 enum sign warning 2022-11-29 01:37:55 +01:00
Vladimir Serbinenko
c48989abdc NEVERHOOD: Enable Japanese version.
It was choking on missing "Making of". I tested by going through
first couple of puzzles and main menu. Menu is fully translated
but the puzzles are textless so far.
2022-11-19 16:24:31 +02:00
Cameron Cawley
37ee0ca0ef NEVERHOOD: Move the engine options into the MetaEngine subclass 2022-11-16 23:58:54 +01:00
Hubert Maier
f73e08a99f
NEVERHOOD: Correct spelling mistake
neccessary -> necessary
2022-10-27 15:56:14 +02:00
Cameron Cawley
f3b094e53f ENGINES: Change the MetaEngineDetection interface to match MetaEngine 2022-07-23 23:31:58 +02:00
Cameron Cawley
4b83463bbb NEVERHOOD: Use ADExtraGuiOptionsMap for the options 2022-07-07 23:46:04 +03:00