Eugene Sandulenko
f3becaddf1
SWORD25: Enforce code naming conventions in gfx/image/imageloader*
...
svn-id: r53623
2010-10-19 20:52:47 +00:00
Eugene Sandulenko
bbd95da899
SWORD25: Fix engine exit when running without theoradec
...
svn-id: r53622
2010-10-19 20:52:06 +00:00
Eugene Sandulenko
d94435eebd
SWORD25: Enforce code naming conventions in gfx/graphicengine*
...
svn-id: r53621
2010-10-19 20:51:21 +00:00
Eugene Sandulenko
0d1d481894
SWORD25: Properly implement GraphicEngine::fill()
...
Now all transitions and dimming out screen at exit dialog is supported.
svn-id: r53620
2010-10-19 20:50:29 +00:00
Torbjörn Andersson
490d4aef0e
LASTEXPRESS: Changed some spaces to tabs
...
svn-id: r53618
2010-10-19 19:54:15 +00:00
Florian Kagerer
f6a43d980a
SCUMM/FM-TOWNS JAPANESE: minor fix in last commit
...
svn-id: r53617
2010-10-19 17:03:36 +00:00
Florian Kagerer
1d87f434a2
SCUMM/FM-TOWNS JAPANESE: implement flipped text
...
(used in the MI1 circus scene after Guybrush gets shot out of the cannon)
svn-id: r53616
2010-10-19 16:58:27 +00:00
Yotam Barnoy
193a0c6ca1
PSP: disabling the ability to build Broken Sword 2.5. Revert once fixed.
...
Lua is very problematic for the PSP build because it wants a) libpng built with the plugins which is not great, but not that bad. b) It calls several PSP functions directly, and it turns out PSP functions can only be called from the main executable -- they're in flash and must be fixed up using custom PSP utils. Until this mechanism is changed so that for example lua calls functions in the main executable, the PSP cannot be built.
The following functions need to be removed/moved to the main executable:
All socket functions (should be disabled anyway)
Clock()
Rename()
Additionally, png functions should ideally also be called only from the main executable.
svn-id: r53615
2010-10-19 16:17:45 +00:00
Andrew Kurushin
0e7abce271
SAGA: fix submit 53486 "Added sanity checks for realloc() calls - bug report #3087852 ". zero count realloc may return NULL as valid value
...
svn-id: r53614
2010-10-19 15:31:07 +00:00
Martin Kiewitz
f8c7243938
SCI: fixing possible deadlock inside clearPlaylist
...
thx to ajax16384
svn-id: r53613
2010-10-19 14:53:39 +00:00
Paul Gilbert
6a1e874447
SWORD25: Fix for Valgrind identified memory leak
...
svn-id: r53611
2010-10-19 10:03:38 +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
8f5eee67db
SWORD25: Destroy singletons upon engine exit (untested, may lead to crash upon exit)
...
svn-id: r53609
2010-10-19 09:44:29 +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
Max Horn
f020ec9077
LASTEXPRESS: Fix warning about empty loop body
...
svn-id: r53605
2010-10-19 09:43:08 +00:00
Max Horn
ebf9911649
SWORD25: Work around for bug in Mac OS X 10.2 SDK
...
svn-id: r53604
2010-10-19 09:42:48 +00:00
Paul Gilbert
3b29bda9a1
SWORD25: Added operator= to Polygon class
...
This fixes a corruption where vertice arrays were being copied directly and destroyed prematurely
svn-id: r53603
2010-10-19 09:23:20 +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
Yotam Barnoy
00bf6ab791
PSP: add missing return statements to image viewer
...
svn-id: r53601
2010-10-19 07:37:50 +00:00
Torbjörn Andersson
c1a3689a5d
SWORD25: Fix cppcheck warning
...
svn-id: r53600
2010-10-19 04:59:45 +00:00
Julien Templier
fdaa1b9c61
LASTEXPRESS: Merge parameter creation into resetCurrentParameters()
...
svn-id: r53599
2010-10-19 01:42:00 +00:00
Julien Templier
01669d8de0
LASTEXPRESS: Rewrite resetCurrentParameters to use a temporary var
...
Per LordHoto suggestion, to see if it fixes compilation on motoezx & PS2
svn-id: r53598
2010-10-19 00:45:53 +00:00
Florian Kagerer
f05110f3f6
SCUMM/FM-TOWNS JAPANESE: fix font spacing issues
...
(improves MI1 intro)
svn-id: r53597
2010-10-18 23:54:35 +00:00
Johannes Schickel
f82ee445d3
LASTEXPRESS: Add md5sums of German TLE.
...
svn-id: r53596
2010-10-18 23:40:36 +00:00
Julien Templier
9cbae5252f
LASTEXPRESS: Check for a valid sequence in SequenceFrame::getName
...
This allows the demo to fail gracefully to the debugger instead of crashing
svn-id: r53595
2010-10-18 23:06:52 +00:00
Johannes Schickel
70566beb78
SWORD25: Since ssize_t might not be available on all platforms use size_t for the pointer cast now.
...
svn-id: r53594
2010-10-18 22:30:44 +00:00
Johannes Schickel
a821d65efe
SWORD25: Fix compilation on 64bit arches by casting a pointer to ssize_t instead of int.
...
This should be no permanent solution. I added a small fixme comment near the
cast so it won't be forgotten.
svn-id: r53593
2010-10-18 22:17:41 +00:00
Johannes Schickel
521751e8d7
SWORD25: Use const_cast to cast away constness.
...
This fixes a few warnings/errors in the LUA code. I added some FIXMEs at the
places where the casts happen, since usually this casting indicates bad
design.
svn-id: r53592
2010-10-18 22:17:18 +00:00
Julien Templier
5c2bcadd21
CREDITS: Add lastexpress engine
...
svn-id: r53590
2010-10-18 21:35:15 +00:00
Florian Kagerer
5ff68b49d7
FM-TOWNS AUDIO: improve thread safety
...
svn-id: r53589
2010-10-18 21:16:58 +00:00
Julien Templier
0c72b1800d
LASTEXPRESS: Fix GCC warnings
...
svn-id: r53588
2010-10-18 21:03:28 +00:00
Julien Templier
6a67bfd85d
LASTEXPRESS: Implement 3 more AI logic functions
...
svn-id: r53587
2010-10-18 20:39:54 +00:00
Eugene Sandulenko
f7645fea45
Revert "COMMON: Implement Common::vprintf(). Patch by littleboy"
...
svn-id: r53586
2010-10-18 20:20:14 +00:00
Eugene Sandulenko
7f7a6cdafd
Revert "GUI: Use vprintf in Console class. Patch by littleboy"
...
svn-id: r53585
2010-10-18 20:19:58 +00:00
Eugene Sandulenko
56b1f8ddee
Revert "CONFIGURE: Added va_copy detection for Last Express engine"
...
svn-id: r53584
2010-10-18 20:19:44 +00:00
Eugene Sandulenko
a33d473535
CONFIGURE: Added va_copy detection for Last Express engine
...
svn-id: r53583
2010-10-18 20:02:27 +00:00
Max Horn
ceae152531
SCUMM: Silence MSVC 2010 code analysis warning
...
svn-id: r53582
2010-10-18 19:29:56 +00:00
Eugene Sandulenko
dd7a2f75c0
SCUMM: INSANE: fix a long standing bug discovered by static code analysis
...
svn-id: r53581
2010-10-18 19:19:28 +00:00
Eugene Sandulenko
937cf6cd7a
CONFIGURE: Plug in Last Express engine
...
svn-id: r53580
2010-10-18 19:18:06 +00:00
Eugene Sandulenko
86d650926f
LASTEXPRESS: Merge in the engine.
...
svn-id: r53579
2010-10-18 19:17:38 +00:00
Eugene Sandulenko
c92d2bc234
SOUND: Add support for LastExpress version of IMA ADPCM sound.
...
Patch by littleboy.
svn-id: r53578
2010-10-18 19:10:57 +00:00
Eugene Sandulenko
05b3f2a071
GUI: Use vprintf in Console class. Patch by littleboy
...
svn-id: r53577
2010-10-18 19:07:24 +00:00
Eugene Sandulenko
4b5640883c
COMMON: Implement Common::vprintf(). Patch by littleboy
...
svn-id: r53576
2010-10-18 19:04:41 +00:00
Max Horn
277113f600
SCUMM: Fix out of bound access (discovered by Code Analysis in MS VS2010; thanks to aquadran for helping verify the fix)
...
svn-id: r53575
2010-10-18 19:03:24 +00:00
Max Horn
cda2c950d6
SCUMM: Simplify SO_LOAD_STRING code
...
svn-id: r53574
2010-10-18 18:56:40 +00:00
Max Horn
32f1a9ad8b
SCUMM: Add paranoia check
...
svn-id: r53573
2010-10-18 18:56:20 +00:00
Max Horn
6175c2bb19
SCUMM: Fix potential bug in ScummEngine::resStrLen.
...
In particular, it might happen that ScummEngine::resStrLen is called
while the _scriptPointer is stale. In that case, it would be working
with the stale pointer. If the code calling it then uses fetchScript*()
methods to read the string whose length was just computed, then it would
read potentially *different* data (e.g. copyScriptString or
loadPtrToResource could have been affected).
I am not sure if this actually could have caused bugs somewhere; it might
even be provable that a script relocation cannot happen in all places
that invoke resStrLen. But for now it's much easier to make the code
safe than to verify that theory ;).
Also simplified some related code.
svn-id: r53572
2010-10-18 18:55:24 +00:00
Max Horn
d69a63c145
SCUMM: Move common code from ScummEngine::fetchScript* to new method.
...
The new method is called refreshScriptPointer(). Also renamed
getScriptEntryPoint() to resetScriptPointer() in an attempt to highlight
both the similarity and difference between the two.
svn-id: r53571
2010-10-18 18:43:13 +00:00