124 Commits

Author SHA1 Message Date
Adrian Frühwirth
a20f90cbb7 JANITORIAL: Fix formatting 2018-04-22 00:56:21 +02:00
Paul Gilbert
51e5baa4d1 HOPKINS: Fix malformed octal characters 2015-09-22 19:56:06 -04:00
Filippos Karapetis
176f8209c7 HOPKINS: Remove trailing whitespace 2014-10-28 16:06:48 +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
Johannes Schickel
d5b21c4036 HOPKINS: Make GPL headers consistent in themselves. 2014-02-18 02:39:35 +01:00
Strangerke
c97ce839fd HOPKINS: Reduce the scope of some variables 2014-02-09 11:44:56 +01:00
Strangerke
582a681c67 HOPKINS: Replace cascades of if by switches for language checks 2013-11-09 20:06:42 +01: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
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
Paul Gilbert
2dd6206f76 HOPKINS: Fix for #3611739 graphic corruption in Breakout game 2013-04-28 18:14:30 +10:00
Max Horn
055b86ea18 HOPKINS: Replace non-ASCII characters by octal string literals
This silences a clang warning. It seems like a good idea, too: non-ASCII
chars in string constants are prone to break as a result of (possibly
unintentional) encoding conversions (which one can configure git to
perform).
2013-04-18 23:50:20 +02:00
Strangerke
4340c103da HOPKINS: Fix broken condition detected by Coverity 2013-04-16 07:44:53 +02:00
Strangerke
54e3df0140 HOPKINS: Constify some functions and members 2013-04-11 12:17:06 +02:00
Strangerke
1ac0c06bf6 HOPKINS: Reduce the use of lockScreen() and unlockScreen() by adding them in clearScreen() 2013-04-10 12:25:36 +02:00
Strangerke
55938b3975 HOPKINS: Make engine less verbose by reducing some object names 2013-04-10 10:27:06 +02:00
Paul Gilbert
260a6bbc24 HOPKINS: Renamed remaining GraphicsManager methods 2013-04-09 09:47:48 -04:00
Paul Gilbert
bfe63b71e9 HOPKINS: Renaming some of the remaining graphics methods 2013-04-09 09:17:11 -04:00
Strangerke
0a4494a760 HOPKINS: Fix glitch when exiting computer in FBI rooms 2013-04-07 09:16:13 +02:00
Strangerke
89bf72ff5d HOPKINS: JANITORIAL: Remove trailing spaces and tabs 2013-04-05 08:17:26 +02:00
Strangerke
e79a51c208 HOPKINS: Remove g_PTRNUL 2013-04-05 07:54:54 +02:00
Strangerke
177df0802a HOPKINS: Standardize the use of g_PTRNUL 2013-04-03 08:23:31 +02:00
Strangerke
e848ed7bac HOPKINS: Rename display buffers 2013-03-30 14:20:18 +01:00
Strangerke
9f9e665d8e HOPKINS: Fix several Cppcheck warning 2013-03-27 00:51:35 +01:00
Strangerke
73b01f20af HOPKINS: Remove setParent() from TalkManager 2013-03-20 08:10:28 +01:00
Strangerke
848841772f HOPKINS: Remove setParent() from SaveLoadManager and ScriptManager 2013-03-20 08:06:10 +01:00
Strangerke
c5c7ced5ee HOPKINS: Remove setParent() from MenuManager and ObjectsManager 2013-03-20 07:56:16 +01:00
Strangerke
6a446ff9d1 HOPKINS: Remove setParent() from GraphicsManager 2013-03-20 07:36:06 +01:00
Strangerke
852e65bd02 HOPKINS: Remove setParent() from Globals 2013-03-20 07:27:42 +01:00
Strangerke
d9b596ad18 HOPKINS: Remove setParent() from FontManager 2013-03-20 01:00:12 +01:00
Strangerke
f2d4151dd7 HOPKINS: Remove setParent() from FileManager 2013-03-19 21:57:28 +01:00
Strangerke
db6d7e256b HOPKINS: Remove setParent() from EventsManager and Debugger 2013-03-19 20:41:39 +01:00
Strangerke
26d9122844 HOPKINS: Remove setParent() from ComputerManager 2013-03-19 08:21:42 +01:00
Paul Gilbert
3c15da26b2 HOPKINS: Fix some references to renamed DD_VBL method 2013-03-17 11:56:12 -04:00
Paul Gilbert
4372bd8306 Merge branch 'hopkins_dirtyRects'
Conflicts:
	engines/hopkins/anim.cpp
	engines/hopkins/computer.cpp
	engines/hopkins/dialogs.cpp
	engines/hopkins/graphics.cpp
	engines/hopkins/hopkins.cpp
2013-03-17 11:29:00 -04:00
Paul Gilbert
39ffd06839 HOPKINS: Bugfix for refreshing Breakout lives when one is lost 2013-03-13 22:58:48 -04:00
Paul Gilbert
d10f81372b HOPKINS: Endian fix for playing Breakout game 2013-03-12 23:03:18 -04:00
Paul Gilbert
3a48420c90 HOPKINS: Dirty rect fix for Breakout game 2013-03-12 21:44:36 -04:00
Strangerke
23badc9735 HOPKINS: Some renaming 2013-03-04 07:46:52 +01:00
Paul Gilbert
95aca78bcd HOPKINS: Renamed dirty rect methods 2013-03-02 20:40:03 -05:00
Strangerke
79062f426e HOPKINS: Some renaming in GraphicsManager 2013-02-26 07:37:09 +01:00
Paul Gilbert
54924de6cb HOPKINS: Home-screen now displaying correctly with dirty rects 2013-02-25 22:00:36 -05:00
Filippos Karapetis
b7419454c5 HOPKINS: Rename DD_VBL() -> updateScreen() 2013-02-25 22:00:45 +02:00
Strangerke
8457c00457 HOPKINS: More misc renaming 2013-02-20 08:30:16 +01:00
Strangerke
5bbdbc0fad HOPKINS: Misc renaming, some sound refactoring 2013-02-19 14:34:43 +01:00
Strangerke
3e0739a49c HOPKINS: Some renaming and refactoring 2013-02-16 14:57:25 +01:00
Strangerke
84e290eade HOPKINS: Reorder includes 2013-02-15 22:20:24 +01:00
Strangerke
425830af87 HOPKINS: Some renaming and refactoring in ComputerManager and FontManager 2013-02-11 00:36:43 +01:00