Johannes Schickel
6aac905dfd
AGI: Make GPL headers consistent in themselves.
2014-02-18 02:39:32 +01:00
Eugene Sandulenko
9d087cb314
AGI: Null terminate string. CID 1003890
2013-04-27 08:46:24 +03:00
Eugene Sandulenko
4e7a117cd2
AGI: Null terminate string. CID 1003889
2013-04-27 08:44:20 +03:00
Johannes Schickel
89abab97e3
JANITORIAL: Remove trailing whitespaces.
...
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Johannes Schickel
49fafb48a7
GUI: Refactor default savegame description creation.
...
Formerly the GMM, AGI and SCI duplicated the logic for USE_SAVEGAME_TIMESTAMP.
Now I added a method to SaveLoadChooser instead, which takes care of this. This
might not be the best placement of such a functionality, thus I added a TODO
which talks about moving it to a better place.
2012-06-10 05:04:59 +02:00
Johannes Schickel
7c5cf1b400
GUI: Add helper to SaveLoadChooser, which uses the currently active target.
...
This reduces the code duplication in all client code, which formerly duplicated
the querying of the plugin, game id etc. and now simply calls the newly added
method runModalWithCurrentTarget() on a SaveLoadChooser object.
2012-06-10 04:53:17 +02:00
Johannes Schickel
15046a7529
GUI: Get rid of SaveLoadChooser::setSaveMode.
...
We already pass the title and process button name to the constructor of
SaveLoadChooser and then do not offer any way of changing it, thus changing
the edit mode of the chooser is kind of pointless and was never actually used.
Instead we pass the mode on SaveLoadChooser construction now.
2012-06-10 04:19:45 +02:00
Filippos Karapetis
d6bedc8a36
AGI: Proper handling of the cancel button when saving/loading
2012-05-03 01:20:06 +03:00
Filippos Karapetis
5e10737015
AGI: Add played time information to saved games
2012-03-27 00:50:29 +03:00
Filippos Karapetis
85ca13db4b
AGI: Use the ScummVM dialogs for saving/loading
...
An option has been added to use the original ones, if needed
2012-03-27 00:21:50 +03:00
Johannes Schickel
442bcb7d3e
ALL: Fix some signed/unsigned comparison warnings.
2012-02-22 20:20:55 +01:00
D G Turner
f722542cee
AGI: Replace usage of 'goto'.
2011-12-10 20:12:35 +00:00
Eugene Sandulenko
d0bb81f566
AGI: Fix warnings
2011-11-02 22:20:40 +00:00
Willem Jan Palenstijn
c442295b9f
AGI: Clean up save/load String usage
2011-09-26 09:27:15 +02:00
Filippos Karapetis
310fe0a546
AGI: Fix compilation
2011-09-25 22:23:22 +03:00
Filippos Karapetis
0e4b35a8e8
AGI: Switched to Common::String in the save/load code
2011-09-25 21:25:25 +03:00
Filippos Karapetis
c8777b774f
AGI: Rewrite getSavegameFilename() so that it doesn't try to return a pointer to a local variable
2011-09-25 19:33:01 +03:00
Filippos Karapetis
c02603fce2
AGI: Replaced odd usage of sprintf() with strcpy()
...
Fixes an odd bug with savegame names being truncated in MSVC
2011-09-25 18:36:33 +03:00
Eugene Sandulenko
273e37f726
AGI: Renamed some #defines to our code conventions and moved them to enums
2011-08-14 18:48:59 +01:00
Christoph Mallon
b4b6ce0954
ALL: Use Graphics::skipThumbnail() where appropriate.
2011-08-07 15:19:09 +02:00
D G Turner
305c6b4d83
AGI: Replace snprintf() usage with Common::String::format()
...
Safer and less portability issues.
2011-06-02 19:46:55 +01:00
Max Horn
477d6233c3
ENGINES: Change 2nd param of Engine::saveGameState to Common::String
2011-06-02 18:31:59 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
2e095e25f2
ALL: centre -> center
2011-04-14 14:34:28 +02:00
Max Horn
84184aabc0
ALL: colour -> color
2011-04-14 14:12:35 +02:00
Max Horn
0ce2ca4e00
COMMON: Replace MKID_BE by MKTAG
...
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
Max Horn
a0df86955f
ALL: Push down deps on stream.h from .h to .cpp files
...
svn-id: r54358
2010-11-19 01:37:04 +00:00
Torbjörn Andersson
8d297f065a
AGI: Properly detect the autosave slot in the save dialog
...
Forward-ported from branch. Let's do this the easy way for now, even
if I'm not sure why the save dialog shows the autosave slot anyway.
svn-id: r52997
2010-10-03 18:38:38 +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
da28fde4c6
AGI: Change some #defines to enums
...
svn-id: r50033
2010-06-18 22:07:32 +00:00
Eugene Sandulenko
968f959158
AGI: Fix bug #2960567 .
...
Bug #2960567 : "AGI: Ego partly erased in Load/Save thumbnails".
Force screen redraw after confirmation window is closed.
svn-id: r49734
2010-06-15 10:28:21 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +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
Max Horn
50435d6bae
AGI: Turn g_tickTimer & g_mouse into members of class AgiEngine resp. AgiBase
...
svn-id: r45259
2009-10-20 11:13:00 +00:00
Max Horn
c0f6657797
AGI: cleanup
...
svn-id: r45256
2009-10-19 22:52:01 +00:00
Max Horn
42120ed626
Introduce a new struct TimeDate, replacing struct tm in client code. May lead to compilation issues in ports, which should be trivial to fix, though
...
svn-id: r44793
2009-10-08 19:41:38 +00:00
Johannes Schickel
c05c5fca03
Commit modified patch from bug report #2849084 "AGI: Crash when saving fallback-matched game" to fix that bug.
...
svn-id: r44273
2009-09-23 13:17:08 +00:00
Kari Salminen
9931fb6a44
Fix for bug #2828333 (AGI: KQ1: Greensleeves always plays):
...
- Made all savegame loading in AGI do the same pre-load and post-load stuff.
- Moved load/saveGameState from AgiBase to AgiEngine
- Added rudimentary error handling to load/saveGameState
- Incidentally also fixes the hanging note from bug #2798797 .
svn-id: r43025
2009-08-03 17:18:18 +00:00
Eugene Sandulenko
483a4c0eeb
Move functions from agi.cpp to more appropriate files.
...
svn-id: r42662
2009-07-22 15:55:33 +00:00
Eugene Sandulenko
ea3373708c
Correct implementation for set.key opcode. Fixes #2605104 : "AGI: Manhunter, F3 hotkey dosent work", removed number of hacks
...
svn-id: r41259
2009-06-06 17:48:09 +00:00
Eugene Sandulenko
1a321a2064
Cleanup
...
svn-id: r41254
2009-06-06 17:45:52 +00:00
Eugene Sandulenko
45764de138
Cleanup
...
svn-id: r41251
2009-06-06 17:44:24 +00:00
Eugene Sandulenko
c5f41b29fa
Stop abusing game flag.
...
svn-id: r41247
2009-06-06 17:42:37 +00:00
Eugene Sandulenko
b26ae991f8
Store and compare MD5s in the saves
...
svn-id: r41245
2009-06-06 17:41:50 +00:00
Eugene Sandulenko
26d8b2bb72
Fix bug #2721940 : "AGI: Gold Rush! Restart Option differs from original"
...
svn-id: r41243
2009-06-06 17:40:56 +00:00
Eugene Sandulenko
93d62da652
Whitespace fixes and C++ comments
...
svn-id: r41239
2009-06-06 17:39:13 +00:00
Eugene Sandulenko
c585366ce9
Decrease number of free memory pages to realistic value
...
svn-id: r41238
2009-06-06 17:37:51 +00:00
Eugene Sandulenko
7ed8d7f573
Proper fix for bug #2537054 : "AGI: Using GMM to load causes graphics glitches".
...
Save/load via GMM is not allowed in certain situations now.
svn-id: r40773
2009-05-21 21:51:50 +00:00