mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
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:
1 parent
9cd8d216d8
commit
a7f2415469
3 files changed
+8
-2
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user