Merge branch 'master' into config-io-thread

This commit is contained in:
Henrik Rydgård authored and GitHub committed 2021-10-19 09:42:53 +02:00
commit d278cda7e2
17 files changed
+542 -583

No files matched your search

+2 -4
View File
@@ -354,9 +354,8 @@ if(NOT MSVC)
if(IOS)
elseif(APPLE AND NOT CMAKE_CROSSCOMPILING)
set(MACOSX_VERSION_MIN "10.8")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=${MACOSX_VERSION_MIN}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=${MACOSX_VERSION_MIN} -stdlib=libc++ -U__STRICT_ANSI__")
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.8")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -U__STRICT_ANSI__")
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
elseif(NOT ANDROID)
# TODO: See if we can get rid of no-psabi
@@ -688,7 +687,6 @@ add_library(Common STATIC
Common/LogManager.h
Common/LogReporting.cpp
Common/LogReporting.h
Common/MakeUnique.h
Common/MemArenaAndroid.cpp
Common/MemArenaDarwin.cpp
Common/MemArenaPosix.cpp
-1
View File
@@ -514,7 +514,6 @@
<ClInclude Include="GraphicsContext.h" />
<ClInclude Include="Log.h" />
<ClInclude Include="LogManager.h" />
<ClInclude Include="MakeUnique.h" />
<ClInclude Include="MachineContext.h" />
<ClInclude Include="MemArena.h" />
<ClInclude Include="MemoryUtil.h" />
-1
View File
@@ -45,7 +45,6 @@
<ClInclude Include="DbgNew.h" />
<ClInclude Include="OSVersion.h" />
<ClInclude Include="BitScan.h" />
<ClInclude Include="MakeUnique.h" />
<ClInclude Include="ExceptionHandlerSetup.h" />
<ClInclude Include="MachineContext.h" />
<ClInclude Include="Serialize\Serializer.h">
-42
View File
@@ -1,42 +0,0 @@
#pragma once
#include <memory>
#include <type_traits>
// Custom make_unique so that C++14 support will not be necessary for compilation
template<class T, class... Args,
typename std::enable_if<!std::is_array<T>::value, int>::type = 0>
std::unique_ptr<T> make_unique(Args&&... args)
{
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
template<class T,
typename std::enable_if<std::is_array<T>::value && std::extent<T>::value == 0, int>::type = 0>
std::unique_ptr<T> make_unique(std::size_t size)
{
return std::unique_ptr<T>(new typename std::remove_extent<T>::type[size]());
}
template<class T, class... Args,
typename std::enable_if<std::extent<T>::value != 0, int>::type = 0>
void make_unique(Args&&... args) = delete;
template<class T,
typename std::enable_if<!std::is_array<T>::value, int>::type = 0>
std::unique_ptr<T> make_unique_default_init()
{
return std::unique_ptr<T>(new T);
}
template<class T,
typename std::enable_if<std::is_array<T>::value && std::extent<T>::value == 0, int>::type = 0>
std::unique_ptr<T> make_unique_default_init(std::size_t size)
{
return std::unique_ptr<T>(new typename std::remove_extent<T>::type[size]);
}
template<class T, class... Args,
typename std::enable_if<std::extent<T>::value != 0, int>::type = 0>
void make_unique_default_init(Args&&... args) = delete;
-1
View File
@@ -782,7 +782,6 @@ CheatOperation CWCheatEngine::InterpretNextCwCheat(const CheatCode &cheat, size_
CheatOperation CWCheatEngine::InterpretNextTempAR(const CheatCode &cheat, size_t &i) {
// TODO
_assert_(false);
return { CheatOp::Invalid };
}
+1 -1
View File
@@ -156,7 +156,7 @@ const HLEFunction sceAudiocodec[] = {
{0X3A20A200, &WrapI_UI<sceAudiocodecGetEDRAM>, "sceAudiocodecGetEDRAM", 'i', "xi"},
{0X29681260, &WrapI_UI<sceAudiocodecReleaseEDRAM>, "sceAudiocodecReleaseEDRAM", 'i', "xi"},
{0X9D3F790C, &WrapI_UI<sceAudiocodecCheckNeedMem>, "sceAudiocodecCheckNeedMem", 'i', "xi"},
{0X59176A0F, nullptr, "sceAudiocodec_59176A0F", '?', "" },
{0X59176A0F, nullptr, "sceAudiocodecAlcExtendParameter", '?', "" },
};
void Register_sceAudiocodec()
+2 -2
View File
@@ -965,8 +965,8 @@ void Register_LoadExecForUser()
const HLEFunction LoadExecForKernel[] =
{
{0x4AC57943, &WrapI_I<sceKernelRegisterExitCallback>, "sceKernelRegisterExitCallback", 'i', "i", HLE_KERNEL_SYSCALL },
{0XA3D5E142, nullptr, "LoadExecForKernel_a3d5e142", '?', "" },
{0X28D0D249, &WrapI_CU<sceKernelLoadExec>, "sceKernelLoadExec_28D0D249", 'i', "sx" },
{0XA3D5E142, nullptr, "sceKernelExitVSHVSH", '?', "" },
{0X28D0D249, &WrapI_CU<sceKernelLoadExec>, "sceKernelLoadExecVSHMs2", 'i', "sx" },
{0x6D302D3D, &WrapV_V<sceKernelExitGame>, "sceKernelExitVSHKernel", 'v', "x", HLE_KERNEL_SYSCALL },// when called in game mode it will have the same effect that sceKernelExitGame
};
+4 -4
View File
@@ -96,7 +96,7 @@ static const int MPEG_HEADER_BUFFER_MINIMUM_SIZE = 2048;
// For PMP media
static u32 pmp_videoSource = 0; //pointer to the video source (SceMpegLLi structure)
static int pmp_nBlocks = 0; //number of blocks received in the last sceMpegbase_BEA18F91 call
static int pmp_nBlocks = 0; //number of blocks received in the last sceMpegBasePESpacketCopy call
static std::list<AVFrame*> pmp_queue; //list of pmp video frames have been decoded and will be played
static std::list<u32> pmp_ContextList; //list of pmp media contexts
static bool pmp_oldStateLoaded = false; // for dostate
@@ -2405,7 +2405,7 @@ void Register_sceMpeg()
// This function is currently only been used for PMP videos
// p pointing to a SceMpegLLI structure consists of video frame blocks.
static u32 sceMpegbase_BEA18F91(u32 p)
static u32 sceMpegBasePESpacketCopy(u32 p)
{
pmp_videoSource = p;
pmp_nBlocks = 0;
@@ -2420,13 +2420,13 @@ static u32 sceMpegbase_BEA18F91(u32 p)
p = p + sizeof(SceMpegLLI);
}
DEBUG_LOG(ME, "sceMpegbase_BEA18F91(%08x), received %d block(s)", pmp_videoSource, pmp_nBlocks);
DEBUG_LOG(ME, "sceMpegBasePESpacketCopy(%08x), received %d block(s)", pmp_videoSource, pmp_nBlocks);
return 0;
}
const HLEFunction sceMpegbase[] =
{
{0XBEA18F91, &WrapU_U<sceMpegbase_BEA18F91>, "sceMpegbase_BEA18F91", 'x', "x" },
{0XBEA18F91, &WrapU_U<sceMpegBasePESpacketCopy>, "sceMpegBasePESpacketCopy", 'x', "x" },
{0X492B5E4B, nullptr, "sceMpegBaseCscInit", '?', "" },
{0X0530BE4E, nullptr, "sceMpegbase_0530BE4E", '?', "" },
{0X91929A21, nullptr, "sceMpegBaseCscAvc", '?', "" },
+2 -2
View File
@@ -563,7 +563,7 @@ static const HLEFunction scePower[] = {
{0X7F30B3B1, nullptr, "scePowerIdleTimerEnable", '?', "" },
{0X972CE941, nullptr, "scePowerIdleTimerDisable", '?', "" },
{0X27F3292C, nullptr, "scePowerBatteryUpdateInfo", '?', "" },
{0XE8E4E204, nullptr, "scePower_E8E4E204", '?', "" },
{0XE8E4E204, nullptr, "scePowerGetForceSuspendCapacity", '?', "" },
{0XB999184C, nullptr, "scePowerGetLowBatteryCapacity", '?', "" },
{0X87440F5E, &WrapI_V<scePowerIsPowerOnline>, "scePowerIsPowerOnline", 'i', "" },
{0X0AFD0D8B, &WrapI_V<scePowerIsBatteryExist>, "scePowerIsBatteryExist", 'i', "" },
@@ -603,7 +603,7 @@ static const HLEFunction scePower[] = {
{0X737486F2, &WrapU_UUU<scePowerSetClockFrequency>, "scePowerSetClockFrequency", 'x', "xxx"},
{0X34F9C463, &WrapU_V<scePowerGetPllClockFrequencyInt>, "scePowerGetPllClockFrequencyInt", 'x', "" },
{0XEA382A27, &WrapF_V<scePowerGetPllClockFrequencyFloat>, "scePowerGetPllClockFrequencyFloat", 'f', "" },
{0XEBD177D6, &WrapU_UUU<scePowerSetClockFrequency>, "scePower_EBD177D6", 'x', "xxx"}, // This is also the same as SetClockFrequency
{0XEBD177D6, &WrapU_UUU<scePowerSetClockFrequency>, "scePowerSetClockFrequency350", 'x', "xxx"}, // This is also the same as SetClockFrequency
{0X469989AD, &WrapU_UUU<scePowerSetClockFrequency>, "scePower_469989ad", 'x', "xxx"}, // This is also the same as SetClockFrequency
{0X545A7F3C, nullptr, "scePower_545A7F3C", '?', "" }, // TODO: Supposedly the same as SetClockFrequency also?
{0XA4E93389, nullptr, "scePower_A4E93389", '?', "" }, // TODO: Supposedly the same as SetClockFrequency also?
+3 -3
View File
@@ -92,15 +92,15 @@ void ComputeVertexShaderID(VShaderID *id_out, u32 vertType, bool useHWTransform,
if (doTexture) {
id.SetBit(VS_BIT_DO_TEXTURE);
// UV generation mode. doShadeMapping is implicitly stored here.
id.SetBits(VS_BIT_UVGEN_MODE, 2, gstate.getUVGenMode());
}
if (useHWTransform) {
id.SetBit(VS_BIT_USE_HW_TRANSFORM);
id.SetBit(VS_BIT_HAS_NORMAL, hasNormal);
// UV generation mode. doShadeMapping is implicitly stored here.
id.SetBits(VS_BIT_UVGEN_MODE, 2, gstate.getUVGenMode());
// The next bits are used differently depending on UVgen mode
if (gstate.getUVGenMode() == GE_TEXMAP_TEXTURE_MATRIX) {
id.SetBits(VS_BIT_UVPROJ_MODE, 2, gstate.getUVProjMode());
-3
View File
@@ -352,9 +352,6 @@ void DrawEngineGLES::DoFlush() {
if (g_Config.bSoftwareSkinning && (lastVType_ & GE_VTYPE_WEIGHT_MASK))
useCache = false;
// TEMPORARY
useCache = false;
if (useCache) {
u32 id = dcid_ ^ gstate.getUVGenMode(); // This can have an effect on which UV decoder we need to use! And hence what the decoded data will look like. See #9263
vai = vai_.Get(id);
+4
View File
@@ -25,6 +25,10 @@ If you want to download regularly updated builds for Android, Windows x86 and x6
For game compatibility, see [community compatibility feedback](https://report.ppsspp.org/games).
What's new in 1.12.3
====================
* Fix background music speed. A couple translation fixes.
What's new in 1.12.2
====================
* Fix joystick detection bug on Android.
-1
View File
@@ -608,7 +608,6 @@ namespace MainWindow {
case ID_EMULATION_PAUSE:
NativeMessageReceived("pause", "");
Core_EnableStepping(false);
break;
case ID_EMULATION_STOP:
+2 -2
View File
@@ -3,8 +3,8 @@
xmlns:tools="http://schemas.android.com/tools"
package="org.ppsspp.ppsspp"
android:installLocation="auto"
android:versionCode="112020000"
android:versionName="1.12.2.0">
android:versionCode="112030000"
android:versionName="1.12.3.0">
<!-- Note that versionCode should be in the format xyyzzrrrr. Example: 110030000 -->
<!-- In this same case, versionName should be 1.10.3.0 -->
<!-- Also note that we are overriding these values anyway from gradle. -->
+6
View File
@@ -1082,3 +1082,9 @@ NPJH50352 = true
ULUS10088 = true
ULES00335 = true
ULKS46070 = true
# Valkyrie Profile Lenneth (last video crash, see #6008)
ULUS10107 = true
ULJM05101 = true
ULES00724 = true
ULJM05320 = true
+34 -34
View File
@@ -599,14 +599,14 @@ Zip file does not contain PSP software = El archivo ZIP no contiene software de
[KeyMapping]
Autoconfigure = Autoconfigurar
Autoconfigure for device = Autoconfigurar para dispositivo
Bind All = Bind All
Bind All = Ocultar todo
Clear All = Borrar todo
Default All = Restaurar
Map a new key for = Presiona una tecla para
Map Key = Asignar tecla
Map Mouse = Asignar ratón
Replace = Replace
Show PSP = Show PSP
Replace = Reemplazar
Show PSP = Mostrar PSP
Test Analogs = Probar analogs
You can press ESC to cancel. = Puedes presionar Esc para cancelar.
@@ -725,33 +725,33 @@ Vol - = Vol -
Wlan = WLAN
[MemStick]
Already contains PSP data = Already contains PSP data
Create or Choose a PSP folder = Create or Choose a PSP folder
Current = Current
DataCanBeShared = Data can be shared between PPSSPP regular/Gold
DataCannotBeShared = Data CANNOT be shared between PPSSPP regular/Gold!
DataWillBeLostOnUninstall = Warning! Data will be lost when you uninstall PPSSPP!
DataWillStay = Data will stay even if you uninstall PPSSPP.
Done! = Done!
EasyUSBAccess = Easy USB access
Failed to move some files! = Failed to move some files!
Failed to save config = Failed to save config
Free space = Free space
Manually specify PSP folder = Manually specify PSP folder
MemoryStickDescription = Choose where to keep PSP data (Memory Stick)
Move Data = Move Data
Selected PSP Data Folder = Selected PSP Data Folder
No data will be changed = No data will be changed
PPSSPP will restart after the change = PPSSPP will restart after the change
Skip for now = Skip for now
Starting move... = Starting move...
That folder doesn't work as a memstick folder. = That folder doesn't work as a memstick folder.
USBAccessThrough = USB access through Android/data/org.ppsspp.ppsspp/files
USBAccessThroughGold = USB access through Android/data/org.ppsspp.ppssppgold/files
Use App Private Data = Use App Private Data
Use PSP folder at root of storage = Use PSP folder at root of storage
Welcome to PPSSPP! = Welcome to PPSSPP!
WhatsThis = What's this?
Already contains PSP data = Actualmente contiene datos de PSP
Create or Choose a PSP folder = Seleccionar o crear carpeta PSP
Current = Actual
DataCanBeShared = Datos pueden moverse entre PPSSPP regular/Gold
DataCannotBeShared = ¡Datos NO pueden moverse entre PPSSPP regular/Gold!
DataWillBeLostOnUninstall = ADVERTENCIA: ¡Datos pueden borrarse al desinstalar PPSSPP!
DataWillStay = Datos pueden mantenerse incluso si desinstalas PPSSPP.
Done! = ¡Hecho!
EasyUSBAccess = Acceso USB fácil
Failed to move some files! = ¡Falló al mover algunos archivos!
Failed to save config = Falló al guardar configuración
Free space = Espacio disponible
Manually specify PSP folder = Especificar manualmente la carpeta PSP
MemoryStickDescription = Seleccionar donde se guarda los datos de PSP (Memory Stick)
Move Data = Mover datos
Selected PSP Data Folder = Carpeta de datos PSP seleccionado
No data will be changed = Sin cambios en los datos
PPSSPP will restart after the change = PPSSPP se reiniciará trás el cambio.
Skip for now = Saltar por ahora
Starting move... = Iniciando movida...
That folder doesn't work as a memstick folder. = Esa carpeta deja de funcionar como carpeta de Memory Stick.
USBAccessThrough = Acceso USB en la carpeta Android/data/org.ppsspp.ppsspp/files
USBAccessThroughGold = Acceso USB en la carpeta Android/data/org.ppsspp.ppssppgold/files
Use App Private Data = Usar datos privados de la App
Use PSP folder at root of storage = Usar carpeta de PSP como carpeta raíz
Welcome to PPSSPP! = Bienvenido a PPSSPP!
WhatsThis = ¿Que es esto?
[Networking]
AdHoc Server = Servidor Adhoc
@@ -898,8 +898,8 @@ tools = Software libre utilizado:
# Add translators or contributors who translated PPSSPP into your language here.
# Add translators1-6 for up to 6 lines of translator credits.
# Leave extra lines blank. 4 contributors per line seems to look best.
translators1 = VR0
translators2 = KAGE-008 (nueva revisión)
translators1 = VR0, KAGE-008
translators2 =
translators3 =
translators4 =
translators5 =
@@ -976,11 +976,11 @@ Date = Fecha
Filename = Nombre de archivo
No screenshot = No hay capturas de pantalla.
None yet. Things will appear here after you save. = No hay datos. Una vez que guardes partida aparecerán aquí.
Nothing matching '%1' was found. = Nothing matching '%1' was found.
Nothing matching '%1' was found. = No se encuentra la coincidencia con '%1'.
Save Data = Datos
Save States = Estados
Savedata Manager = Administrador de partidas guardadas
Showing matches for '%1'. = Showing matches for '%1'.
Showing matches for '%1'. = Mostrando coincidencias para '%1'.
Size = Tamaño
[Screen]
+482 -482
View File
File diff suppressed because it is too large. Load diff