mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 02:29:51 +01:00
Merge branch 'master' into TemporaryHackishBranch
# Conflicts: # Core/KeyMap.cpp # README.md
This commit is contained in:
commit
b22e8cc049
65 files changed
+596
-1957
No files matched your search
+5
-22
@@ -38,12 +38,6 @@
|
||||
#include "SDLHeadlessHost.h"
|
||||
#endif
|
||||
|
||||
// https://github.com/richq/android-ndk-profiler
|
||||
#ifdef ANDROID_NDK_PROFILER
|
||||
#include <stdlib.h>
|
||||
#include "android/android-ndk-profiler/prof.h"
|
||||
#endif
|
||||
|
||||
#if defined(ANDROID)
|
||||
JNIEnv *getEnv() {
|
||||
return nullptr;
|
||||
@@ -134,7 +128,7 @@ int printUsage(const char *progname, const char *reason)
|
||||
|
||||
static HeadlessHost *getHost(GPUCore gpuCore) {
|
||||
switch (gpuCore) {
|
||||
case GPUCORE_NULL:
|
||||
case GPUCORE_SOFTWARE:
|
||||
return new HeadlessHost();
|
||||
#ifdef HEADLESSHOST_CLASS
|
||||
default:
|
||||
@@ -230,17 +224,11 @@ int main(int argc, const char* argv[])
|
||||
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
|
||||
#endif
|
||||
|
||||
#ifdef ANDROID_NDK_PROFILER
|
||||
setenv("CPUPROFILE_FREQUENCY", "500", 1);
|
||||
setenv("CPUPROFILE", "/sdcard/gmon.out", 1);
|
||||
monstartup("ppsspp_headless");
|
||||
#endif
|
||||
|
||||
bool fullLog = false;
|
||||
bool autoCompare = false;
|
||||
bool verbose = false;
|
||||
const char *stateToLoad = 0;
|
||||
GPUCore gpuCore = GPUCORE_NULL;
|
||||
GPUCore gpuCore = GPUCORE_SOFTWARE;
|
||||
CPUCore cpuCore = CPUCore::JIT;
|
||||
|
||||
std::vector<std::string> testFilenames;
|
||||
@@ -280,7 +268,8 @@ int main(int argc, const char* argv[])
|
||||
const char *gpuName = argv[i] + strlen("--graphics=");
|
||||
if (!strcasecmp(gpuName, "gles"))
|
||||
gpuCore = GPUCORE_GLES;
|
||||
else if (!strcasecmp(gpuName, "software"))
|
||||
// There used to be a separate "null" rendering core - just use software.
|
||||
else if (!strcasecmp(gpuName, "software") || !strcasecmp(gpuName, "null"))
|
||||
gpuCore = GPUCORE_SOFTWARE;
|
||||
else if (!strcasecmp(gpuName, "directx9"))
|
||||
gpuCore = GPUCORE_DIRECTX9;
|
||||
@@ -288,8 +277,6 @@ int main(int argc, const char* argv[])
|
||||
gpuCore = GPUCORE_DIRECTX11;
|
||||
else if (!strcasecmp(gpuName, "vulkan"))
|
||||
gpuCore = GPUCORE_VULKAN;
|
||||
else if (!strcasecmp(gpuName, "null"))
|
||||
gpuCore = GPUCORE_NULL;
|
||||
else
|
||||
return printUsage(argv[0], "Unknown gpu backend specified after --graphics=. Allowed: software, directx9, directx11, vulkan, gles, null.");
|
||||
}
|
||||
@@ -350,7 +337,7 @@ int main(int argc, const char* argv[])
|
||||
|
||||
CoreParameter coreParameter;
|
||||
coreParameter.cpuCore = cpuCore;
|
||||
coreParameter.gpuCore = glWorking ? gpuCore : GPUCORE_NULL;
|
||||
coreParameter.gpuCore = glWorking ? gpuCore : GPUCORE_SOFTWARE;
|
||||
coreParameter.graphicsContext = graphicsContext;
|
||||
coreParameter.enableSound = false;
|
||||
coreParameter.mountIso = mountIso ? mountIso : "";
|
||||
@@ -480,9 +467,5 @@ int main(int argc, const char* argv[])
|
||||
LogManager::Shutdown();
|
||||
delete printfLogger;
|
||||
|
||||
#ifdef ANDROID_NDK_PROFILER
|
||||
moncleanup();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user