Commit Graph

57 Commits

Author SHA1 Message Date
Max Horn
3f2286031a Avoid putting non-ASCII chars into source files
svn-id: r18761
2005-09-03 19:59:33 +00:00
Torbjörn Andersson
41e9aa2f2c Added keyboard repeating.
svn-id: r18711
2005-08-25 15:33:38 +00:00
Torbjörn Andersson
3140dbebc4 The dialog windows now react to "Enter" and "Escape" in what I hope is a
sensible way. This is an extension of feature request #1265893.

svn-id: r18710
2005-08-24 16:10:09 +00:00
Eugene Sandulenko
6b4484472b Remove trailing whitespaces.
svn-id: r18604
2005-07-30 21:11:48 +00:00
Max Horn
72f4c03b0b Moved (In/Out)SaveFile(Manager) and Timer to namespace Common
svn-id: r18038
2005-05-10 23:17:38 +00:00
Max Horn
b75c969e66 Moved class File and the MD5 stuff to namespace Common
svn-id: r18037
2005-05-10 22:56:25 +00:00
Max Horn
e79c168d35 split SaveFileManager::openSavefile and class SaveFile into two, each, one for loading and one for saving
svn-id: r17517
2005-04-10 15:13:40 +00:00
Jonathan Gray
24c92d0091 Remove usage of vsprintf in favour of vsnprintf and make
more use of STRINGBUFLEN.  Some ports may need a new stub for
this, discussed with Chrilith.

svn-id: r17463
2005-04-09 01:52:44 +00:00
Torbjörn Andersson
d5b2582aa5 Missed these.
svn-id: r17428
2005-04-07 08:50:48 +00:00
Max Horn
6f6668ce21 Reduce dependencies on common/savefile.h from 88 to 14
svn-id: r16528
2005-01-10 22:18:39 +00:00
Max Horn
cffd917165 system.h was being included in tons of places, without any good reason; reduced this (total dependencies on system.h went down from 193 to 85 files)
svn-id: r16527
2005-01-10 22:06:49 +00:00
Max Horn
47280d9433 Updated copyright
svn-id: r16398
2005-01-01 16:09:25 +00:00
Chris Apers
099f5de891 Speedup a bit PalmOS port
svn-id: r16165
2004-12-20 16:55:55 +00:00
Chris Apers
e1458ca1ff PalmOS stuffs
svn-id: r16011
2004-12-10 15:10:10 +00:00
Max Horn
f09293b22c Clean up OSystem::Event
svn-id: r15990
2004-12-05 17:42:20 +00:00
Max Horn
876e738dce Moved Engine::getSavePath() to class SaveFileManager; removed the 'directory' parameter from SaveFileManager::openSavefile and listSavefiles (they always use getSavePath() now, which is what we did anyway)
svn-id: r15901
2004-11-27 00:26:11 +00:00
Robert Göffringmann
17f23ad3d5 BS1 demo is basically fully supported now.
only some SFX are flipped.

svn-id: r15819
2004-11-15 08:23:09 +00:00
Chris Apers
2abe17e594 Cleanup
svn-id: r15739
2004-11-09 10:26:33 +00:00
Robert Göffringmann
021f2cbcce free memory on quit.
Still leaks some, though

svn-id: r15735
2004-11-09 04:06:10 +00:00
Robert Göffringmann
561f6ab6e8 enable czech control panel. should work.
svn-id: r15628
2004-10-21 08:47:13 +00:00
Max Horn
ce8c99bf62 Rename remaining OSystem methods to match our coding guidelines
svn-id: r15332
2004-09-28 20:19:37 +00:00
Torbjörn Andersson
0e2c7d6d7f Let displayMessage() restore the mouse pointer to the standard BS1 arrow
once it's done.

svn-id: r14258
2004-07-18 17:47:19 +00:00
Max Horn
6b722ff11b Added Engine::_saveFileMan; thus was able to get rid of auto_ptr usage again
svn-id: r14058
2004-06-25 22:39:21 +00:00
Max Horn
7a8d469c66 Use auto_ptr to avoid leaks
svn-id: r14057
2004-06-25 22:12:57 +00:00
Torbjörn Andersson
d40de10534 Some usability fixes to the control panel code:
* Draw a blinking cursor when typing savegame names. (Bug #908679)

* Number the savegame slots. At the moment they are numbered differently
  than in BS2 in that they start on 1 instead of 0. As far as I recall,
  this was the case with the original engine as well, but we may want to
  reconsider.

* Added scroll wheel support. This wasn't in the original, but it's a nice
  thing to have. Particularly since the scroll buttons don't repeat. (It
  would be nice if they did.)

I would like this patch to be considered for 0.6.1, if there aren't any
obvious problems with it.

svn-id: r13833
2004-05-12 06:21:44 +00:00
Max Horn
933aab3100 Use vsprintf instead of vsnprintf: more portable, less safe (but then again, vsnprinft isn't that safe either)
svn-id: r13434
2004-03-30 22:56:57 +00:00
Paweł Kołodziejski
70545f2c01 please fix
svn-id: r13433
2004-03-30 07:11:01 +00:00
Max Horn
14378cb56e Renamed more OSystem methods
svn-id: r13410
2004-03-28 16:30:50 +00:00
Max Horn
9d89a5f543 Fix bug #920491 (BS1: Game crashes when savepath is invalid)
svn-id: r13396
2004-03-28 12:59:51 +00:00
Nicolas Bacca
30d169d2be Display keyboard when saving
svn-id: r13151
2004-03-02 19:47:17 +00:00
Max Horn
c6752cccf5 renamed more OSystem methods to follow our naming scheme; renamed NewGuiColor to OverlayColor; fixed some calls to error() in the SDL backend
svn-id: r13087
2004-02-28 12:58:13 +00:00
Max Horn
25e2688b4d help poor VC7
svn-id: r12711
2004-02-01 21:10:26 +00:00
Torbjörn Andersson
cf0a73f913 Introduced new namespace, Sword1, removing the "Sword" and "Bs" prefixes in
the process, except for SwordEngine.

Some minor cleanups along the wa, e.g. stdafx.h already includes <stdio.h>,
<stdlib.h> and <math.h> so there shouldn't be any need to do it elsewhere.

svn-id: r12320
2004-01-11 15:47:41 +00:00
Robert Göffringmann
8e30afd438 some changes for Czech version
svn-id: r12221
2004-01-07 18:08:24 +00:00
Robert Göffringmann
8030f1b148 implemented volume control panel
svn-id: r12220
2004-01-07 17:47:46 +00:00
Max Horn
033ff78ae9 updated copyright notice
svn-id: r12176
2004-01-06 12:45:34 +00:00
Robert Göffringmann
a9a84aee22 added control panel confirmation dialog.
svn-id: r12128
2004-01-04 06:31:29 +00:00
Robert Göffringmann
f0d0e4d4b3 removed speed button from control panel and made the game do a full screen refresh after leaving the control panel
svn-id: r12127
2004-01-04 05:21:22 +00:00
Robert Göffringmann
82ef464a69 fixed savename drawing.
svn-id: r12074
2004-01-01 17:18:00 +00:00
Torbjörn Andersson
18f8916c3a Rewrote the music code. It now follows the same basic idea as the one in
BS2, which has worked pretty well so far. I haven't implemented pausing and
volume since the code I replaced didn't have it either, as far as I could
tell.

svn-id: r12070
2004-01-01 15:22:15 +00:00
Jonathan Gray
9b4f73b8ef compilation fix
svn-id: r12066
2004-01-01 08:55:26 +00:00
Torbjörn Andersson
0aeae5a9b5 Use uint8 instead of char to avoid crashes with some accented characters.
svn-id: r12061
2003-12-31 17:38:27 +00:00
Robert Göffringmann
9a064972c2 fixed language strings
svn-id: r12060
2003-12-31 16:56:16 +00:00
Jonathan Gray
de014ec971 fix segfault
svn-id: r12049
2003-12-31 12:32:34 +00:00
Robert Göffringmann
436834750d cd changing code and checking for savegames on startup
svn-id: r12043
2003-12-30 22:57:52 +00:00
Robert Göffringmann
4e1e77b0a5 use correct sprite for text-on/off
svn-id: r12013
2003-12-29 16:01:47 +00:00
Robert Göffringmann
1c06aebe39 made control panel use the correct fonts
svn-id: r12010
2003-12-29 15:38:16 +00:00
Robert Göffringmann
e9766658b6 this fixes the remaining glitches
svn-id: r12004
2003-12-28 23:24:03 +00:00
Torbjörn Andersson
85deabed70 Indentation fixes: changed spaces to tabs. (These tend to really stick out
in my editor, since it shows tabs as eight spaces, not four.)

svn-id: r12002
2003-12-28 19:03:35 +00:00
Torbjörn Andersson
302c9f72fc I believe this is the evil bug that's been corrupting my SAVEGAME.INF. (I
can't reproduce the problem under Windows though.)

svn-id: r11996
2003-12-28 15:02:21 +00:00