Commit Graph

1026 Commits

Author SHA1 Message Date
Torbjörn Andersson
dfe04491c1 JANITORIAL: Remove unnecessary semicolons 2015-01-21 01:29:22 +01:00
Strangerke
14ab55e9ba HOPKINS: Add a check for another sound related to frames removed in the Polish version. Fix for bug #6591 2014-11-01 12:35:59 +01:00
Strangerke
75198ce17c HOPKINS: Fix a couple of comments 2014-10-29 17:13:16 +01:00
Strangerke
c2951e2594 HOPKINS: Add specific code to handle the butchered Polish version with sync sound 2014-10-29 16:46:33 +01:00
Strangerke
7126374b42 HOPKINS: Rename the parameter of PlayAnimSound to make it meaningful 2014-10-28 18:19:12 +01:00
Filippos Karapetis
176f8209c7 HOPKINS: Remove trailing whitespace 2014-10-28 16:06:48 +02:00
Strangerke
7661b8adfc HOPKINS: Fix the censorship flag (bug #6591) 2014-10-27 16:45:31 +01:00
Thierry Crozat
8774fe2ce0 HOPKINS: Add list of files that contain translatable strings 2014-10-04 01:02:28 +01: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
D G Turner
bee54dc048 HOPKINS: Fix loading of variant COMPUTAN.TXT used by Polish version.
This is the final fix for bug #6590 - "HOPKINS-PL: Crash using computer
in office".
2014-05-17 20:22:19 +01:00
D G Turner
2126bef17a HOPKINS: Further cleanup in ComputerManager class.
Have simplified the parsing of the COMPUTAN.TXT file prior to looking at
supporting the Polish file format variant.

These change should have no functional difference, but improve the code
by removing a set-but-unused bool in the MenuItem structure, fixing a
number of repeated "magic" values to be explicit as various buffer sizes
and replacing usage of strcpy with the safer version from our Common
code etc.
2014-05-17 15:09:46 +01:00
D G Turner
16152cf1ea HOPKINS: Add sanity check to parsing of COMPUTAN.TXT file.
This previously crashed on the Polish version due to a variant file
format causing the parsing to make several invalid memory accesses.

This prevents this crash and any other in future, though it does not
fix the parsing of the variant file format.
2014-05-17 12:16:19 +01:00
D G Turner
71aab5ab1d HOPKINS: Add null termination to byte buffer returned by loadFile().
This shouldn't be a problem, as current client code either must find a
terminator when parsing the byte buffer or have preknowledge of the
buffer size from a file size or fixed call, so the appended null
termination will not cause issues. This change thus allows client code
to add sanity checks to prevent reading off the end of the buffer.
2014-05-17 12:12:19 +01:00
Matthew Hoops
740b6e8fbd IMAGE: Move all ImageDecoders to image/ 2014-02-28 00:27:28 -05:00
Johannes Schickel
d5b21c4036 HOPKINS: Make GPL headers consistent in themselves. 2014-02-18 02:39:35 +01:00
Johannes Schickel
a1628bfa3f HOPKINS: Indent REGISTER_PLUGIN_* for consistency. 2014-02-17 23:02:07 +01:00
Torbjörn Andersson
2b40502503 HOPKINS: Fix bug that could cause the music to stop prematurely
The SoundManager filled the sound handles with zeroes, which made
the mixer confuse them with active sound handle zero. In my case,
this happened to be the intro music, and the music was stopped when
playWavSample() wrongly thought its sound handle was in use.
2014-02-13 00:38:04 +01:00
Strangerke
bd59c19fdf HOPKINS: Remove useless assignation 2014-02-09 20:10:26 +01:00
Strangerke
56664d036f HOPKINS: Reduce the scope of some more variables 2014-02-09 20:06:08 +01:00
Strangerke
c97ce839fd HOPKINS: Reduce the scope of some variables 2014-02-09 11:44:56 +01:00
Strangerke
6bcc8dfee6 HOPKINS: Initialize censorship based on per-engine GUI option instead of optional text flag 2014-02-02 16:20:17 +01:00
Strangerke
ea9fee35e8 HOPKINS: Fix censorship issue introduced in a11f579a3f 2014-02-02 16:16:29 +01:00
Strangerke
2817e38007 HOPKINS: Fix bug #6511 - Add detection to Polish full version of the game 2014-02-02 11:19:23 +01:00
Strangerke
761af0e4ab HOPKINS: Remove some unused constants 2014-01-06 22:14:52 +01:00
Strangerke
286613183c HOPKINS: Remove custom shouldQuit() as suggested by clone2727 2013-12-24 18:57:49 +01:00
Strangerke
28955963d4 HOPKINS: Fix bug #6456 - RTL not working. 2013-12-24 18:24:48 +01:00
D G Turner
05e07eed9c HOPKINS: Add missing getDebugger() for engine API. 2013-12-07 01:11:26 +00: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
Strangerke
8f557cd4fe HOPKINS: Janitorial - Fix spacing errors 2013-11-23 10:26:45 +01:00
Strangerke
582a681c67 HOPKINS: Replace cascades of if by switches for language checks 2013-11-09 20:06:42 +01:00
Strangerke
6a1b3f40fc HOPKINS: Error out when an unknown version is encountered 2013-11-09 19:27:38 +01:00
Strangerke
def65045d6 HOPKINS: Fix CID 10868875-1086887 2013-10-31 07:50:54 +01:00
Johannes Schickel
fffb2ee3ff HOPKINS: Respect pitch when drawing on OSystem's screen surface. 2013-08-07 22:01:19 +02:00
Johannes Schickel
cad9148f85 HOPKINS: Take advantage of Surface::getPixels. 2013-08-03 04:02:51 +02:00
Johannes Schickel
8b763977a3 HOPKINS: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:32 +02:00
Johannes Schickel
9b8afdab0e HOPKINS: Slight cleanup.
This renames HopkinsEngine::targetName to HopkinsEngine::getTargetName. This
is more consistent with the name scheme of the remaining getters.

It also makes getTargetName return a const reference instead of a copy.
2013-08-01 03:30:14 +02:00
Paul Gilbert
ac70aa2e5c HOPKINS: Bumped up savegame version, and added load handling the brief version 3 format 2013-07-31 21:21:29 -04:00
Paul Gilbert
07d8e5643b HOPKINS: Reverted to saving Breakout high scores in a separate file 2013-07-31 21:01:04 -04:00
Paul Gilbert
dee719390c HOPKINS: Move breakout highscore table to savegames, and fixes to display 2013-07-26 21:57:02 -04:00
Sven Hesse
989ea7cb56 JANITORIAL: Remove trailing whitespace 2013-07-14 19:01:47 +02:00
Torbjörn Andersson
6716fa39a6 HOPKINS: Change some variable names for consistency
This silences a GCC warning about a 'saveFile' variable shadowing
a saveFile() method.
2013-06-26 21:33:30 +02:00
Strangerke
63c462efce HOPKINS: Remove erroneous static keyword, get rid of g_vm 2013-06-26 20:11:00 +02:00
Strangerke
9878c89b97 HOPKINS: Add some comments 2013-06-25 07:14:29 +02:00
Strangerke
8c31fa9cba HOPKINS: Fix glitch occurring when skipping the flight cut scene.
Thanks Greencis for reporting it
2013-06-18 23:52:43 +02:00