Commit Graph

36 Commits

Author SHA1 Message Date
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
Arnaud Boutonné
fe806a1aba HUGO: Fix a remaining warning
svn-id: r54578
2010-11-29 18:03:05 +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é
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
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é
84e4c1742a HUGO: Suppress the use of Utils::Error, cleanup
svn-id: r54198
2010-11-11 10:36:10 +00:00
Arnaud Boutonné
d002800b52 HUGO: Fix several memory leaks
svn-id: r54168
2010-11-09 20:26:12 +00:00
Max Horn
3d5e2fa820 HUGO: Replace Utils::Warn() by warning()
svn-id: r54021
2010-11-01 20:40:33 +00:00
Arnaud Boutonné
e0fec60874 HUGO: Convert class member comments to Doxygen format
svn-id: r54018
2010-11-01 20:20:21 +00:00
Max Horn
e27b05ef35 COMMON: Rename String::printf() to String::format()
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.

The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.

svn-id: r54004
2010-11-01 16:02:28 +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
Max Horn
9995c7bd98 HUGO: Comment out all occurrences of FILE *fpb
These are not portable, and (at least in the current code)
do nothing useful either: a file is opened, and closed again,
in write mode. At most this may create / delete the file.
But since the method containing this code is never called...

svn-id: r53957
2010-10-30 21:25:30 +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é
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é
6049a370b3 HUGO: Fix NULL pointer dereferencing
svn-id: r53466
2010-10-15 06:08:42 +00:00
Arnaud Boutonné
2978053a00 HUGO: Split classes with multiple version in separate files
svn-id: r53152
2010-10-11 21:41:31 +00:00
Matthew Hoops
ed93a58955 HUGO: Use _targetName for naming save files
svn-id: r53145
2010-10-10 23:24:57 +00:00
Arnaud Boutonné
694758fd2a HUGO: Clean-up
svn-id: r52988
2010-10-03 08:08:42 +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é
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é
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
Arnaud Boutonné
e284852b64 HUGO: Fix warnings
svn-id: r52494
2010-09-02 11:43:00 +00:00
Arnaud Boutonné
d74e82fe7f HUGO: Fix loading of config file during game init
Add a check on CONFIG.DAT size in order to avoid loading crap into 
the _config structure during the initialization of the engine.
The game no longer starts in turbo & mute mode

svn-id: r52493
2010-09-02 10:52:29 +00:00
Arnaud Boutonné
ec9708694e HUGO: Hopefully fix GCC_PRINTF issue in util
* Add a mask in each call of Warn(), Error() and Box() not using one
* cleanup: use the same wording for 'End of namespace Hugo' in all files

svn-id: r52406
2010-08-27 09:48:53 +00:00
Torbjörn Andersson
7f97d56829 HUGO: Fix GCC warnings.
svn-id: r52192
2010-08-18 17:51:44 +00:00
Arnaud Boutonné
fa41f9ffd0 Hugo - Check double F1, display properly the content of help.dat if present
svn-id: r52189
2010-08-18 16:14:38 +00:00
Arnaud Boutonné
ab5bb86e20 No longer error when BSF file is not found in H1 Dos, as it may be a freeware version.
svn-id: r52187
2010-08-18 15:33:59 +00:00
Sven Hesse
54c1a1463f HUGO: Fix file permissions
755->644

svn-id: r52177
2010-08-17 23:55:31 +00:00
Eugene Sandulenko
2c545ae1f3 HUGO: Fix warnings
svn-id: r52146
2010-08-17 11:00:29 +00:00
Eugene Sandulenko
7d7acd7042 HUGO: Fix warnings
svn-id: r52139
2010-08-17 09:47:46 +00:00
Eugene Sandulenko
06960d33e1 HUGO: Adding engine to the main tree
svn-id: r52137
2010-08-17 09:28:20 +00:00