mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 16:00:30 +02:00
Headless: Fix compile on Android.
This commit is contained in:
1 parent
350589dd65
commit
41dfe05de2
2 files changed
+15
-1
No files matched your search
@@ -266,7 +266,8 @@ void __PPGeInit() {
|
||||
free(imageData[0]);
|
||||
|
||||
// We can't create it here, because Android needs it on the right thread.
|
||||
textDrawerInited = false;
|
||||
// Avoid creating ever on headless just to be safe.
|
||||
textDrawerInited = PSP_CoreParameter().headLess;
|
||||
textDrawer = nullptr;
|
||||
textDrawerImages.clear();
|
||||
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <limits>
|
||||
#if defined(ANDROID)
|
||||
#include <jni.h>
|
||||
#endif
|
||||
|
||||
#include "file/zip_read.h"
|
||||
#include "profiler/profiler.h"
|
||||
@@ -38,6 +41,16 @@
|
||||
#include "android/android-ndk-profiler/prof.h"
|
||||
#endif
|
||||
|
||||
#if defined(ANDROID)
|
||||
JNIEnv *getEnv() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
jclass findClass(const char *name) {
|
||||
return nullptr;
|
||||
}
|
||||
#endif
|
||||
|
||||
class PrintfLogger : public LogListener {
|
||||
public:
|
||||
void Log(const LogMessage &message) {
|
||||
|
||||
Reference in new issue
Block a user