Win32: Fix a minor fullscreen bug.
If the window is maximized before going fullscreen, the taskbar appears on top, which is not desirable.
Also, apply the maximized state properly again after exiting, if the user had the window maximized.
Use checked pointers in all function replacements.

Some games are still hitting bugs and there's no way to disable this "fast
memory" without losing graphical effects.  Better to do it evenly than
weird hacks and extra logging/checks.
Disable a bunch of function replacements.

These are just for speed, let's turn them off.  Using a flag because:
 * I think there's still some issue with savestates, not sure.
 * We might swap this flag to a separate option.
Use a lookup for function replacements.

Ought to be a tiny bit quicker.
Don't zero out downcount in replacements.

It doesn't write out js.downcountAmount in any of these cases, so zeroing
it is wrong.
Disable tests and etc. when destroying framebufs.

Fixes #6678.  May fix problems loading savestates as well.
Disassemble bne/etc. using rs, rt order.

The order makes more logical sense from game disassembly, and matches the
assembler.  Fixes #6632.
Show the replaced instruction in disassembly.

Useful while debugging.
Wrong permission in jpn0.pgf. It should have the same as other files (-rw-rw-r--).
Merge pull request #6684 from sergiobenrocha2/master

Wrong permission in jpn0.pgf. It should have the same as other files (-rw-rw-r--).
Use glStencilMask() to partially simulate amask.

Alpha won't be correct, though.
Update native
Merge branch 'stencil-mask' of github.com:unknownbrackets/ppsspp into unknownbrackets-stencil-mask
Merge branch 'unknownbrackets-stencil-mask'
Merge pull request #6680 from unknownbrackets/replace-funcs

Disable most replacements and use checked mem access in them
Use correct stencil values with non-add blending.

Otherwise, we get the min/max/etc. value instead.
Also do it here, although may be removed soon.
Buildfix.
One last buildfix (please correct if GL_FUNC_ADD is wrong, I just wanted buildbot to work again). https://github.com/hrydgard/ppsspp/pull/6679 should replace this soon.
Qt: Allow building with system ffmpeg. Also update b.sh to set cmake and qmake flags in case --qt is at the end of the arguments.