Paul Gilbert
798ddfaab5
Merge branch 'master' into hopkins
2012-10-31 09:34:38 +11:00
Strangerke
3f9172c7ec
HOPKINS: Add detection for OS/2 and Win95 full versions
2012-10-17 18:58:45 +02:00
Johannes Schickel
efe2fe7e1f
COMMON: Properly handle error indicator in MemoryWriteStream.
...
Thanks to waltervn for noticing that MemoryWriteStream::write doesn't handle
setting the error indicator properly.
2012-10-09 23:06:25 +02: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
Matthew Hoops
4a458236f6
COMMON: Make QuickTimeParser::readSampleDesc take the desc size
2012-09-09 13:47:40 -04:00
Matthew Hoops
bbf0bbcd64
COMMON: Allow for parsing QuickTime MIDI files
2012-09-05 22:57:10 -04:00
Matthew Hoops
f35e820e9f
Merge remote branch 'upstream/master' into pegasus
2012-09-05 11:45:25 -04:00
Matthew Hoops
2f9b1b67b0
ALL: Mark off some things as used by Pegasus
2012-08-31 22:26:02 -04:00
Alyssa Milburn
31801137b5
Merge remote-tracking branch 'origin/master' into tony
...
Conflicts:
common/coroutines.cpp
common/coroutines.h
devtools/create_project/msbuild.cpp
devtools/create_project/visualstudio.cpp
2012-08-28 15:54:12 +02:00
Matthew Hoops
bb1e60e8b2
Merge remote branch 'upstream/master' into pegasus
...
Conflicts:
AUTHORS
devtools/credits.pl
gui/credits.h
2012-08-26 16:12:25 -04:00
Matthew Hoops
857b92f8ff
Merge pull request #268 from clone2727/video-rewrite
...
VideoDecoder upgrade & partial rewrite
2012-08-26 15:41:56 -04:00
Matthew Hoops
6f9d84665f
COMMON: Add MKTAG16 for 16-bit multi-character constants
2012-08-26 12:38:35 -04:00
Alyssa Milburn
f4b83283f3
COMMON: Fix waiting for multiple coroutine events.
...
This fixes the bWaitAll case of waitForMultipleObjects, and also the
resetting of events later in the function.
2012-08-25 14:05:04 +02:00
Alyssa Milburn
b5a63d6709
COMMON: Remove fprintf/stderr usage from xmlparser.
2012-08-15 00:15:29 +02:00
Matthew Hoops
991710d0a1
VIDEO: Adapt QuickTimeDecoder to the AdvancedVideoDecoder API
2012-07-27 11:32:51 -04:00
Einar Johan Trøan Sømåen
b398dcabaf
COMMON: Add an optional argument to wrapCompressedReadStream, to simplify using streams that can't tell their size()
2012-07-18 13:54:15 +02:00
Filippos Karapetis
2c161796c5
Merge pull request #239 from bluegr/skipsavecompression
...
COMMON: Allow the savefile manager to create uncompressed saves
2012-07-01 11:08:08 -07:00
Thierry Crozat
50136f43c7
COMMON: Expand a bit the KeyState documentation
...
This follows a bug that was found in the Lure engine where keycode
was used in a place where it should have used ascii.
2012-07-01 01:03:49 +01:00
Filippos Karapetis
16adcb5145
COMMON: Simplify the documentation in openForSaving()
...
The new more concise description is courtesy of wjp.
2012-06-25 22:32:00 +03:00
Matthew Hoops
91efe792d5
Merge remote branch 'upstream/master' into pegasus
2012-06-24 09:37:53 -04:00
Filippos Karapetis
c9ace6426e
COMMON: Add a detailed explanation on when to create uncompressed saves
2012-06-21 10:48:06 +03:00
Filippos Karapetis
4c4a127ca2
COMMON: Add documentation regarding the new parameter in openForSaving()
2012-06-21 10:48:04 +03:00
Filippos Karapetis
e10e412bba
COMMON: Allow the savefile manager to create uncompressed saves
...
These are useful in cases where the files can be used in the original
interpreters (such as the exported characters from QFG), in order to avoid
confusion in cases where the users are unaware that these saves are
compressed and are trying to load them in the original interpreters.
2012-06-21 10:48:03 +03:00
Johannes Schickel
4fb9bceabc
Merge pull request #246 from lordhoto/osystem-void-buffers
...
OSYSTEM: Use void buffers for screen/overlay/mouse buffers and proper pitch values for overlay code
2012-06-20 08:02:26 -07:00
Johannes Schickel
1b1b1d6615
Merge pull request #244 from clone2727/football2002-wday
...
COMMON: Add tm_wday to our TimeDate struct
2012-06-17 17:17:06 -07:00
Paul Gilbert
269ea2f6be
COMMON: Change pulseEvent to better reflect how it works in Windows
2012-06-17 17:29:20 +10:00
Matthew Hoops
625f6cc716
Merge remote branch 'upstream/master' into pegasus
2012-06-16 01:43:32 -04:00
Johannes Schickel
aec9b9e22a
ALL: Let overlay related methods in OSystem take a void * and use a proper pitch values.
...
This is a first step to get rid of OverlayColor, which is a requirement for
proper 4Bpp overlay support.
2012-06-16 04:17:14 +02:00
Johannes Schickel
d27d951d0b
BACKENDS: Make OSystem::setMouseCursor take a "const void *" buffer.
...
This is mainly for consistency with OSystem::copyRectToScreen.
2012-06-16 03:28:42 +02:00
Johannes Schickel
31880186e1
BACKENDS: Let copyRectToScreen take a "const void *" instead of "const byte *" as buffer.
...
This removes the need to convert the parameter to copyRectToScreen to
"const byte *", which is commonly used in games, which use Graphics::Surface
to store their graphics data.
2012-06-16 02:18:01 +02:00
Johannes Schickel
51466ecfbb
COMMON: Remove traces of mouse cursor target scale from OSystem docs.
2012-06-13 05:09:02 +02:00
Johannes Schickel
09ea48978a
COMMON: Remove traces of overlay scale from the OSystem documentation.
2012-06-13 05:06:58 +02:00
Johannes Schickel
d99eb1e614
COMMON: Remove last traces of 8bpp overlay support from OSystem docs.
2012-06-13 04:57:55 +02:00
Matthew Hoops
b2f5721e58
COMMON: Add tm_wday to our TimeDate struct
...
Did not adapt bada or ps2 backends as I'm not sure how they should be handled
2012-06-09 20:21:48 -04:00
Paul Gilbert
26bb3d6732
COMMON: Changed pulseEvent to allow calling processes to finish executing first
2012-06-09 17:14:21 +10:00
Eugene Sandulenko
ec92a867da
Merge pull request #243 from lordhoto/cursor-no-scale
...
ALL: Replace cursorTargetScale in OSystem API with a simple "do not scale" logic.
2012-06-08 23:20:28 -07:00
Johannes Schickel
8e7f874db3
COMMON: Make CoroutineScheduler's constructor and destructor private.
...
CoroutineSchedule is a singleton, thus it should not be possible to create
a custom instance of it.
2012-06-07 18:11:38 +02:00
Johannes Schickel
27aa097449
COMMON: Slightly adapt coroutine code to better match our guidelines.
...
I used astyle here, which automatically removes the use of tabs in comments.
2012-06-07 18:06:59 +02:00
Johannes Schickel
b17b38cc36
COMMON: Move coroutine documentation to the header file.
2012-06-07 18:06:13 +02:00
Paul Gilbert
b8989cafc7
COMMON: Merge of pull request #240 , coroutine code cleanup
2012-06-04 21:59:10 +10:00
Johannes Schickel
a401f0a19e
ALL: Replace cursorTargetScale in OSystem API with a simple "do not scale" logic.
...
All uses of the old target scale API actually wanted to disallow scaling of
the mouse cursor. This commit adapts our API to this and thus simplifies
backend implementations.
Some backends, most notable the Wii and Android, did some implementation of
the cursor target scale, which I didn't adapt yet. I added a TODO for the
porters there.
2012-06-03 02:02:57 +02:00
Max Horn
5de3f9c765
ALL: Correct spelling of "Mac OS X" in various places
2012-05-31 10:30:29 +02:00
Paul Gilbert
29ebb2823d
COMMON: Fix comment typo in coroutine comments
2012-05-31 08:06:59 +10:00
Paul Gilbert
415831987d
COMMON: Copied coroutine doxygen method descriptions to the header file
2012-05-29 21:51:10 +10:00
Paul Gilbert
5ba886ce8b
COMMON: Fixed CORO_ADDR parameter names in Doxygen comments
2012-05-29 21:43:23 +10:00
Matthew Hoops
ab45e72e67
COMMON: Move InstallShield code to common
...
The code also now works for both data compressed with sync bytes and without
2012-05-28 16:54:49 -04:00
Paul Gilbert
a2b51174aa
COMMON: Cleaned up coroutine comments
2012-05-25 23:36:18 +10:00
Paul Gilbert
839527a955
COMMON: Fix method error messages
2012-05-25 23:13:55 +10:00
Paul Gilbert
4719fd9900
COMMON: Fix comparison operation on coroutine wait methods
2012-05-25 23:06:24 +10:00
Matthew Hoops
f1f6a82cd5
Merge remote branch 'upstream/master' into pegasus
2012-05-25 00:35:38 -04:00
Matthew Hoops
ed4232cfeb
COMMON: Skip junk found at the end of QuickTime files
...
Can occur in files and is ignored by QuickTime
2012-05-21 18:57:18 -04:00
Paul Gilbert
b63c28c1a0
COMMON: Fix comparison operation on coroutine wait methods
2012-05-20 09:22:14 +10:00
Paul Gilbert
2341570e04
COMMON: Converted Coro context structure definitions to instead use classes.
...
This fixes a known problem with class variables declared in a method's context definition were not having their destructors called.
2012-05-17 20:47:56 +10:00
Paul Gilbert
bd5b65f007
COMMON: Fix compilation of coroutines code when COROUTINE_DEBUG is defined
2012-05-17 20:47:02 +10:00
Paul Gilbert
8153d7868b
COMMON: Improved waiting processes to store what PIDs they're waiting for
...
This is then used in PulseEvent to only execute processes that are specifically waiting on the given PID, rather than all waiting events.
2012-05-17 20:45:31 +10:00
Paul Gilbert
c6810c174e
COMMON: Moved the Tinsel Coroutine code into it's own Common class
2012-05-17 20:39:55 +10:00
Paul Gilbert
8b214ce992
COMMON: Converted Coro context structure definitions to instead use classes.
...
This fixes a problem with member variables declared in a method's context definition that are object instances were not having their destructors called.
2012-05-13 18:51:41 +10:00
Paul Gilbert
8511b9b0cd
COMMON: Fix compilation of coroutines code when COROUTINE_DEBUG is defined
2012-05-13 18:19:40 +10:00
Paul Gilbert
045f93f0fe
COMMON: Improved waiting processes to store what PIDs they're waiting for
...
This is then used in PulseEvent to only execute processes that are specifically waiting on the given PID, rather than all waiting events.
2012-05-13 00:19:04 +10:00
Paul Gilbert
50153aba88
COMMON: Merged the Tinsel & Tony Coroutine schedulers into Common
2012-05-11 23:08:27 +10:00
Matthew Hoops
e80d622fa5
Merge remote branch 'upstream/master' into pegasus
2012-05-04 23:32:29 -04:00
Johannes Schickel
f23ca8b62b
COMMON: Use the file cache in ZipArchive::listMembers for performance.
...
This avoids a new iteration through the .zip file for every listMember call.
Instead it uses the "_hash" HashMap, which already contains all the filenames
and is filled on initializing the ZipArchive by unzOpen.
2012-04-30 00:09:56 +02:00
Matthew Hoops
9971e74c4c
Merge remote branch 'upstream/master' into pegasus
...
Conflicts:
base/plugins.cpp
configure
2012-04-19 08:16:24 -04:00
Filippos Karapetis
a1618c215b
Merge pull request #226 from digitall/sincos
...
Replace large static Sin and Cos tables with dynamically generated ones.
2012-04-19 01:13:47 -07:00
D G Turner
0f66d2c701
COMMON: Update DCT & RDFT to avoid dynamic allocation of Sine/Cos Tables.
2012-04-17 22:12:20 +01:00
D G Turner
aa61c9abd3
COMMON: Refactoring of FFT class to remove repeated fft<x>() functions.
...
The repeated functions expanded from the original DECL_FFT macros are
now replaced by a recursive fft() function.
2012-04-17 20:23:38 +01:00
D G Turner
422334da5a
COMMON: Refactoring of FFT class, removing Cosine Table Reallocations.
...
The cosine tables are now allocated once on object construction.
Also, only the tables necessary (less than or equal to _bits) are
created.
2012-04-16 21:05:21 +01:00
D G Turner
d04717f323
COMMON: Minor refactoring of FFT class, removing DECL_FFT macro.
...
This makes it easier to look at reworking the Cosine Table usage to
prevent repeated reallocation on calc() calls.
2012-04-16 15:24:47 +01:00
D G Turner
f4ba8a6485
COMMON: Replaced static Sine and Cosine tables with dynamic generated.
...
This removes the large static tables from the binary (which saves 500K
to 1Mb of binary size) and replaced them with a class which generates
the required tables as needed in RAM. This has been tested with QDM2
and shows no obvious performance degredation and Memprof shows no
significant rise in RAM usage.
2012-04-14 11:18:55 +01:00
D G Turner
1809b9173c
COMMON: Minor reduction of sine/cosine table size (8 bytes...).
2012-04-13 10:16:48 +01:00
D G Turner
11143d4839
COMMON: Fixes for compiling without USE_BINK enabled.
...
The math utility classes in Common are now used by more than just Bink
Video i.e. Huffman is used by SVQ1, RDFT by QDM2 etc. so need to remove
conditional inclusion of objects in the Common Library.
This was done as these functions are very large wrt. binary size.
This is mainly due to the sine, cosine and log tables which should be
reconsidered as to whether these are needed or can be replaced by
standard sin()/cos() calls.
2012-04-13 09:17:17 +01:00
Matthew Hoops
f58d834cda
COMMON: Add a KBD_META key state flag
2012-04-09 11:18:55 -04:00
Matthew Hoops
5dfa4333d1
COMMON: Hopefully fix AppleDouble files with directories
2012-04-07 21:19:11 -04:00
Joel Teichroeb
f83f5c5677
COMMON: Fix spelling of length
2012-04-04 21:22:31 -07:00
Matthew Hoops
b6374a3103
Merge remote branch 'upstream/master' into pegasus
2012-04-02 10:07:45 -04:00
Matthew Hoops
68e1a04183
AUDIO: Fix QDM2 extra data parsing
2012-03-30 14:40:14 -04:00
Matthew Hoops
e9f8d0e1a2
COMMON: Clean up the QuickTime class a bit
2012-03-30 13:39:49 -04:00
Matthew Hoops
7c4787e0dc
COMMON: Read in QuickTime extra data for SVQ3
2012-03-30 13:39:48 -04:00
Filippos Karapetis
346c1fe461
GUI: Change the undithering checkbox to be an engine-specific option
2012-03-25 18:51:23 +03:00
Eugene Sandulenko
9b2471aeee
Merge pull request #211 from lordhoto/game-gui-options-v2
...
GUI: Game gui options
2012-03-25 01:38:46 -07:00
Matthew Hoops
57abb8f843
COMMON: Make Rect::center() more readable
...
Thanks to Fingolfin for the suggestion
2012-03-22 00:38:12 -04:00
Matthew Hoops
71756bdf4e
Merge remote branch 'upstream/master' into pegasus
2012-03-20 14:49:16 -04:00
Matthew Hoops
3c3576a224
COMMON: Make Rect::center() work properly with odd dimensions
2012-03-20 13:44:20 -04:00
Matthew Hoops
4d65be8264
COMMON: Add a READ_UINT24 macro
...
Complements READ_UINT16 and READ_UINT32
2012-03-20 01:06:48 +01:00
Johannes Schickel
4b2ca672f0
KYRA: Add per-game GUI option support.
2012-03-19 21:04:29 +01:00
Johannes Schickel
82ab3056fa
ENGINES: Implement per-game options caching in AdvancedDetector via GUIO flags.
2012-03-19 21:04:29 +01:00
Matthew Hoops
ee0a05c32e
COMMON: Add a dummy edit when a QuickTime file contains none
...
The edit just takes up the entire length of the track
2012-03-19 11:08:36 -04:00
Johannes Schickel
223794fb38
ALL: Make use of defined() for the preprocessor consistent.
...
This does not change the use of defined for some NDS source files, since they
seem to be (based on?) third party code.
2012-03-17 22:02:44 +01:00
Johannes Schickel
2c0bd426fc
COMMON: Use defined() instead of defined in preprocessor macros.
...
Thanks to clone2727 for noticing this.
2012-03-17 21:23:42 +01:00
Christoph Mallon
a64b5e2a77
ALL: Use GCC_ATLEAST().
2012-03-17 20:09:49 +01:00
Christoph Mallon
757fa01a28
COMMON: Add GCC_ATLEAST(major, minor) to simplify testing for versions of GCC.
2012-03-17 20:09:45 +01:00
Filippos Karapetis
2b57ccfd5e
COMMON: Hopefully fix compilation
...
EVENT_CUSTOM_BACKEND_HARDWARE is only set when ENABLE_KEYMAPPER is set
2012-03-17 15:25:51 +02:00
Eugene Sandulenko
04d50f3703
COMMON: Use String class consistently
2012-03-17 12:55:51 +02:00
Eugene Sandulenko
34198fda35
Merge pull request #203 from fingolfin/guio-cleanup
...
COMMON: GuiOptions cleanup
2012-03-17 03:51:27 -07:00
Eugene Sandulenko
56252909f5
Merge pull request #202 from tsoliman/keymapper-nonkey-inputs
...
KEYMAPPER: Add Gesture Support
2012-03-17 03:46:46 -07:00
Christoph Mallon
e40ba4c135
JANITORIAL: Simply use *x instead of *x.get() on smart pointers.
2012-03-13 15:43:59 +01:00
Johannes Schickel
d7ba69ca27
COMMON: Mention that SafeSeekableSubReadStream is not threading safe.
2012-03-11 00:53:23 +01:00
Johannes Schickel
48efab4e5a
COMMON: Rename SafeSubReadStream to SafeSeekableSubReadStream.
...
It actually inherits from SeekableSubReadStream, so it should be named
accordingly.
2012-03-11 00:51:20 +01:00
Johannes Schickel
5f342562d1
COMMON: Fix formatting in substream.h.
2012-03-10 02:01:34 +01:00
Matthew Hoops
1e734ab48c
COMMON: Add an exists function to MacResManager
2012-03-08 08:02:06 -05:00