Added full software mode to Qt port.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2861 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed paladdr when in 8bpp + 2 words pattern data

That's kind of weird we never noticed this bug before...
anyways, it's fixed for both OpenGL and software renderers.
It fixes Dinosaur Island menu screen.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2862 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed the fix in my previous commit.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2863 d7be59e3-070e-4b9a-85a1-4646befae34d
Forgot to fix the opengl fix too.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2864 d7be59e3-070e-4b9a-85a1-4646befae34d
Implemented sprite color calculation mode 3.

This fixes transparency in Dinosaur Island menu.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2865 d7be59e3-070e-4b9a-85a1-4646befae34d
Added warning to GCC when MSVC will fail.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2866 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed compilation on MSVC... again...

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2867 d7be59e3-070e-4b9a-85a1-4646befae34d
This is supposed to implement vdp1 "manual mode".

I'm pretty sure this change will break stuff...
but it fixes at least "King the Spirits" and doesn't
break the bios and the few games I tested...

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2868 d7be59e3-070e-4b9a-85a1-4646befae34d
Not initialising variables is not a good idea...

This fixes the crash in slam & jam.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2869 d7be59e3-070e-4b9a-85a1-4646befae34d
SH2Init now return -1 when it fails (sic)

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2870 d7be59e3-070e-4b9a-85a1-4646befae34d
Update to the android toolchain for the dynarec.

We need an android compatible assembler.
We're also setting a cmake variable so we can know
later during the build that we're building for Android.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2871 d7be59e3-070e-4b9a-85a1-4646befae34d
Adding a config.h.in file...

Ok, this change is somehow related to the Android port, but may
be interesting for any other port that want to build the Yabause
library with CMake but use something else to build itself.
This creates a config.h file in the build directory, this file
should be filled with #define matching the -D used when building
the library.
For now, I only moved SH2_DYNAREC to this file as that's what I
need for the Android, but I should move others soon...

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2872 d7be59e3-070e-4b9a-85a1-4646befae34d
Connected the Yabause log to the Android one.

Define YAB_DEBUG to something useful (for instance "main")
and see Yabause logging in logcat :)

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2873 d7be59e3-070e-4b9a-85a1-4646befae34d
Update to build rules for Android...

Now building the Dynarec on Android.
Also setting clags to -O3 so it's a bit faster even without the Dynarec.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2874 d7be59e3-070e-4b9a-85a1-4646befae34d
Using the Dynarec on Android if available.

We can now use our new config.h file to detect if Dynarec
is available. If it is, we're using it, otherwise we fallback
to the default sh2core.
For now, it seems the Dynarec only works in "Debug" mode...

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2875 d7be59e3-070e-4b9a-85a1-4646befae34d
Removed some asserts as they're hiding calls to genimm when NDEBUG=1.

This fixes crash on the Android port in release mode with dynarec
enabled.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2876 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed mute/unmute of sound in SDL core.

We used to call SDL_PauseAudio to mute sound, but by doing so,
the sound buffer didn't get consumed ending up on games freezing
when sound was muted.
We're now sending silence to SDL when sound is muted.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2877 d7be59e3-070e-4b9a-85a1-4646befae34d
Better "full software mode" for Qt.

The Qt widget is now only updated after a call to swap buffers.
This means the widget is now updated only when it needs to... and
Yabause stop consuming 100% of you CPU while in pause.
But Don't worry, it will keep using 100% of your CPU while running.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2878 d7be59e3-070e-4b9a-85a1-4646befae34d
scsp now save/restore volume and mute after reset.

At first, I wasn't sure who should took care of this: port, scsp
or sound cores. I ended up implementing it in scsp/scsp2 as this
provides the more "consistent" behaviour:
as long as you don't call mute/volume functions those settings
don't change... and it also means the behaviour won't be core or
port dependent.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2879 d7be59e3-070e-4b9a-85a1-4646befae34d
DeIniting the library when user "quits" on Android.

This is important on Android as the process don't really stops
and we ended up initing the library multiple times.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2880 d7be59e3-070e-4b9a-85a1-4646befae34d