Matthew Hoops
b367772b5f
VIDEO: Add support for QuickTime video track edit lists
2011-12-12 12:28:48 -05:00
Johannes Schickel
8ff9e0cbff
GUI: Fix GUIO flags again.
...
The GUIO flags use an escape sequence for octal numbers. Starting with
18e84f9c11
GUIO_MIDICMS used "\008" which
resulted in the CMS flag adding a zero into the flags and thus terminating the
GUIO flag string.
2011-12-04 15:54:32 +01:00
athrxx
18e84f9c11
GUI: fix GUIO_NOSPEECH/GUIO_NOSFX settings
2011-12-04 15:05:00 +01:00
Filippos Karapetis
c65146cde1
COMMON: Added Croatian language (for a localized version of BS2.5)
2011-11-18 17:52:26 +02:00
Eugene Sandulenko
5420ad7619
Merge pull request #114 from tsoliman/keymapper2
...
KEYMAPPER: Keymapper improvements 2
2011-11-17 14:22:48 -08:00
Alyssa Milburn
5647637ea2
COMMON: Move <new> include into scummsys.h.
...
The header contains forbidden symbols on some platforms, and the
simplest solution seems to be to include it here. This also includes
it from all the portdefs.h files, except the Symbian one. Probably
the FIXME and the #if can be removed once it's known to work.
2011-11-17 12:46:44 +01:00
Strangerke
bab4b6f729
LAUNCHER: Introduce GUIO0() in order to replace GUIO1(GUIO_NONE)
2011-11-16 22:38:58 +01:00
Johannes Schickel
f14eba23d9
COMMON: Improve storage management of Array.
...
Now our Array class distinguishs between initialized and uninitialized
objects. It furthermore always calls the destructor of no longer contained
elements. This should help with non-POD objects stored in our Array class.
Thanks to Bertrand for his feedback on this.
2011-11-16 19:28:02 +01:00
Johannes Schickel
c2fd35c9ed
COMMON: Make value parameter of fill a const reference.
2011-11-16 18:16:40 +01:00
Johannes Schickel
61795739f8
COMMON: Rename Common::set_to to Common::fill.
...
This makes the name match with the name of the STL function with the same
behavior.
2011-11-16 18:06:30 +01:00
Tarek Soliman
2df4b5385c
COMMON: Remove ascii check from KeyState::operator==
...
ascii is used for display and text input. Operator== shouldn't be used in those cases.
Besides, it breaks the keymapper for non-ascii keys like KEYCODE_LEFT
2011-10-27 10:46:21 -05:00
Strangerke
9912d7b856
GUI: Add GUIO EGA Dithering option
...
This will be used to disable the EGA dithering option
2011-10-24 16:51:18 +02:00
Strangerke
cfa42fee80
LAUNCHER: Add GUIO_NOASPECT to SCUMM engine
2011-10-23 21:45:02 +02:00
Johannes Schickel
3a196478c6
ALL: Reduce assignment of "" to Common::String.
...
When clearing an existant object clear() should be used.
When constructing objects (or using default values for parameters) the
constructor of String without any argument should be used.
This changes only a few instances I noticed while looking over some recent
commit logs.
2011-10-23 20:04:03 +02:00
Eugene Sandulenko
32972a5ffb
AD: Switched rest of the engines to new GUIO
2011-10-23 17:53:13 +01:00
Eugene Sandulenko
77c65648b1
AD: Swtich GUI options to a char array.
...
This eliminates nasty limitation of caping number of flags to 31.
Current code has limitation of 255 flags, though.
Only SCUMM engine is converted, rest do not even compile.
Detection of fan talkie MI is broken as it has to be implemented
differently.
2011-10-23 17:53:13 +01:00
Sven Hesse
42b39cb7ec
COMMON: Extend some method comments in Common::BitStream
...
Adding examples to getBits() and addBit().
2011-10-21 00:19:02 +02:00
Sven Hesse
657ee2da59
COMMON: Fix potential UB while shifting Common::BitStream
...
Shifting a 32-bit value by more than 31 is undefined.
2011-10-21 00:19:02 +02:00
Eugene Sandulenko
f5e4d63a77
Merge pull request #80 from DrMcCoy/newbitstream
...
COMMON: Rewrite Common::BitStream as a template
2011-10-20 09:27:26 -07:00
anotherguest
8475d7f142
Symbian: Must define scumm_va_copy also for Symbian
2011-10-11 09:10:21 +02:00
Alyssa Milburn
2ffdd0d3b7
COMMON: Include hidden files in FSDirectory cache and detection.
...
The cache issue has been discussed before, it breaks accessing files
beginning with a dot on POSIX. The change to the advancedDetector
to see hidden files was suggested by AdamRi on IRC.
2011-10-08 14:36:34 +02:00
Matthew Hoops
e1dc4db7aa
Merge remote branch 'upstream/master' into pegasus
...
Conflicts:
video/qt_decoder.cpp
2011-10-07 14:34:22 -04:00
Matthew Hoops
711d0ff037
COMMON: Ensure numTypes is set to 0 on close
2011-10-07 11:32:57 -04:00
Johannes Schickel
164604805e
COMMON: Unbreak ConfigFile::renameSection.
...
It will still not work when the new section name is already taken, but at
at least when it is not taken it should work now.
2011-10-07 00:16:21 +02:00
Johannes Schickel
7f55737f9c
COMMON: Remove unused code in config-file.cpp.
2011-10-07 00:16:21 +02:00
Matthew Hoops
7390d327f1
COMMON: Ensure numTypes is set to 0 on close
2011-09-29 16:58:22 -04:00
Matthew Hoops
e90287f7f1
COMMON: Add numerator/denominator getters for Rational
2011-09-17 21:16:36 -04:00
Matthew Hoops
3b9ab4f5cf
COMMON: Add function to find the intersecting rectangle
2011-09-17 12:02:15 -04:00
Johannes Schickel
3ddea4952d
COMMON: Some minor formatting fixes in translation code.
...
Done by running astyle over the files.
2011-11-13 01:43:41 +01:00
Eugene Sandulenko
022857a371
COMMON: Fix warning
2011-11-02 22:09:17 +00:00
Torbjörn Andersson
a010038492
JANITORIAL: Remove unnecessary semicolons
2011-10-29 11:23:44 +02:00
Sven Hesse
f1724f1637
COMMON: Rewrite BitStream as a template
...
This rewrites BitStream as a template, allowing for more different
memory layouts of the actual bit data.
2011-08-27 23:37:07 +02:00
Eugene Sandulenko
35aa235e4b
Merge pull request #79 from clone2727/agos_cab
...
AGOS: Add support for loading data from Windows (InstallShield) installer archives
2011-08-27 08:21:57 -07:00
Chris Warren-Smith
8a2243ff36
BADA: Remove BADA defined check. Was a temp fix for simulator build
2011-08-21 16:39:08 +10:00
Chris Warren-Smith
59739a7a0e
BADA: Initial BADA port implementation
2011-08-21 16:37:06 +10:00
Matthew Hoops
f408456d14
COMMON: Add wrapper for inflating headerless zlib data
2011-08-20 16:41:10 -04:00
Johannes Schickel
59200bf426
SCUMM: Fix compilation when translation support is disabled.
...
For this I added a convenience version of getLanguageYesNo, which works on the
currently setup GUI translation language. All other code which requires this
acan also use it instead of having to worry about the USE_TRANSLATION and thus
having two code paths.
2011-08-20 19:36:54 +02:00
Eugene Sandulenko
03d3b683d2
I18N: Added comments to some of obscure translatable strings
2011-08-20 15:11:47 +01:00
Eugene Sandulenko
a2945ba440
COMMON: Implemented functions for determining localized Y/N equivalent
2011-08-20 12:52:32 +01:00
Eugene Sandulenko
2585de56b6
COMMON: Restore locale <-> Common::Language conversion utils
...
This reverts commit 284b49aabc
.
2011-08-20 12:52:29 +01:00
Bertrand Augereau
ff98725172
COMMON: intLog2 uses _BitScanReverse on MSVC
2011-08-19 01:05:37 +02:00
Johannes Schickel
5491d9306f
COMMON: Slight formatting fix.
2011-08-18 23:15:38 +02:00
Eugene Sandulenko
dfcefb3c22
RECORDER: Lower I/O in recorder
2011-08-14 12:20:19 +01:00
Johannes Schickel
00d25a77a9
RECORDER: Defer mutex deletion to destructor.
...
Since we now call deinit after a game has been run, otherwise RTL would be
broken. See bug report #3388982 "valgrind errors when doing multiple RTL".
2011-08-09 15:04:26 +02:00
Eugene Sandulenko
83eb8e7ab6
RECORDER: Implement time compensation for playback
2011-08-09 08:37:00 +01:00
Eugene Sandulenko
1d50a31830
RECORDER: Give name to recoder priority. Added middle button storing.
2011-08-08 20:01:09 +01:00
Eugene Sandulenko
a4029a8e94
RECORDER: Restore event recorder functionality.
...
It was badly broken after refactoring into EventObserver.
Fitst, deinit() method was never called which lead to bad record
files. Then, the concept of counting pollEvent() calls was ignored.
Introduced dispatchPoll() method of EventObserver which is implemented
in EventRecorder. It counts calls so is able to inject events at
more proper time.
Additionally now event times are recorded.
2011-08-08 20:01:07 +01:00
Eugene Sandulenko
4144fef5a7
RECORDER: Add some debug output
2011-08-08 20:01:05 +01:00
Christoph Mallon
ab80b20a30
COMMON: Replace x + ARRAYSIZE(x) by the simpler ARRAYEND(x).
2011-08-07 15:19:08 +02:00
Christoph Mallon
a5a8833c05
COMMON: Add DisposablePtr<T>, which replaces many repeated implementations of a dispose flag.
2011-08-07 15:19:08 +02:00
Christoph Mallon
2f23ff72c1
COMMON: Remove implicit conversion from ScopedPtr<T> to T*.
2011-08-07 15:19:08 +02:00
Christoph Mallon
c6d5d74835
COMMON: Make constants actually const.
2011-08-07 15:19:07 +02:00
Christoph Mallon
c876e87efc
COMMON: Correct error message.
...
The message displays bytes, but capacity is the count of objects, so multiply by their size.
2011-08-07 15:19:07 +02:00
Christoph Mallon
79729d03e0
COMMON: Use correct format specifier.
2011-08-07 15:19:07 +02:00
Christoph Mallon
84220d2ca0
COMMON: Remove superfluous Common:: qualifiers.
2011-08-07 15:19:07 +02:00
Christoph Mallon
b3997f0562
COMMON: Use ScopedPtr<> to simplify resource management.
2011-08-07 15:19:07 +02:00
Christoph Mallon
17044f0784
COMMON: Simplify initialization of z_stream struct.
2011-08-07 15:19:06 +02:00
Christoph Mallon
23a0f5318c
JANITORIAL: Remove trailing empty lines.
2011-08-07 13:53:33 +02:00
Littleboy
539bf5317f
COMMON: Add notifyError() and clearError() to the TaskbarManager, used to notify the user that an error happened through the taskbar icon
2011-08-06 15:25:32 -04:00
Johannes Schickel
bcd07d35bb
OSYSTEM: Mention that our OSystem graphics API is not thread safe.
...
Based on f621f6a505
and the fact that our OpenGL
based backends do not (and sometimes cannot easily) implement it in a thread
safe manner.
2011-08-06 18:55:32 +02:00
Alyssa Milburn
df3bc62a3a
COMMON: Change param type of processDelayMillis to fix build.
2011-08-06 18:14:28 +02:00
D G Turner
ad936e9f8c
COMMON: Corrected Previous Commit.
...
Common::String class is in common/str.h, not string.h...
2011-08-06 15:52:36 +01:00
D G Turner
fb0a05c4cd
COMMON: Fix Missing Dependency In Timer Header.
...
This should fix the PSP build.
2011-08-06 15:49:11 +01:00
Eugene Sandulenko
baf65bc872
RECORDER: Added stub for delayMillis() processing
2011-08-06 11:31:12 +01:00
Eugene Sandulenko
2fa17c44ed
JANITORIAL: Remove SVN keywords
2011-08-06 11:30:47 +01:00
Eugene Sandulenko
78f1ea7690
OSYSTEM: extended installTimerProc() with timer ID parameter
2011-08-06 11:28:35 +01:00
Alyssa Milburn
a8896be85e
COMMON: Initialize more z_stream fields before calling inflateInit2.
...
The zlib documentation and examples claim this is needed, as spotted
by LordHoto.
2011-08-04 21:55:28 +02:00
Oystein Eftevaag
9044e17499
Merge pull request #52 from CeRiAl/macosx-sparkle
...
MACOSX: Add Sparkle support
2011-08-02 16:09:58 -07:00
Johannes Schickel
950faa4143
COMMON: Limited gcc specific intLog2 to gcc 3.4 or newer.
...
Older gcc versions did not include __builtin_clz, which made the PS2 port
fail to compile, since it uses 3.2.2.
2011-07-24 20:18:21 +02:00
Johannes Schickel
a1bfbe65ba
COMMON: Add an optimized intLog2 implementation for gcc using __builtin_clz.
...
This is done as discussed here:
54f25aa843
2011-07-24 19:54:49 +02:00
Johannes Schickel
b609100a56
COMMON: Let intLog2 return an int instead of uint32, since it should return -1 for 0.
2011-07-24 19:53:48 +02:00
CeRiAl
f60d6f7a97
MACOSX/UPDATES: Streamline UpdateManager
...
Moved UpdateManager related code from backends/modular-backend.* to
common/system.*. Added switch --enable/disable-updates to be able
to disable updates support generally.
2011-07-19 21:35:37 +02:00
CeRiAl
828f1884b4
MACOSX: Add Sparkle support
2011-07-19 21:33:01 +02:00
Littleboy
da60ff3ded
JANITORIAL: Fix MSVC warnings
...
- Conversion from double to float
- Unary minus operator applied to unsigned type
- ARRAYSIZE redefinition
2011-07-19 14:12:07 -04:00
Matthew Hoops
9ad45e28a1
COMMON: Fix some formatting
2011-07-19 10:31:03 -04:00
Matthew Hoops
6334ec413f
COMMON: Move cosine/sine tables out of header files
...
Access is now restricted to using the getSineTable()/getCosineTable() helper functions.
2011-07-19 00:45:16 -04:00
D G Turner
54f25aa843
COMMON: Renamed Integer Log2 function from log2 to intLog2.
...
This avoids naming collisions with system libraries on some platforms
i.e. DS, DC where the log2 is realised by macro.
2011-07-19 02:29:13 +01:00
Sven Hesse
45f1f1275c
COMMON: Document the BitStream a bit more
2011-07-19 01:48:45 +02:00
clone2727
6370984b22
Merge pull request #50 from clone2727/bink
...
Add support for Bink video to SCUMM HE
2011-07-18 16:04:39 -07:00
Matthew Hoops
26d15ce675
COMMON: Fix comment
2011-07-18 11:53:47 -04:00
Matthew Hoops
87b4ef5547
COMMON: Update code from eos
2011-07-18 10:28:10 -04:00
Matthew Hoops
e6171fbb74
COMMON: Update class documentation to say they're now used by SCUMM
2011-07-18 10:21:20 -04:00
Matthew Hoops
c4d3a86010
COMMON: Remove USE_BINK checks from header files
2011-07-18 10:13:50 -04:00
Matthew Hoops
a50abde1b1
BUILD: Allow for disabling Bink support
2011-07-13 12:08:26 -04:00
Littleboy
8e75d9c84b
COMMON: Update documentation comment for TaskbarManager slot
2011-07-06 14:33:40 -04:00
Matthew Hoops
7dc7271316
COMMON: Remove unused vector2orientation function
2011-07-03 13:32:05 -04:00
Matthew Hoops
9dd8650872
COMMON: Cleanup BitStream
...
Fix mismatched new[]/free and restored a missing statement
2011-07-02 19:44:04 -04:00
Johannes Schickel
7e4224e52a
COMMON: Fix compilation when USE_HASHMAP_MEMORY_POOL is not defined.
2011-07-03 00:16:07 +02:00
Matthew Hoops
4ace7f626b
VIDEO: Add Bink video decoder
...
Based on eos' code which is in turn based on FFmpeg's code
2011-07-02 16:36:37 -04:00
Matthew Hoops
b44ea652ed
COMMON: Add DCT math code
...
Based on eos' code which is based on FFmpeg's code
2011-07-02 15:30:22 -04:00
Matthew Hoops
f311a7ee67
COMMON: Add RDFT math code
...
Based on eos' code which is based on FFmpeg's code
2011-07-02 15:28:09 -04:00
Matthew Hoops
3aefa913fa
COMMON: Add an FFT math handler
...
Based on eos' code which is based on FFmpeg's code
2011-07-02 15:23:49 -04:00
Matthew Hoops
0aa58b9033
COMMON: Add a Huffman bitstream decoder
...
Based on eos' code
2011-07-02 15:20:34 -04:00
Matthew Hoops
1d4ec6f1d1
COMMON: Add some simple math utilities
...
Based on eos' code
2011-07-02 15:15:04 -04:00
Matthew Hoops
6ff94e2554
COMMON: Add a BitStream class
...
Based on eos' BitStream
2011-07-02 15:08:02 -04:00
Ori Avtalion
aa0f307e06
ALL: Require DECLARE_SINGLETON to be used in the Common namepsace
...
Silences the clang warning:
static data member specialization of '_singleton' must
originally be declared in namespace 'Common'; accepted as a C++0x
extension [-Wc++0x-extensions]
Wrapping "namespace Common {}" around the macro assignment causes clang
to complain about a spurious semicolon, and removing the semicolon at
the end of the macro causes some editors to misbehave.
Changing the requirement of using the macro in one namespace (the
global) to another (Common) seems a small price to pay to
silence a warning.
2011-06-30 22:41:41 +03:00
Thierry Crozat
b35f4d31a6
COMMON: Look for translations.dat in Theme path before using SearchMan
2011-06-24 20:21:08 +01:00
Littleboy
b694a78f62
ANALYSIS: Add static casts to is* functions
...
This fixes a potential problem with passing char values that would be sign-extended and yield unexpected results.
See http://msdn.microsoft.com/en-us/library/ms245348.aspx
2011-06-23 08:52:52 -04:00
Julien
53c4a190fc
COMMON: Add abort() to the list of forbidden symbols
2011-06-23 15:11:38 +08:00
Thierry Crozat
2109fc7a3c
COMMON: Improve loading of translations data file
...
Now if the header of the file is not correct it continues to look for a
valid file, while before if the first file found was obsolete or corrupted
translation was disabled even if a valid file was present in the search
path.
2011-06-22 22:48:08 +01:00
Eugene Sandulenko
33ce6e60fd
Merge pull request #26 from Littleboy/taskbar
...
Taskbar integration
2011-06-22 13:35:37 -07:00
Johannes Schickel
3b7c91f2a7
COMMON: Move HerculesDimensions enum to SCUMM.
...
The enum is only used inside the SCUMM engine so it is rather pointless to
keep it in common/util.h right now. Also if we really want it in some common
place it should probably be better in graphics/ too.
2011-06-21 16:59:50 +02:00
Willem Jan Palenstijn
5674dda4cc
COMMON: Fix conflicting comment
2011-06-20 16:27:12 +02:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
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]*$//'
2011-06-20 00:59:48 +02:00
Max Horn
b81207a04e
COMMON: Replace some vsnprintf/STRINGBUFLEN uses by vformat
2011-06-18 01:36:16 +02:00
Max Horn
e792adb1b8
COMMON: Add vformat() function (Common::String analog to vsprintf)
2011-06-18 01:36:15 +02:00
Max Horn
f7c1e7d002
COMMON: Remove default implementation of OSystem::logMessage
2011-06-17 20:50:41 +02:00
Eugene Sandulenko
94ad45b058
Merge pull request #30 from tsoliman/configure-enhancement-warning-clean
...
Configure enhancement warning clean
2011-06-17 10:19:57 -07:00
Max Horn
da3fff8ab3
COMMON: Make use of Common::parseBool
2011-06-17 10:38:16 +02:00
Tarek Soliman
4d0bba314d
ENGINES: Warn user about games marked with ADGF_UNSTABLE flags
...
ADGF_UNSTABLE is always warned about.
ADGF_TESTING is only warned about when running
configure with --enable-relase.
Both warnings are subject to the enable_wip_game_warning
config option.
2011-06-16 13:37:13 -05:00
Julien
599695bc4f
COMMON: Change TaskbarManager to the new module slot interface
2011-06-16 14:27:06 -04:00
Littleboy
9614834548
BACKENDS/COMMON/GUI: Remove complete support for TaskbarManager when taskbar integration is not enabled
2011-06-16 14:23:28 -04:00
Littleboy
7458073bad
COMMON: Update TaskbarManager header with better documentation and examples of use
2011-06-16 14:23:20 -04:00
Littleboy
28aa4f0f33
COMMON: Add overall documentation to TaskbarManager interface
2011-06-16 14:23:17 -04:00
Littleboy
e1dc9cdc0b
BACKENDS: Add support for count status to TaskbarManager
...
- Show the number of found games when using the massadd dialog
2011-06-16 14:23:12 -04:00
Littleboy
cd7822a29f
BACKENDS: Add engine-level accessor for TaskbarManager
2011-06-16 10:35:24 -04:00
Littleboy
c0ec09ac66
BACKENDS: Implement Win32 taskbar progress state and recent list
2011-06-16 10:30:06 -04:00
Littleboy
71e457783e
BACKENDS: Add generic TaskbarManager class to handle taskbar integration
2011-06-16 10:26:51 -04:00
Max Horn
7be9a57524
COMMON: Fix code formatting, rename stuff for consistency
2011-06-15 23:21:54 +02:00
Vladimir
e4c9ae7a54
COMMON: fixed resize
2011-06-15 17:30:43 +02:00
Vladimir
e3178397ce
COMMON: added assign(T*, T*)
2011-06-15 17:29:52 +02:00
Thierry Crozat
38c9988938
COMMON: Fix crash in TranslationManager when reading long strings
...
It was writing data beyond the end of a buffer. This change makes
sure this does not happen. It only changes reading of the messages
since the language codes, charset names and contexts are always
much smaller than the buffer.
2011-06-14 23:15:50 +01:00
Max Horn
7ab553d72a
COMMON: Do not try to read from res forks of non-existant files
2011-06-10 22:30:03 +02:00
Max Horn
28c5d298f5
COMMON: Fix OSystem docs
2011-06-08 14:39:30 +02:00
Max Horn
fce7f90a94
BACKENDS: Shuffle backends class hierarchy and module initialization
2011-06-08 14:29:22 +02:00
Max Horn
0b7f475e35
BACKENDS: Add OSystem::resetGraphicsScale() default implementation
2011-06-08 12:10:49 +02:00
Alyssa Milburn
bdd5256e15
COMMON: Add headers needed for delete calls.
2011-06-08 11:44:08 +02:00
Max Horn
997f0a1900
BACKENDS: All backends use _savefileManager now, adapt OSystem accordingly
2011-06-07 14:57:58 +02:00
Max Horn
f13e671759
BACKENDS: All backends use _timerManager now, adapt OSystem accordingly
2011-06-07 14:57:58 +02:00
Max Horn
04afdf7c7d
BACKENDS: Move more 'manager slots' from ModularBackend to OSystem
2011-06-07 14:57:56 +02:00
Thierry Crozat
a605c7fd69
OSYSTEM: displayMessageOnOSD() now accepts non-ASCII strings
...
It should now accept strings encoded using the current
TranslationManaged charset (e.g. translated text).
2011-06-06 23:20:10 +01:00
Max Horn
c1b68a7fd7
COMMON: Clarify & correct OSystem::displayLogFile() docs
2011-06-06 17:56:36 +02:00
Max Horn
0403cfc060
COMMON: Attempt to make 'forbidden symbol' error more helpful
2011-06-06 17:10:03 +02:00
Max Horn
0a2fb9a465
COMMON: Make more symbols forbidden
2011-06-06 17:05:35 +02:00
Max Horn
c81e94b252
BACKENDS: Unify EventManager setup
2011-06-06 16:13:57 +02:00
Max Horn
0e20bc0086
COMMON: Remove PS2 / NDS hacks in system.cpp
2011-06-06 15:39:05 +02:00
Max Horn
c847522422
BACKENDS: Add OSystem::getDefaultConfigFileName
...
This is used to provide default implementations for createConfigWriteStream
and createConfigReadStream, which can be used by most backends.
Note that backends can still override createConfigRead/WriteStream;
this could be useful if settings on some port are not stored in a
regular file (think 'Windows registry', for a hypothetical example).
2011-06-06 15:30:21 +02:00
Max Horn
afb06b51cc
BACKENDS: Unify AudioCD manager instantiation
2011-06-06 15:02:33 +02:00
Alyssa Milburn
6842227ac2
COMMON: Add kInfo LogMessageType.
2011-06-06 12:26:01 +02:00
Max Horn
a6e5b97e9f
COMMON: Remove vfprintf call from XML parser
2011-06-06 11:19:09 +02:00
Max Horn
ce32745d9c
BACKENDS: Replace OSystem::disableCursorPalette by setFeatureState calls
2011-06-04 11:55:56 +02:00
Max Horn
6575cd195b
COMMON: Clarify OSystem feature flags docs a bit
2011-06-04 11:55:56 +02:00
Max Horn
91b889e2d3
COMMON: Rename kFeatureCursorHasPalette -> kFeatureCursorPalette
2011-06-04 11:55:56 +02:00
Max Horn
0a0258edcf
COMMON: Let Common::normalizePath normalize '..' in paths
...
There are some unit tests to verify that this works correctly.
There is a small chance that this causes regressions in weird setups.
2011-06-03 17:33:07 +02:00
Max Horn
3cc2e5b927
COMMON: Access mac res fork via FSNode instead of StdioStream
...
This fixes linker problems with the unit tests on Mac OS X. it is also
"more proper" to use the high-level FSNode API. StdioStream is a
(relatively) low-level wrapper intended for use inside of backends only.
2011-06-03 17:30:30 +02:00
Max Horn
279a5b4f32
BACKENDS: Add OSystem::displayLogFile interface + OSX implementation
2011-06-03 13:36:04 +02:00
Matthew Hoops
547fd1bdca
COMMON: Cleanup QuickTime variable and struct naming
2011-06-03 00:58:29 -04:00
Matthew Hoops
2e06681698
COMMON: Begin objectifying QuickTimeParser::SampleDesc further
...
This is preparation for multiple video and audio tracks
2011-06-02 23:44:40 -04:00
Johannes Schickel
d2a8e8023e
COMMON: Implement two simple workaround wrappers for _vsnprintf and _snprintf for MSVC.
...
This should assure vsnprintf and snprintf will now also always null
terminate the result even for MSVC.
Currently the functions are placed in scummsys.h, but that causes us
to include two standard C library headers there (for MSVC at least).
This is not particulary nice, so we should think of a better solution
here.
2011-06-01 22:18:28 +02:00
Johannes Schickel
007a33515f
COMMON: Add note about us defining vsnprintf as _vsnprintf for older MSVC versions.
2011-06-01 17:31:33 +02:00
Johannes Schickel
2f8e9b954e
COMMON: Add comment about MSVC's _snprintf.
...
This includes a FIXME, since _snprintf behaves differently to snprintf.
Not only in the return value (which is a minor difference, since we usually
do not use it), but also since it does not always include a terminating null.
2011-06-01 17:28:59 +02:00
clone2727
49a8f7675f
Merge pull request #20 from scott-t/t7g-ios
...
T7G iOS support
2011-06-01 07:04:05 -07:00
Max Horn
a4d105c902
COMMON: Move SDL endian check a bit down
2011-06-01 10:43:02 +02:00
Matthew Hoops
aa49b38c5a
Merge remote branch 'upstream/master' into t7g-ios
...
Conflicts:
engines/groovie/script.cpp
2011-05-31 14:16:29 -04:00
Max Horn
c86a6c466f
COMMON: Include SDL_endian.h instead of SDL_byteorder.h
2011-05-31 18:08:25 +02:00
Max Horn
811b257014
COMMON: Simplify OverlayColor definition
...
This typedef still should be moved somewhere else. Maybe a header file
of its own?
2011-05-31 14:22:19 +02:00
Max Horn
e06ca6560f
COMMON: Move scumm_str(n)icmp declaration to str.h
2011-05-31 14:19:25 +02:00
Max Horn
1c198cec1b
COMMON: Move some weird WinCE/MSVC snprintf-#define around
2011-05-31 14:06:47 +02:00
Max Horn
8654e846e4
COMMON: Shorten endianess / mem align guessing logic in scummsys.h
2011-05-31 14:05:37 +02:00
Max Horn
2d6be5d077
COMMON: Move more stuff from scummsys.h to portdefs.h
2011-05-31 13:56:28 +02:00
Max Horn
9c3e2e43bd
COMMON: Move some code from scummsys.h to relevant portdefs.h files
2011-05-31 13:48:03 +02:00
Johannes Schickel
263adb5cfc
COMMON: Limit pragma warning use in algorithm.h to MSVC.
...
Since we only want to disable a MSVC specific warning with it and other
compilers might have different warnings numbers it is safer to only target
MSVC here.
2011-05-29 21:12:42 +02:00
Matthew Hoops
9539017ee3
ALL: initialise -> initialize
2011-05-25 11:17:11 -04:00
Matthew Hoops
eea482fa43
ALL: behaviour -> behavior
2011-05-25 10:50:46 -04:00
Max Horn
39076ef972
BUILD: Rename UNIX #define to POSIX
2011-05-25 13:23:03 +02:00
Littleboy
89e954c653
COMMON: Silence MSVC warning for Common::gcd calls with an unsigned type
2011-05-24 00:56:48 -04:00
Max Horn
c82f117488
COMMON: Add putc(har) and getc(har) to forbidden symbols
...
Sorry, buildbot...
2011-05-24 00:19:32 +02:00
Max Horn
20cad6e8b6
COMMON: Modify Base::processSettings, get rid of Common::kArgumentNotProcessed
...
Instead of defining a hacked up Common::Error code, split the return
value of processSettings into two parts: An error code, and a value
which indicates whether the specified command was completely handled
by processSettings or not.
2011-05-23 19:39:25 +02:00
Max Horn
6f6051a9e1
COMMON: Mark more symbols as forbidden
2011-05-23 19:12:26 +02:00
Max Horn
8e3aafd30d
COMMON: Provide our own implementations for scumm_str(n)icmp
...
This takes up a tiny little bit of extra binary size, but gets
rid of some awful #ifdef hackery.
2011-05-23 19:12:25 +02:00
Max Horn
904739cc00
COMMON: Document that Stream API is meant to imitate ISO C FILE semantics
2011-05-18 13:06:41 +02:00
Max Horn
9b2ef340dc
COMMON: Forbid use of some more symbols
2011-05-17 12:58:34 +02:00
Max Horn
d165292234
COMMON: Remove unused RandomSource destructor, clarify comments, cleanup
2011-05-17 12:23:41 +02:00
Max Horn
fc9b8d2a71
COMMON: Remove auxillary RandomSource constructor
2011-05-17 12:17:28 +02:00
Max Horn
4cbe4ede66
COMMON: Registers RandomSources in constructor with the event recorder
...
This also removes the dependency of engines on the event recorder header
and API, and will make it easier to RandomSources that are not properly
registered.
2011-05-17 12:17:26 +02:00
Oystein Eftevaag
305c13a4aa
IPHONE/OSX: Updated xcode project
2011-05-16 22:26:58 -04:00
Max Horn
88319a727a
COMMON: Fix inserting an array into itself under certain conditions
2011-05-16 15:23:17 +02:00
Willem Jan Palenstijn
ffd0b20af7
COMMON: Don't allocate zero-sized storage in array
2011-05-16 14:44:45 +02:00
Max Horn
9081ab4402
COMMON: Unify Array memory allocation
...
We also change how alloc failures are handled: Instead of using
assert(), which is usually disabled in release builds on various
platforms, we now *always* catch this situation and invoke error() if
necessary.
2011-05-16 14:22:54 +02:00
Max Horn
eedb2d721f
COMMON: Change Array::insert_aux to immediately assign newly allocated memory to _storage
2011-05-16 13:58:59 +02:00
Max Horn
85d5eec950
COMMON: Set _capacity to just _size in Common::Array::operator=
2011-05-16 13:50:06 +02:00
Max Horn
0bbb412249
COMMON: RemoveAvoid redundant typedefs if config.h is present
2011-05-14 10:41:17 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Matthew Hoops
a1d41da096
Merge remote branch 'upstream/master' into t7g-ios
...
Conflicts:
audio/decoders/qdm2.h
common/util.cpp
engines/groovie/music.cpp
engines/groovie/resource.h
video/qt_decoder.cpp
video/qt_decoder.h
2011-05-11 00:30:28 -04:00
Max Horn
9511af6682
COMMON: Always prefer GCC 4.x versions of READ_UINT*/WRITE_UINT*
...
In addition, we use them if in GCC >= 3.3 if unaligned access is
possible. The GCC variants of these macros also contain protection
against overzealous compilers' static aliasing optimizations.
2011-05-10 15:38:18 +02:00
Max Horn
8754c86686
COMMON: Refactor typedefs a bit
2011-05-10 11:02:08 +02:00
Max Horn
76780268f2
COMMON: Refactor scummsys.h
2011-05-09 16:23:22 +02:00
Max Horn
3920cfe69e
COMMON: Do not #undef _MSC_VER
2011-05-09 16:23:22 +02:00
Max Horn
49ab6d0289
COMMON: If config.h is present, don't use hardcoded settings from scummsys.h
2011-05-09 16:23:22 +02:00
Max Horn
dfff22e56b
COMMON: Unify definition of scumm_str(n)icmp
2011-05-09 16:23:22 +02:00
Max Horn
db82d282ea
N64: Remove (u)int64 typedefs from common/scummsys.h
2011-05-09 16:23:21 +02:00
Max Horn
b4058a696a
COMMON: Tweak some comments
2011-05-09 14:32:03 +02:00
Sven Hesse
88d562a361
COMMON: Add a class SafeSubReadStream
...
SafeSubReadStream is basically a SeekableSubReadStream that
re-seek()s the parent stream before each read(). That way, more than
one SafeSubReadStream of the same parent stream can be used safely
at the same time, at the cost of increasing IO.
2011-05-06 16:47:48 +02:00
Matthew Hoops
44ad7d45ba
COMMON: Remove convertCrsrCursor()
...
Graphics::MacCursor is its replacement
2011-05-05 19:48:57 -04:00
Matthew Hoops
029bfc0c60
COMMON: Fix spelling of 'Philips'
2011-05-03 15:55:40 -04:00
Max Horn
2fa63ca015
COMMON: Forbid use of getcwd&getwd; add macro to enable unistd.h compatibility
2011-05-03 14:30:25 +02:00
Max Horn
bdc7414f80
COMMON: Don't declare a fake printf
2011-05-03 11:41:01 +02:00
Johannes Schickel
c0bd496c90
COMMON: Fix compilation when zlib support is enabled.
2011-05-02 17:19:35 +02:00
Max Horn
59e77ed667
ALL: Mark printf and various other symbols as forbidden
...
Right now, a few places in the frontend code still use printf and
consorts. We mark the affected files with a FIXME for now, and
add a dedicated exception for each. To be fixed!
Also tweak FORBIDDEN_SYMBOL_REPLACEMENT to hopefully really always
enforce a compiler error
2011-05-02 16:31:31 +02:00
Thierry Crozat
6d0451105b
OSYSTEM: Clarify doc for getGraphicsMode()
2011-04-29 12:52:35 +01:00
Ori Avtalion
e52d54b55e
NDS: Fix compilation
2011-04-28 22:19:35 +03:00
Ori Avtalion
a88e355b2d
COMMON: Fix compilation on backends that USE_RGB_COLOR
2011-04-28 19:58:45 +03: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
Ori Avtalion
3e01d35281
JANITORIAL: Format more forward declarations to follow convention
2011-04-28 12:32:01 +03:00
Ori Avtalion
cd6ee0589d
JANITORIAL: Format forward declarations to follow convention
2011-04-28 12:20:34 +03:00
Littleboy
55650f364c
COMMON: Add proper error handling to the ZipArchive class
...
- Add check in listMembers and skip files that can't be enumerated.
- Add checks for all function calls in createReadStreamForMember (and no longer return a stream from an uninitialized buffer when the file cannot be read).
2011-04-25 07:20:16 -04:00
Littleboy
62e8233009
COMMON: Fix MSVC warning in PEResources::parseResourceLevel()
2011-04-24 17:08:07 -04:00
Johannes Schickel
c6112f7383
COMMON: Do not call ReadStream::eos in SubReadStream::read.
...
Instead I moved the call to ReadStream::eos into SubReadStream::eos.
fuzzie pointed out that in certain cases this resulted in a lot of eos calls
before. Those were rather needlessly, since checking the eos bit of the
decorated stream in read does not give any advantage over checking it when
the client code really wants to test the eos flag.
2011-04-19 18:08:47 +02:00
Max Horn
3a574199b0
COMMON: Cleanup names/handling of some error codes
2011-04-18 18:22:04 +02:00
Max Horn
1037ed2470
COMMON: Clarify error naming conventions
...
Not all error codes comply with these yet.
2011-04-18 18:22:04 +02:00
Max Horn
cd2fcaf4ca
COMMON: Remove kInvalidPathError
2011-04-18 18:22:03 +02:00
Max Horn
7c13aa48cd
COMMON: Tweak extra text handling in Common::Error
2011-04-18 18:22:03 +02:00
Max Horn
7ccba1fced
COMMON: Fix typo
2011-04-18 18:22:03 +02:00
Max Horn
bac8fa70fd
COMMON: Cleanup error messages
2011-04-18 18:22:03 +02:00
Max Horn
73f04118f3
COMMON: Rename Error to ErrorCode, introduce new Error class
2011-04-18 18:22:02 +02:00
Eugene Sandulenko
ce0cc0ee85
COMMON: Partial fix for #3087922 : COMMON/BASE/BACKENDS: Code analysis warnings
2011-04-17 15:25:06 +03:00
Matthew Hoops
6d153f311c
Merge remote branch 'upstream/master' into t7g-ios
...
Conflicts:
video/qt_decoder.cpp
2011-04-13 16:04:29 -04:00
Matthew Hoops
4366f3632c
COMMON: Cleanup QuickTime's readSTTS()
2011-04-12 14:01:42 -04:00
Max Horn
f1471689cf
COMMON: Let MKTAG always return an uint32
2011-04-12 17:23:21 +02:00
Max Horn
58b4cc0220
COMMON: Use correct MKTAG definition, stupid
2011-04-12 17:04:49 +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
a8b3501252
COMMON: Drop totally obsolete & outdated DEC C++ 'support'
2011-04-12 16:41:36 +02:00
Klaus Reimer
48dbbdcd74
COMMON: Fix usage of wrong variable when keymapper is active
2011-04-12 11:05:48 +02:00
Matthew Hoops
4a39baa095
COMMON: Fix QuickTime track duration
2011-04-10 21:11:02 -04:00
Matthew Hoops
9d0e5a7132
ALL: Add/update some comments
2011-04-10 15:11:03 -04:00
Matthew Hoops
7c5dfaa04c
COMMON: Parse the MPEG-4 esds atom
2011-04-08 22:46:19 -04:00
Matthew Hoops
faee277978
COMMON: Add a DisposeAfterUse flag to QuickTimeParser
2011-04-08 17:04:29 -04:00
Matthew Hoops
50d2519552
COMMON: Add iOS platform type
2011-04-07 10:52:58 -04:00
Matthew Hoops
db71efd94f
VIDEO: Split the QuickTime parser from the QuickTime VideoDecoder
2011-04-07 00:21:48 -04:00
Max Horn
c4ae3b90db
COMMON: Fix (harmless) int <-> uint mismatch
2011-04-04 09:53:26 +02:00
dhewg
b065007c8f
COMMON: Unbreak EventRecorder a little
2011-03-29 22:13:31 +02:00
dhewg
d83a83ef50
JANITORIAL: Remove/comment unused vars
...
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02:00
Littleboy
5a1874e3d9
COMMON: Add SaveFileManager::copySavefile() and update SaveFileManager::renameSavefile() to use it
2011-03-24 18:51:58 -04:00
Max Horn
4172414e35
COMMON: Remove TODO from struct Event
...
I moved this TODO to the Wiki TODO page and extended it there. Yet
while I originally wrote it, I now think that we are probably best off
keeping things as they are.
2011-03-23 15:25:46 +01:00
md5
23aabc950a
COMMON: Removed custom PI define (M_PI should be used instead)
2011-03-19 02:39:38 +02:00
md5
3924fc0bad
COMMON: Enable math constants under Visual Studio
2011-03-19 01:56:10 +02:00
Matthew Hoops
e815102659
Merge branch 'pe_exe' of https://github.com/clone2727/scummvm into clone2727-pe_exe
2011-03-07 17:07:59 -05:00
Matthew Hoops
bc3638834b
COMMON: Add TODO to make compressed NE EXE handling transparent
2011-03-07 13:18:33 -05:00
Matthew Hoops
c7d7e50155
COMMON: Add a sanity assert
2011-03-07 13:14:10 -05:00
Matthew Hoops
d2f8103a3b
COMMON: Fix WinResourceID::getID()
2011-03-07 13:12:43 -05:00
Matthew Hoops
826197cf76
COMMON: Make the operator=(String) function be a const reference instead
2011-03-07 13:11:28 -05:00
Matthew Hoops
6582b77f1c
SCUMM: Use the new WinCursor code in SCUMM HE
...
Also, updated the MacResManager cursor code to reflect the SCUMM resource extractor code changes
2011-03-06 19:57:18 -05:00
Matthew Hoops
c66233f83e
GRAPHICS: Split the NE cursor code from the NEResources class
...
Now the code lies in Graphics and all cursors are not cached upon opening an exe. The engine is now in charge of caching which cursors it wants.
2011-03-04 23:17:57 -05:00
dhewg
b84b56b248
COMMON: Remove newlines from debug()
...
They were interfering with my precious debug spew :P
2011-03-02 23:18:34 +01:00
Matthew Hoops
e053373dd3
COMMON: Add a key color field to NECursor
2011-02-22 20:11:50 -05:00
Matthew Hoops
a2a0b13de2
COMMON: Begin to merge some NE/PE code
...
The ID classes are now common to both. The files have been renamed to better illustrate their purpose.
2011-02-22 20:03:18 -05:00
Matthew Hoops
3995610ce3
COMMON: Add a convenience function to ignore the language field
2011-02-22 12:33:41 -05:00
Matthew Hoops
d5c494a239
COMMON: Add default Windows PE types
2011-02-22 02:02:00 -05:00
Matthew Hoops
91287b2e18
COMMON: Add basic PE EXE parser
...
Much thanks to fuzzie for her assistance
2011-02-22 01:47:11 -05:00
D G Turner
a925286361
COMMON: Correct NE Resource Loader for Osystem RGBA->RGB Palette Change.
2011-02-20 06:12:21 +00:00