diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3837ccfff5..56888ff8db 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -630,7 +630,11 @@ add_library(native STATIC
native/ext/rapidxml/rapidxml.hpp
native/ext/rapidxml/rapidxml_iterators.hpp
native/ext/rapidxml/rapidxml_print.hpp
- native/ext/rapidxml/rapidxml_utils.hpp)
+ native/ext/rapidxml/rapidxml_utils.hpp
+ native/ext/vjson/json.cpp
+ native/ext/vjson/json.h
+ native/ext/vjson/block_allocator.cpp
+ native/ext/vjson/block_allocator.h)
include_directories(native)
# rapidxml is headers only so we can't make a lib specific for it
include_directories(native/ext/rapidxml)
@@ -1063,6 +1067,7 @@ set(NativeAppSource
UI/GamepadEmu.cpp
UI/UIShader.cpp
UI/OnScreenDisplay.cpp
+ UI/PluginScreen.cpp
UI/ui_atlas.cpp)
if(ANDROID)
set(NativeAppSource ${NativeAppSource} android/jni/ArmEmitterTest.cpp)
diff --git a/Common/ArmEmitter.cpp b/Common/ArmEmitter.cpp
index 126b2bedfd..ac3be35e6f 100644
--- a/Common/ArmEmitter.cpp
+++ b/Common/ArmEmitter.cpp
@@ -127,11 +127,10 @@ void ARMXEmitter::MOVI2F(ARMReg dest, float val, ARMReg tempReg, bool negate)
// VFP Encoding for Imms: <7> Not(<6>) Repeat(<6>,5) <5:0> Zeros(19)
bool bit6 = (conv.u & 0x40000000) == 0x40000000;
bool canEncode = true;
- for (u32 i = 0, mask = 0x20000000; i < 5; i++)
+ for (u32 mask = 0x20000000; mask >= 0x2000000; mask >>= 1)
{
if (((conv.u & mask) == mask) == bit6)
canEncode = false;
- mask >>= 1;
}
if (canEncode)
{
diff --git a/Core/HW/MediaEngine.cpp b/Core/HW/MediaEngine.cpp
index 39480e929d..bab88fe39c 100644
--- a/Core/HW/MediaEngine.cpp
+++ b/Core/HW/MediaEngine.cpp
@@ -416,6 +416,7 @@ bool MediaEngine::stepVideo(int videoPixelMode) {
int MediaEngine::writeVideoImage(u8* buffer, int frameWidth, int videoPixelMode) {
if ((!m_pFrame)||(!m_pFrameRGB))
return false;
+ int videoImageSize = 0;
#ifdef USE_FFMPEG
// lock the image size
int height = m_desHeight;
@@ -424,7 +425,6 @@ int MediaEngine::writeVideoImage(u8* buffer, int frameWidth, int videoPixelMode)
u8 *data = m_pFrameRGB->data[0];
u16 *imgbuf16 = (u16 *)buffer;
u16 *data16 = (u16 *)data;
- int videoImageSize = 0;
switch (videoPixelMode) {
case TPSM_PIXEL_STORAGE_MODE_32BIT_ABGR8888:
@@ -477,13 +477,13 @@ int MediaEngine::writeVideoImageWithRange(u8* buffer, int frameWidth, int videoP
int xpos, int ypos, int width, int height) {
if ((!m_pFrame)||(!m_pFrameRGB))
return false;
+ int videoImageSize = 0;
#ifdef USE_FFMPEG
// lock the image size
u8 *imgbuf = buffer;
u8 *data = m_pFrameRGB->data[0];
u16 *imgbuf16 = (u16 *)buffer;
u16 *data16 = (u16 *)data;
- int videoImageSize = 0;
if (width > m_desWidth - xpos)
width = m_desWidth - xpos;
diff --git a/Qt/Native.pro b/Qt/Native.pro
index e20249c78f..779598a65e 100755
--- a/Qt/Native.pro
+++ b/Qt/Native.pro
@@ -29,6 +29,14 @@ SOURCES += ../native/ext/cityhash/city.cpp
HEADERS += ../native/ext/cityhash/*.h
INCLUDEPATH += ../native/ext/cityhash
+# VJSON
+
+SOURCES += ../native/ext/vjson/json.cpp \
+ ../native/ext/vjson/block_allocator.cpp
+HEADERS += ../native/ext/vjson/json.h \
+ ../native/ext/vjson/block_allocator.h
+INCLUDEPATH += ../native/ext/vjson
+
# Stb_image
SOURCES += ../native/ext/stb_image/stb_image.c
diff --git a/Qt/PPSSPP.pro b/Qt/PPSSPP.pro
index 268f8ff79d..7161d85b9c 100755
--- a/Qt/PPSSPP.pro
+++ b/Qt/PPSSPP.pro
@@ -43,6 +43,7 @@ SOURCES += ../UI/EmuScreen.cpp \
../UI/GamepadEmu.cpp \
../UI/GameInfoCache.cpp \
../UI/OnScreenDisplay.cpp \
+ ../UI/PluginScreen.cpp \
../android/jni/TestRunner.cpp \
../UI/UIShader.cpp \
../UI/ui_atlas.cpp
diff --git a/Qt/mainwindow.cpp b/Qt/mainwindow.cpp
index 8e756ee8e5..9e33b29969 100644
--- a/Qt/mainwindow.cpp
+++ b/Qt/mainwindow.cpp
@@ -113,7 +113,6 @@ void MainWindow::UpdateMenus()
ui->action_FileQuickSaveState->setEnabled(!enable);
ui->action_CPUDynarec->setEnabled(enable);
ui->action_CPUInterpreter->setEnabled(enable);
- ui->actionUse_MediaEngine->setEnabled(enable);
ui->action_DebugDumpFrame->setEnabled(!enable);
ui->action_DebugDisassembly->setEnabled(!enable);
ui->action_DebugMemoryView->setEnabled(!enable);
@@ -131,7 +130,6 @@ void MainWindow::UpdateMenus()
ui->action_CPUDynarec->setChecked(g_Config.bJit);
ui->action_OptionsFastMemory->setChecked(g_Config.bFastMemory);
ui->action_OptionsIgnoreIllegalReadsWrites->setChecked(g_Config.bIgnoreBadMemAccess);
- ui->actionUse_MediaEngine->setChecked(g_Config.bUseMediaEngine);
ui->action_AFOff->setChecked(g_Config.iAnisotropyLevel == 0);
ui->action_AF2x->setChecked(g_Config.iAnisotropyLevel == 2);
@@ -450,12 +448,6 @@ void MainWindow::on_action_OptionsIgnoreIllegalReadsWrites_triggered()
UpdateMenus();
}
-void MainWindow::on_actionUse_MediaEngine_triggered()
-{
- g_Config.bUseMediaEngine = !g_Config.bUseMediaEngine;
- UpdateMenus();
-}
-
void MainWindow::on_action_OptionsControls_triggered()
{
controls->show();
diff --git a/Qt/mainwindow.h b/Qt/mainwindow.h
index 8d5a074b43..59febb71b1 100644
--- a/Qt/mainwindow.h
+++ b/Qt/mainwindow.h
@@ -79,7 +79,6 @@ private slots:
void on_action_CPUInterpreter_triggered();
void on_action_OptionsFastMemory_triggered();
void on_action_OptionsIgnoreIllegalReadsWrites_triggered();
- void on_actionUse_MediaEngine_triggered();
// Controls
void on_action_OptionsControls_triggered();
diff --git a/Qt/mainwindow.ui b/Qt/mainwindow.ui
index 012e5568c2..73bd2d4959 100644
--- a/Qt/mainwindow.ui
+++ b/Qt/mainwindow.ui
@@ -196,7 +196,6 @@
-
@@ -706,14 +705,6 @@
Frameskip
-
-
- true
-
-
- Use MediaEngine
-
-
diff --git a/native b/native
index 2f46baa138..3a51252fb9 160000
--- a/native
+++ b/native
@@ -1 +1 @@
-Subproject commit 2f46baa138febef0cb6ef8f1a086056dde09a5f1
+Subproject commit 3a51252fb9c44f1d95941ce11c5cd53a3d0cf05c