Max Horn
4b2f92b5e5
AGI: Rewrote predictive code matcher
...
The new code is simpler, avoids a potential buffer overrun
(by avoiding to to use a buffer in the first place), and
hopefully has slightly more sane matching properties.
svn-id: r55135
2011-01-06 21:11:24 +00:00
Max Horn
0a8189fd41
AGI: cleanup
...
svn-id: r55124
2011-01-05 13:04:08 +00:00
Max Horn
a7248a0601
ENGINES: Replace many printfs by warning/debug/debugN
...
svn-id: r54031
2010-11-01 21:37:47 +00:00
Willem Jan Palenstijn
0fd6b7608e
AGI: Fix one more strncpy/strncat issue
...
svn-id: r53148
2010-10-11 17:52:44 +00:00
Johannes Schickel
cc0afa92b3
AGI: Fix possible buffer overflow.
...
This is based on patch #3085298 "overflows in agi and parallaction".
svn-id: r53147
2010-10-11 17:07:53 +00:00
Torbjörn Andersson
c91a07229a
JANITORIAL: Removed most punctuation at end of warning() and error()
...
Our warning() and error() functions always add an exclamation mark
to the end of the message anyway.
svn-id: r52791
2010-09-18 10:55:16 +00:00
Max Horn
c934642bdb
COMMON: Move typedef StringList from str.h to new header str-array.h
...
This removes the dependency on array.h from str.h.
Also, begun migration from the confusing type name "StringList" to
the more appropriate StringArray.
svn-id: r48282
2010-03-18 15:09:24 +00:00
Torbjörn Andersson
c5be030077
Silenced some more cppcheck warnings.
...
svn-id: r47785
2010-01-31 23:28:12 +00:00
Eugene Sandulenko
8ad5694cb1
Reduce header dependencies for AGI engine.
...
svn-id: r46942
2010-01-03 20:15:44 +00:00
Max Horn
51933629d1
Changed foo(void) to foo() in almost all non-backend source files
...
svn-id: r45616
2009-11-02 21:54:57 +00:00
Eugene Sandulenko
1a321a2064
Cleanup
...
svn-id: r41254
2009-06-06 17:45:52 +00:00
Eugene Sandulenko
93d62da652
Whitespace fixes and C++ comments
...
svn-id: r41239
2009-06-06 17:39:13 +00:00
Johannes Schickel
f0182121f7
Fix some variable may be used uninitialized warnings.
...
svn-id: r40528
2009-05-13 18:12:17 +00:00
Max Horn
1776c75566
Don't use File::name() needlessly (i.e. if you still know which file you just opened :)
...
svn-id: r34685
2008-09-29 11:07:39 +00:00
Johannes Schickel
b586235fb8
Fixed warnings for msvc9.
...
svn-id: r31460
2008-04-09 15:16:50 +00:00
Max Horn
57ad73faee
Removed char &operator [] from class String -- it had the potential to wreak havoc when used on shared strings (thanks to tramboi for pointing this out)
...
svn-id: r31334
2008-03-30 18:37:09 +00:00
Max Horn
770bc64f21
Added FIXME comment regarding sorting of pred.dic; replaced weird binary search code with simple binary search code ;-)
...
svn-id: r31291
2008-03-28 09:17:13 +00:00
Jordi Vilalta Prat
66e9d4f5e8
Removed trailing spaces.
...
svn-id: r30664
2008-01-27 19:47:41 +00:00
Paweł Kołodziejski
604d4d96ea
fixed potential unitialized variables, one array overflow
...
svn-id: r30571
2008-01-19 20:00:36 +00:00
Kari Salminen
a493647076
Indentation
...
svn-id: r30478
2008-01-13 23:43:17 +00:00
Eugene Sandulenko
35d6862117
Remove/clarify several FIXMEs
...
svn-id: r28892
2007-09-11 15:49:19 +00:00
Max Horn
4cc9d17c34
Adding various FIXME comments to bogus (non-self-explanatory) existing FIXME comments; and some other related cleanup
...
svn-id: r28890
2007-09-11 09:20:39 +00:00
Neil Millstone
91426f82c6
Porting DS word completion keyboard changes from branch0-10-0.
...
svn-id: r28125
2007-07-16 22:55:44 +00:00
Kari Salminen
969df42d01
Make AGI's button drawing use AgiButtonStyle. Doesn't use Amiga-style yet. It's next.
...
svn-id: r28014
2007-07-10 18:08:35 +00:00
Max Horn
cbb378de1f
Some cleanup to the pred.dic AGI code
...
svn-id: r27386
2007-06-13 13:26:46 +00:00
Kostas Nakos
a0cd025a16
implement predictive dictionary using ascii based operations, replacing the 10ary tree
...
svn-id: r27383
2007-06-13 12:48:14 +00:00
Eugene Sandulenko
1cbcf395a6
Move hardcoded predictive dictionary name to config manager.
...
svn-id: r27315
2007-06-10 15:21:19 +00:00
Kostas Nakos
1243fc1145
oops
...
svn-id: r27246
2007-06-09 11:07:23 +00:00
Lars Persson
a3e8f765a6
Updated Symbian OS Prediction handling
...
Updated AGI to only enable predictive input after dictionary was found.
svn-id: r27206
2007-06-08 18:09:24 +00:00
Kostas Nakos
b59f4be4d1
adding navigation with arrow keys and enter; did away with some ugly gotos
...
svn-id: r27193
2007-06-08 08:12:18 +00:00
Kostas Nakos
5df28554ac
Adding the new kFeatureDisableKeyFiltering OSystem feature.
...
This feature is used by agi's prediction dialog and is a hint to the backend
to temporarily switch off any keyboard mapping, used in devices with limited
keyboard input. Also, supply some comments to the newly added event & feature.
svn-id: r27069
2007-06-03 18:44:03 +00:00
Filippos Karapetis
476088e822
Silence an MSVC8 warning
...
svn-id: r27059
2007-06-02 21:02:35 +00:00
Kostas Nakos
9b0d6d0898
implement most-recently-used scheme for dictionary words
...
svn-id: r27058
2007-06-02 20:39:04 +00:00
Kostas Nakos
299cbcb059
better handle mode changes and command line length
...
svn-id: r27057
2007-06-02 19:56:18 +00:00
Kostas Nakos
8d97729ee8
adding multi-tap alpha input
...
svn-id: r27056
2007-06-02 19:32:57 +00:00
Kostas Nakos
a01eda95b8
oops, remove debugging output
...
svn-id: r27048
2007-06-02 08:21:09 +00:00
Kostas Nakos
f935b6981b
permit only one instance of predictive dialog, add handling of keypad keys
...
svn-id: r27047
2007-06-02 08:15:06 +00:00
Kostas Nakos
26971aa6ab
kill misplaced cursor, refresh only when necessary, add some (cheap) visual feedback on keypress
...
svn-id: r27046
2007-06-02 06:53:52 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Kostas Nakos
10764e965c
fixed predictive dialog messing up state if another dialog was already shown
...
svn-id: r27023
2007-05-30 19:51:08 +00:00
Gregory Montoir
1ce912e106
made rtrim() and ltrim() global functions, to reduce code duplication (it seems parallaction/parser.cpp code re-use them too
...
svn-id: r25564
2007-02-13 21:06:57 +00:00
Eugene Sandulenko
f2dff4dec6
Fingolfin's patch for improving dictionary loading speed. Applied as is.
...
svn-id: r25503
2007-02-12 00:21:30 +00:00
Max Horn
2ff7f04cc7
Speed up loading of pred.txt, by using a sort algorithm that doesn't choke on pre-sorted data as our current (sloooow) Common::sort does
...
svn-id: r25476
2007-02-10 18:48:28 +00:00
David Symonds
a2f49d31fb
Remove #include "agi/text.h"; fixes build. Pointyhat to aquadran.
...
svn-id: r25103
2007-01-16 13:09:42 +00:00
Paweł Kołodziejski
b47eb95316
Formating names in source code
...
svn-id: r25101
2007-01-16 12:40:51 +00:00
Paweł Kołodziejski
1d3ca2e409
first phase of objectisation of agi engine
...
svn-id: r24808
2006-12-06 19:27:02 +00:00
Torbjörn Andersson
5c9d5199f8
Don't crash in loadDict() if pred.txt is missing.
...
svn-id: r24761
2006-11-22 18:25:16 +00:00
Eugene Sandulenko
da3e724a99
Predictive input for AGI engine. To Do:
...
- Multitap
- scummvm.ini-based dictionary path
- speedup dictionary loading
svn-id: r24635
2006-11-06 13:19:12 +00:00