mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Buildfix for Blackberry, Linux, Symbian, non-ffmpeg platforms, Meego, ...
This commit is contained in:
1 parent
62f8727bca
commit
29d1e40c79
9 files changed
+19
-24
No files matched your search
+6
-1
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -196,7 +196,6 @@
|
||||
<addaction name="action_OptionsFastMemory"/>
|
||||
<addaction name="action_OptionsIgnoreIllegalReadsWrites"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionUse_MediaEngine"/>
|
||||
</widget>
|
||||
<addaction name="menuCore"/>
|
||||
<addaction name="menuControls"/>
|
||||
@@ -706,14 +705,6 @@
|
||||
<string>Frameskip</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionUse_MediaEngine">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Use MediaEngine</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
||||
+1
-1
Submodule native updated: 2f46baa138...3a51252fb9.
Reference in new issue
Block a user