libretro: Fix Android builds

Text Drawer functionality is not available in libretro as it
depends on standalone jni calls. InputBox is also standalone only
gui functionality.
This commit is contained in:
Aaron Kling committed 2020-04-03 09:59:16 -05:00
1 parent 9cd8d216d8
commit a7f2415469
3 files changed
+8 -2

No files matched your search

+3 -1
View File
@@ -81,7 +81,9 @@ void TextDrawer::DrawStringBitmapRect(std::vector<uint8_t> &bitmapData, TextStri
TextDrawer *TextDrawer::Create(Draw::DrawContext *draw) {
TextDrawer *drawer = nullptr;
#if defined(_WIN32) && !PPSSPP_PLATFORM(UWP)
#if defined(__LIBRETRO__)
// No text drawer
#elif defined(_WIN32) && !PPSSPP_PLATFORM(UWP)
drawer = new TextDrawerWin32(draw);
#elif PPSSPP_PLATFORM(UWP)
drawer = new TextDrawerUWP(draw);
+1 -1
View File
@@ -11,7 +11,7 @@
#include "android/jni/app-android.h"
#include <assert.h>
#if PPSSPP_PLATFORM(ANDROID)
#if PPSSPP_PLATFORM(ANDROID) && !defined(__LIBRETRO__)
#include <jni.h>
+4
View File
@@ -809,4 +809,8 @@ bool System_InputBoxGetWString(const wchar_t *title, const std::wstring &default
#if PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(IOS)
std::vector<std::string> __cameraGetDeviceList() { return std::vector<std::string>(); }
void System_InputBoxGetString(const std::string &title, const std::string &defaultValue, std::function<void(bool, const std::string &)> cb) {
cb(false, "");
}
#endif