David Turner
8ca0b867e0
HUGO: Fixed Valgrind Errors and Segfault when hugo.dat is missing.
...
svn-id: r54804
2010-12-06 23:15:25 +00:00
David Turner
d3719a8192
HUGO: Partial Fix For Leaks from ReadPCX()
...
The shutdown() call has been reinstated, and freeObjects() now works without a double free and thus segfault, but this still misses some allocated resources...
svn-id: r54789
2010-12-05 22:02:04 +00:00
David Turner
349ebe94f1
HUGO: Add Missing shutdown() Call - Currently Disabled.
...
The engine shutdown() function is required to be called to clean up a number of allocated memory blocks. Unfortunately, this currently causes double free issues. This call is added, but commented out with a FIXME explaining this.
svn-id: r54726
2010-12-01 23:15:28 +00:00
Arnaud Boutonné
85d42c405d
HUGO: Use cursorman, add a windows-looking cursor
...
Cursor copied from Mohawk engine, thanks clone2727
svn-id: r54717
2010-12-01 20:11:24 +00:00
David Turner
27a3173d93
HUGO: Close Two Memory Leaks.
...
Note that the first leak is the allocation of the Common::RandomSource, _rnd. I'm not sure of the effect of deallocating this while it is still registered to g_eventRec, but all other engines seem to be the same (or implicitly do this by making a Common::RandomSource member of the engine object) so this is not a engine specific issue, but should be assessed.
svn-id: r54659
2010-11-30 00:01:54 +00:00
Arnaud Boutonné
45f55128b1
HUGO: Add GMM save/load and RTL
...
svn-id: r54576
2010-11-29 17:42:08 +00:00
Arnaud Boutonné
bab5aa433b
HUGO: Get rid of initial savegame
...
svn-id: r54503
2010-11-26 23:17:16 +00:00
Arnaud Boutonné
8bb43361cb
HUGO: Suppress useless enums, cleanup
...
svn-id: r54421
2010-11-22 19:50:57 +00:00
David Turner
6c78ca4876
HUGO: Close two minor memory leaks.
...
Destructor added to SoundHandler and added delete for _intro in engine destructor.
svn-id: r54225
2010-11-13 08:08:58 +00:00
Arnaud Boutonné
fd82c3783d
TOOL+HUGO: Misc modifications
...
- Fix H1 Dos bug (animations not showing in Hall and after)
- Get rid of _textSchedule and everything related
H1 Dos shoud now be completable (not tested yet)
svn-id: r54218
2010-11-12 18:05:23 +00:00
Arnaud Boutonné
a0199df818
HUGO: Cleanup, move several functions and variables to the object class
...
svn-id: r54212
2010-11-11 23:04:04 +00:00
Arnaud Boutonné
b0bf67b424
TOOL: Suppress useless strings in textUtil
...
Also add DOS version for this text array
svn-id: r54202
2010-11-11 15:01:57 +00:00
Arnaud Boutonné
95a58b2471
HUGO: Fix the last leaks in H1 Dos
...
Thanks Hkz for the help!
svn-id: r54175
2010-11-09 23:31:08 +00:00
Arnaud Boutonné
d002800b52
HUGO: Fix several memory leaks
...
svn-id: r54168
2010-11-09 20:26:12 +00:00
Arnaud Boutonné
74d0ad8371
HUGO: Use DOS names for and exact names in endGame()
...
svn-id: r54131
2010-11-07 22:10:29 +00:00
Arnaud Boutonné
86d005e4a3
HUGO: Fix crash when hugo.dat is not the expected version
...
svn-id: r54124
2010-11-07 18:52:47 +00:00
David Turner
1cbab9885b
HUGO: Added basic debugging console to engine
...
Since HUGO uses Debug Channels, this allows for the interactive setting of debugflags as well as providing a base for adding further debugging commands.
svn-id: r54117
2010-11-07 15:04:47 +00:00
Arnaud Boutonné
a4cd83061e
HUGO: Move fonts to display.cpp
...
Some cleanup
svn-id: r54103
2010-11-07 00:02:48 +00:00
Arnaud Boutonné
f5d2695800
HUGO: Move _palette to display.cpp
...
svn-id: r54102
2010-11-06 13:21:18 +00:00
Arnaud Boutonné
913afa041a
HUGO: Suppress status variables related to playback
...
svn-id: r54086
2010-11-05 08:14:12 +00:00
Arnaud Boutonné
4246afcb0e
HUGO: Fix 'exit' command in DOS versions
...
svn-id: r54054
2010-11-03 23:56:34 +00:00
Arnaud Boutonné
e0fec60874
HUGO: Convert class member comments to Doxygen format
...
svn-id: r54018
2010-11-01 20:20:21 +00:00
Arnaud Boutonné
4c6eb76d79
HUGO: Make some scheduler functions and variables protected
...
svn-id: r53999
2010-11-01 15:29:06 +00:00
Arnaud Boutonné
e48cdb378c
HUGO: Move _actListArr to scheduler
...
svn-id: r53995
2010-11-01 00:27:11 +00:00
Arnaud Boutonné
f757d489a0
HUGO: Suppress Playback code
...
Also change 3 variable types in order to match types used
in create_hugo
svn-id: r53987
2010-10-31 21:20:22 +00:00
Arnaud Boutonné
6c702094a8
HUGO: Free some more memory before exiting
...
- suppress two useless variables
- initialize some variables
svn-id: r53956
2010-10-30 20:48:54 +00:00
Arnaud Boutonné
724a702fdf
HUGO: Free memory on exit
...
svn-id: r53945
2010-10-30 16:04:43 +00:00
Arnaud Boutonné
b42faf72e8
HUGO: Add specific versions of doAction() for Dos versions
...
svn-id: r53831
2010-10-25 19:59:32 +00:00
Arnaud Boutonné
f4ae774751
HUGO: Add a debug channel for Object functions
...
svn-id: r53826
2010-10-25 14:03:01 +00:00
Arnaud Boutonné
35f220ace2
HUGO: cleanup: Suppress trailing spaces and tabs
...
svn-id: r53825
2010-10-25 13:31:01 +00:00
Arnaud Boutonné
8e923d9c54
HUGO: Add specific function variantes for H2 Dos and H3 Dos
...
Also add pathfinding to H1 Dos
svn-id: r53822
2010-10-25 12:07:07 +00:00
Arnaud Boutonné
eb6dd6d8c8
HUGO: Add specific v1d object class
...
svn-id: r53810
2010-10-25 09:13:57 +00:00
Arnaud Boutonné
4a0ba817e5
HUGO: Move findObjectSpace() to ObjectHandler class
...
svn-id: r53705
2010-10-22 20:45:00 +00:00
Arnaud Boutonné
0101a0e0bb
HUGO: Moved _objects to a separate file
...
also suppressed some dereferencing
svn-id: r53674
2010-10-21 17:09:57 +00:00
Arnaud Boutonné
bd18e20f7d
HUGO: Merge engine and hugo files
...
- Move initNewScreenDisplay to display.cpp
- Merge engine.cpp and hugo.cpp
svn-id: r53468
2010-10-15 06:16:27 +00:00
Arnaud Boutonné
7723d91c95
HUGO: Add lineHandler for v3 Dos, fix/add comments
...
svn-id: r53170
2010-10-12 21:12:54 +00:00
Arnaud Boutonné
440bcaa060
HUGO: Fix 'Exit' command behavior in the DOS versions
...
svn-id: r53116
2010-10-10 13:06:48 +00:00
Arnaud Boutonné
ced1aba1ea
HUGO: New parser for H1 Dos and H2 Dos.
...
Add specific parser functions for H1 Dos and H2 Dos
svn-id: r53106
2010-10-10 07:43:42 +00:00
Arnaud Boutonné
694758fd2a
HUGO: Clean-up
...
svn-id: r52988
2010-10-03 08:08:42 +00:00
Arnaud Boutonné
3db60d9e44
HUGO: Add F3 behavior (recall), little cleanup
...
- Add F3 behavior
- Move drawStatusText() to Screen
svn-id: r52920
2010-09-27 20:24:36 +00:00
Torbjörn Andersson
5537ac91bf
JANITORIAL: Removed unnecessary semi-colons.
...
svn-id: r52910
2010-09-26 15:46:25 +00:00
Arnaud Boutonné
20a6180459
HUGO: Add H1 Dos intro
...
svn-id: r52902
2010-09-26 11:32:52 +00:00
Arnaud Boutonné
be4d619864
HUGO: Add intro for H3 Dos
...
svn-id: r52877
2010-09-25 12:45:12 +00:00
Arnaud Boutonné
1e9e8cd64a
HUGO: Fix crash in the first screen of H1 Dos
...
- Fix crash in the first screen of H1 Dos
- Clean up
svn-id: r52787
2010-09-17 22:40:53 +00:00
Arnaud Boutonné
c7b38c4510
HUGO: Fix H1 DOS initialization
...
Fix a bug in hugo.dat loading and initialize properly Hugo1 DOS
svn-id: r52755
2010-09-16 23:03:03 +00:00
Arnaud Boutonné
2315907de5
HUGO: Rename some classes for better readibility
...
svn-id: r52720
2010-09-14 05:32:20 +00:00
Arnaud Boutonné
597eed0266
HUGO: Use fonts in HUGO.DAT for the DOS version
...
This is only a temporary solution, to be replaced by a proper .FON
handling. Hugo 2 and 3 (dos) now start.
svn-id: r52697
2010-09-12 22:59:32 +00:00
Arnaud Boutonné
8bd741d41b
HUGO: Add support for multiple scenery files
...
This is used by H3Dos only.
svn-id: r52571
2010-09-05 20:37:38 +00:00
Arnaud Boutonné
a29ae44296
HUGO: Fix decryption in H2 DOS, plus some cleanup
...
svn-id: r52525
2010-09-04 16:02:16 +00:00
Arnaud Boutonné
21a09427de
HUGO: Cleanup and fix mouse pointer issue
...
- Suppress commented code
- Suppress readConfig() and writeConfig()
- Fix the disappearing mouse issue
svn-id: r52495
2010-09-02 12:50:10 +00:00