343 Commits

Author SHA1 Message Date
Arnaud Boutonné
077102f8db HUGO: Fix crash in H3 (Swinger display name)
svn-id: r54801
2010-12-06 20:22:53 +00:00
David Turner
dda67d651b HUGO: Fixed ReadPCX Memory Leak
freeObjects now works correctly.

svn-id: r54796
2010-12-06 01:56:42 +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
7adecddbfc HUGO: Remove Invalid Memory Read in getSound() - Size not defined until after function returns.
svn-id: r54787
2010-12-05 21:52:42 +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
Arnaud Boutonné
af79de331e HUGO: Fix palette issue after restoring a game in H3
svn-id: r54685
2010-11-30 20:15:02 +00:00
David Turner
7aca10bf9a HUGO: Close Memory Leak in PlayMusic() Function.
svn-id: r54664
2010-11-30 01:49:00 +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é
1fbd80b1e3 HUGO: Fix save/load screens, which were always showing slot0 info
svn-id: r54658
2010-11-29 23:57:15 +00:00
Arnaud Boutonné
66ba82a451 HUGO: Fix assert in H3 Win when displaying the elephant and the plane
svn-id: r54653
2010-11-29 22:31:57 +00:00
Arnaud Boutonné
fe806a1aba HUGO: Fix a remaining warning
svn-id: r54578
2010-11-29 18:03:05 +00:00
Arnaud Boutonné
b6f9407ec6 HUGO: Fix compilation
svn-id: r54577
2010-11-29 17:50:30 +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é
54b756e1ba HUGO: Modify or suppress some obsolete comments and warnings
svn-id: r54530
2010-11-28 16:38:01 +00:00
Arnaud Boutonné
5f7ac43a24 HUGO: Add F4/F5 keys to save/restoreGame
Currently, it only saves/restores slot #0, no selection
screen is displayed

svn-id: r54515
2010-11-27 23:09:19 +00:00
Arnaud Boutonné
8b7c42f0b0 TOOLS: Fix 'Boat' bug in H1 Dos
H1 Dos is now completable

svn-id: r54507
2010-11-27 16:48:38 +00:00
Torbjörn Andersson
83206e20cb HUGO: Fix warning
svn-id: r54506
2010-11-27 08:27:13 +00:00
Arnaud Boutonné
b70aa0d419 HUGO: Add Win save/restore behavior to the Dos versions
(useful to debug the lake screen)

svn-id: r54505
2010-11-26 23:57:39 +00:00
Arnaud Boutonné
fd6157e778 HUGO: Avoid using 'short' in function definition
svn-id: r54504
2010-11-26 23:30:31 +00:00
Arnaud Boutonné
bab5aa433b HUGO: Get rid of initial savegame
svn-id: r54503
2010-11-26 23:17:16 +00:00
Arnaud Boutonné
a0cc07268d HUGO: Clean up Scheduler
svn-id: r54502
2010-11-26 22:15:31 +00:00
Arnaud Boutonné
7711cc57d6 HUGO: Rewrite saveObjects() and restoreObjects()
This fixes (at least for me) save and restore. saveEvents() 
and restoreEvents() still have to be rewritten.

svn-id: r54422
2010-11-22 22:49:24 +00:00
Arnaud Boutonné
8bb43361cb HUGO: Suppress useless enums, cleanup
svn-id: r54421
2010-11-22 19:50:57 +00:00
Arnaud Boutonné
e5177eebfd HUGO: Start using endianness-safe read/write functions
svn-id: r54389
2010-11-19 23:49:04 +00:00
Filippos Karapetis
325d93d5d8 HUGO: Fixed crash on exit when hugo.dat is not available
svn-id: r54228
2010-11-13 13:41:43 +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é
84e4c1742a HUGO: Suppress the use of Utils::Error, cleanup
svn-id: r54198
2010-11-11 10:36:10 +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é
1da44acae3 HUGO: Implement REMAPPAL.
Palettes in H3 Win intro are now correct

svn-id: r54100
2010-11-06 09:59:07 +00:00
Arnaud Boutonné
6b88fd44c0 HUGO: Silent GCC warning introduced in r54087
svn-id: r54095
2010-11-05 12:36:20 +00:00
Arnaud Boutonné
85513b2040 HUGO: Suppress useless case in processRoute()
svn-id: r54087
2010-11-05 08:36:37 +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é
749d2afd1f TOOL: Fix bug in data in Hugo2 Dos
svn-id: r54085
2010-11-05 07:59:55 +00:00
Arnaud Boutonné
bf787323ab TOOL: Fix ticks per seconds for H1 Dos
svn-id: r54063
2010-11-04 12:29:06 +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é
c6ddf22057 HUGO: Fix typo... sorry
svn-id: r54044
2010-11-02 23:22:25 +00:00
Arnaud Boutonné
ffa455bef9 HUGO: Fix cypher for v1 Dos
svn-id: r54043
2010-11-02 23:16:28 +00:00
Max Horn
3d5e2fa820 HUGO: Replace Utils::Warn() by warning()
svn-id: r54021
2010-11-01 20:40:33 +00:00
Arnaud Boutonné
7d09121c71 HUGO: Fix typo
svn-id: r54019
2010-11-01 20:21:01 +00:00
Arnaud Boutonné
e0fec60874 HUGO: Convert class member comments to Doxygen format
svn-id: r54018
2010-11-01 20:20:21 +00:00