Age | Commit message (Collapse) | Author |
|
This makes the name match with the name of the STL function with the same
behavior.
|
|
Janitorial removed function call which had a side effect.
Thus the actor image load code crashed.
|
|
|
|
Now sound is properly saved/restored. Implemented savegame versioning.
Compatibility with old saves pertained.
|
|
|
|
When reallocation is unsuccessful, the passed buffer is not freed. In this case, assigning the result (NULL) will result in a leak of the original memory buffer.
See http://msdn.microsoft.com/en-us/library/kkedhy7c.aspx
|
|
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
|
|
This fixes exit menu.
|
|
|
|
|
|
This just uses the provided filename rather than trying to recreate
it with a hard-coded target (causing crashes with other targets).
(Also, add an error check rather then crashing there, just in case.)
|
|
|
|
- Savegame thumbnails are now created using a flat image format,
instead of PNG. This allows us to remove the PNG encoding code used
in the engine. Note that the saved games we create cannot be used
with the original engine anyway, so this change does not break
savegame compatibility with the original game (it's already broken).
- Compatibility is preserved with older saved games that were made with
ScummVM.
- Moved the embedded thumbnail reading code out of the PNG loader class,
to stop it from needlessly checking every PNG file.
- With this change, libpng is no longer required for the sword25 engine
|
|
|
|
|
|
PNGLoader is able to load images embedded in saved games already. This
helps remove some duplicate code
|
|
|
|
|
|
byte depth.
I am not 100% sure whether the surfaces all use the same format as the screen,
but a quick test showed that it still works fine. In case this is wrong please
set them up with the correct format.
|
|
|
|
|
|
Plus some extra white space changes by myself.
|
|
|
|
|
|
|
|
engine
libpng is still needed for PNG encoding (for thumbnails in saved games of sword25), but
since we'll probably drop support for the original saved games anyway, the PNG encoding
code will ultimately be removed
svn-id: r55723
|
|
svn-id: r55664
|
|
On my system, sizeof(png_uint_32) == 8, while sizeof(int) == 4.
svn-id: r55504
|
|
svn-id: r55464
|
|
warning/error/debugC calls
svn-id: r55462
|
|
In the other cases I've found in the code, the colour components are
stored in the order B, G, R and A. Assume that's the case here too. I
hope that is correct. It doesn't seem to break anything obvious.
svn-id: r55255
|
|
svn-id: r54385
|
|
svn-id: r54045
|
|
svn-id: r54040
|
|
svn-id: r54002
|
|
A new header file common/forbidden.h is included by scummsys.h and it
re-#defines numerous symbols like fopen(), fread(), system(), etc. with
garbage, in order to provoke compile errors in any code using them.
If a .cpp file really *must* use any of these (e.g. because it is a
backend file), then these redefinitions can be disabled by #defining
FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever
this is done, an explanatory comment should be added.
Note that this system cannot catch all "bad" usages (notably the Lua
code in the sword25 engine), as it can only work if scummsys.h is
included.
svn-id: r53961
|
|
The interlaced part is untested since I do not know any place
in the game where interlaced data is used.
svn-id: r53757
|
|
Only CF_ARGB32 was supported anyway.
svn-id: r53756
|
|
This looses some flexibility when it comes to supporting other image
formats. But since the game does not use other image formats, this seems
rather irrelevant, compared to how much simpler the code now is.
svn-id: r53755
|
|
svn-id: r53754
|
|
This also gets rid of an evil use of atexit.
svn-id: r53753
|
|
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
|
|
svn-id: r53626
|
|
svn-id: r53623
|
|
svn-id: r53621
|
|
svn-id: r53611
|
|
svn-id: r53563
|
|
svn-id: r53477
|
|
Unfortunately I cannot test this, so watch our for regressions.
svn-id: r53451
|
|
svn-id: r53450
|