Paul Gilbert
14e82dbe7f
SWORD25: Added description field to savegames
...
This stores the date and time of when the game was saved, since ScummVM doesn't support getting a file's age like the original engine did.
svn-id: r53638
2010-10-20 11:11:09 +00:00
Paul Gilbert
66ecd08868
SWORD25: Fix to correctly write game state to savegame files
...
svn-id: r53637
2010-10-20 10:53:50 +00:00
Eugene Sandulenko
6629efc676
SWORD25: Enforced code formatting rules in rest of the engine
...
svn-id: r53626
2010-10-19 21:03:33 +00:00
Eugene Sandulenko
bbd95da899
SWORD25: Fix engine exit when running without theoradec
...
svn-id: r53622
2010-10-19 20:52:06 +00:00
Max Horn
4caa1d40a8
SWORD25: Simplify log listener code (and get rid of another global constructor)
...
svn-id: r53610
2010-10-19 09:44:48 +00:00
Max Horn
d6b7ebab16
SWORD25: Some code cleanup
...
svn-id: r53608
2010-10-19 09:44:13 +00:00
Max Horn
ddf0a3d80c
SWORD25: Move BS_ServiceInfo to service_ids.h and turn it into a POD struct
...
svn-id: r53607
2010-10-19 09:43:53 +00:00
Max Horn
88bca8e13d
SWORD25: Optimize ReverseArray, move it to only place it is used
...
svn-id: r53606
2010-10-19 09:43:31 +00:00
Paul Gilbert
355032d4f9
SWORD25: Fix cppcheck warnings in BS_Log::LogPrefix
...
The LogPrefix method isn't currently used, but I'm fixing it just in case it's ever used again
svn-id: r53602
2010-10-19 08:12:04 +00:00
Torbjörn Andersson
9744167adc
SWORD25: Fix infinite recursion
...
If I understand this, we don't need to call Kernel::GetInstance()
when we are already in the Kernel class. In this particular case,
_RegisterScriptBindings() is called from the Kernel constructor, so
it gets called again and again because _Instance hasn't yet been set.
svn-id: r53512
2010-10-15 20:01:13 +00:00
Max Horn
550073ee04
SWORD25: Do not use Kernel::GetService directly anymore
...
svn-id: r53477
2010-10-15 12:18:19 +00:00
Johannes Schickel
bc2781fdb3
SWORD25: Semi-colon cleanup.
...
svn-id: r53446
2010-10-13 20:04:50 +00:00
Torbjörn Andersson
bbbfdad458
SWORD25: Check if _LogFile has been created before flushing.
...
svn-id: r53445
2010-10-13 19:33:12 +00:00
Filippos Karapetis
2880ebdeb4
Fixed ifdef. I'm too tired today :/
...
svn-id: r53440
2010-10-13 17:45:20 +00:00
Filippos Karapetis
96e05a1ff9
SWORD25: Hopefully fix compilation when libtheora is not present
...
svn-id: r53439
2010-10-13 17:42:56 +00:00
Max Horn
8f4f0d16fc
SWORD25: Renamed getInstance() -> instance()
...
svn-id: r53430
2010-10-13 15:41:00 +00:00
Max Horn
fa8275f27b
SWORD25: Don't even compile theora related code when that lib is not present
...
svn-id: r53428
2010-10-13 15:00:51 +00:00
Filippos Karapetis
d83a70af43
SWORD25: Renamed ENABLE_THEORADEC to USE_THEORADEC (like in configure)
...
svn-id: r53418
2010-10-13 13:32:30 +00:00
Filippos Karapetis
f2d9319d9e
SWORD25: Renamed ENABLE_THEORA to ENABLE_THEORADEC (like in configure)
...
svn-id: r53417
2010-10-13 13:27:55 +00:00
Filippos Karapetis
681ec59292
SWORD25: Added a ENABLE_THEORA define inside fmv/theora_decoder.h
...
This define can be used to disable building of the Theora decoder, and thus makes
libtheora optional (therefore resolving an item in the Sword25 TODO). Disabling the
Theora decoder will effectively disable the game's videos
Note that running the game with the Theora decoder disabled is still untested
svn-id: r53416
2010-10-13 13:07:16 +00:00
Sven Hesse
ff0160050a
SWORD25: Force cast to uint instead of unsigned long long
...
As per Fingolfin's request, because apparently there's no long long
in the C++ standard; and ScummVM's hashmap needs uint.
svn-id: r53413
2010-10-13 11:42:17 +00:00
Sven Hesse
ab57b38fdf
SWORD25: Resolve ambigous write() call on 64 bit systems
...
svn-id: r53410
2010-10-13 11:22:52 +00:00
Sven Hesse
c86c0b6b96
SWORD25: Cast the pointer to unsigned long long
...
...Instead of to uint, which fails on my 64 bit system where pointers
are 64 bit, but normal ints 32 bit wide.
svn-id: r53409
2010-10-13 11:22:19 +00:00
Filippos Karapetis
59c6223d49
SWORD25: Fixed signed/unsigned bug
...
svn-id: r53407
2010-10-13 11:18:34 +00:00
Max Horn
85fa23afbe
SWORD25: Get rid of kernel/bs_stdint.h
...
svn-id: r53405
2010-10-13 10:51:20 +00:00
Max Horn
02322c562c
SWORD25: Get rid of Kernel::GetMicroTicks()
...
svn-id: r53403
2010-10-13 10:41:30 +00:00
Eugene Sandulenko
063cb5d84c
SWORD25: Enforced code naming conventions in math/*
...
svn-id: r53392
2010-10-13 00:09:32 +00:00
Eugene Sandulenko
54ccc8f4c9
SWORD25: Enforced code naming conventions in script/*
...
svn-id: r53391
2010-10-13 00:08:28 +00:00
Eugene Sandulenko
1e15d8efb7
SWORD25: Enforced code naming conventions in sfx/ and reservice.h
...
svn-id: r53390
2010-10-13 00:07:27 +00:00
Eugene Sandulenko
8582c1ad57
SWORD25: Enforse code naming conventions in PackageManager and Sword25Engine
...
svn-id: r53380
2010-10-13 00:02:51 +00:00
Eugene Sandulenko
736ae4c07a
SWORD25: Return proper path separator
...
svn-id: r53379
2010-10-13 00:01:59 +00:00
Eugene Sandulenko
f85139bbfa
SWORD25: Remove redundant code
...
svn-id: r53378
2010-10-13 00:01:40 +00:00
Paul Gilbert
80521ed5dd
SWORD25: Further savegame work, including savegame screenshots
...
This handles saving (but not yet re-loaded display) of screenshots into savegame files. It also changes the original engine behaviour of temporarily saving the screenshots in a file 'tmp.png' to keeping the raw PNG file data in a memory block.
svn-id: r53373
2010-10-12 23:59:23 +00:00
Eugene Sandulenko
2a918b794a
SWORD25: Fix warning
...
svn-id: r53368
2010-10-12 23:56:47 +00:00
Eugene Sandulenko
573dafefbb
SWORD25: Got rid of FMODExSound class
...
svn-id: r53364
2010-10-12 23:55:24 +00:00
Eugene Sandulenko
69cae2e7dd
SWORD25: Got rid of OpenGLGfx class
...
svn-id: r53356
2010-10-12 23:51:36 +00:00
Eugene Sandulenko
c59603ddba
SWORD25: Get rid of ScummVMInput class
...
svn-id: r53354
2010-10-12 23:50:19 +00:00
Eugene Sandulenko
ccb1644568
SWORD25: Got rid of ScummVMPackageManager
...
svn-id: r53353
2010-10-12 23:49:42 +00:00
Paul Gilbert
5c228cea0b
SWORD25: Fixes to the savegame saving code
...
svn-id: r53351
2010-10-12 23:48:50 +00:00
Paul Gilbert
3fe2778970
SWORD25: Fix to array reversal, fixing path-finding
...
svn-id: r53349
2010-10-12 23:48:09 +00:00
Paul Gilbert
3e9610c601
SWORD25: Fix for path-finding
...
svn-id: r53348
2010-10-12 23:47:48 +00:00
Eugene Sandulenko
06bce68860
SWORD25: Comply to the code conventions for several classes
...
svn-id: r53310
2010-10-12 23:32:32 +00:00
Eugene Sandulenko
086f5961b6
SWORD25: unsigned int -> uint
...
svn-id: r53309
2010-10-12 23:30:00 +00:00
Eugene Sandulenko
0cdb2ded85
SWORD25: unsigned char -> byte
...
svn-id: r53308
2010-10-12 23:26:48 +00:00
Paul Gilbert
08237f5d98
SWORD25: Changed save path missing message to an error() call
...
svn-id: r53283
2010-10-12 23:15:39 +00:00
Paul Gilbert
ee753bf031
SWORD25: Bugfix so that EVENT_QUIT quits the game
...
svn-id: r53280
2010-10-12 23:14:23 +00:00
Eugene Sandulenko
f1e7fb28a0
SWORD25: Fix early engine quit. Now it runs, hurray!
...
svn-id: r53268
2010-10-12 23:10:15 +00:00
Paul Gilbert
9efd8bac26
SWORD25: Removed now redundant 'using namespace std' lines
...
svn-id: r53263
2010-10-12 23:07:55 +00:00
Eugene Sandulenko
b01994a53b
SWORD25: removed BS_ prefix from rest of the classes.
...
The things which are intentionally left with the prefix:
BS_LOG, BS_ASSERT, BS_Rect, BS_String.
svn-id: r53261
2010-10-12 22:59:01 +00:00
Eugene Sandulenko
be44216e5c
SWORD25: eliminated BS_ prefix in all but kernel/
...
svn-id: r53259
2010-10-12 22:55:59 +00:00